Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 3.24 KB

setup-rtd.rst

File metadata and controls

72 lines (49 loc) · 3.24 KB

How to set up your documentation on Read the Docs

You will need to a working documentation repository for the following steps to work.

This guide assumes you're using :doc:`starter-pack`. If your documentation repository is set up differently, you might need to adapt the described configuration to your setup.

Get access to Read the Docs

Go to `Read the Docs for Business`_ (readthedocs.com, not readthedocs.org) and create an account.

Then get in touch with the `documentation team`_ to be added to the Canonical organisation. They will set up a team for your project. (Note that this is a temporary solution, and a more structured way of granting access to Read the Docs is in the works.)

Create the project on Read the Docs

On the `Read the Docs dashboard`_, create a new project.

Most fields are self-explanatory and you can leave the default values. Check and update the following fields:

Click :guilabel:`Next`. On the resulting page, select the Admin tab and update the following settings:

  1. Select Advanced Settings in the navigation.
  2. Select the :guilabel:`Privacy Level` for the project dashboard. In most cases, this should be private.
  3. Select :guilabel:`Build pull requests for this project`.
  4. Select the :guilabel:`Privacy level of Pull Requests`. For projects that are developed in the open, change this to public.
  5. Change the :guilabel:`Documentation type` to Sphinx HtmlDir.
  6. Specify the path to the :guilabel:`Requirements file`. In the starter pack, this is :file:`.sphinx/requirements.txt`.
  7. Click :guilabel:`Save`.

If you want your documentation to be accessible without logging in to Read the Docs, also change the following configuration:

  1. Select Edit Versions in the navigation.
  2. Click :guilabel:`Edit` for the latest version.
  3. Set the :guilabel:`Privacy Level` to public.
  4. Click :guilabel:`Save`.

Build and view the documentation

In the project overview, click :guilabel:`Build version` to start a build. You should see the build progressing, followed by a Build completed message. If the build fails (but local builds work fine), you probably need to adapt some of the advanced project settings.

Click the :guilabel:`View Docs` button to see the built documentation.