@@ -232,6 +232,56 @@ on PyPI_, the following steps can be used to release a new version for
232232 uploaded to PyPI _ correctly.
233233
234234
235+ Deploying Documentation to ReadTheDocs
236+ --------------------------------------
237+
238+ This project is configured to work with `Read the Docs `_ for automatic
239+ documentation hosting. To deploy the documentation to ReadTheDocs.io, follow
240+ these steps:
241+
242+ #. **Create a Read the Docs account **: Go to `readthedocs.org `_ and create an
243+ account (you can sign up using your GitHub account).
244+
245+ #. **Import your project **: After logging in, click on "Import a Project" and
246+ select the ``XAI-Lib `` repository from your GitHub account. If you don't see
247+ it, you may need to refresh your repository list or manually enter the
248+ repository URL.
249+
250+ #. **Configure the project **: Read the Docs will automatically detect the
251+ ``.readthedocs.yml `` configuration file in the repository root. The
252+ configuration specifies:
253+
254+ - Python version: 3.10
255+ - Documentation builder: Sphinx
256+ - Configuration file location: ``docs/conf.py ``
257+ - Additional formats: PDF
258+
259+ #. **Build the documentation **: Once imported, Read the Docs will automatically
260+ build the documentation. You can trigger manual builds from the project
261+ dashboard.
262+
263+ #. **Enable automatic builds **: By default, Read the Docs will build the
264+ documentation on every push to the main branch. You can also configure
265+ webhook integration for pull request previews.
266+
267+ #. **Access your documentation **: After a successful build, your documentation
268+ will be available at ``https://xai-lib.readthedocs.io/ `` (or a similar URL
269+ based on your project name).
270+
271+ Additional configuration options include:
272+
273+ - **Versioning **: Read the Docs can build documentation for multiple versions
274+ (branches/tags) of your project.
275+ - **Custom domains **: You can configure a custom domain for your documentation.
276+ - **Notifications **: Set up build notifications for failures.
277+
278+ For more information, see the `Read the Docs documentation `_.
279+
280+ .. _Read the Docs : https://readthedocs.org/
281+ .. _readthedocs.org : https://readthedocs.org/
282+ .. _Read the Docs documentation : https://docs.readthedocs.io/en/stable/
283+
284+
235285
236286.. [#contrib1 ] Even though, these resources focus on open source projects and
237287 communities, the general ideas behind collaborating with other developers
0 commit comments