Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PDF build] Build a documentation site per subproject #26

Open
dgarcia360 opened this issue Aug 16, 2021 · 0 comments
Open

[PDF build] Build a documentation site per subproject #26

dgarcia360 opened this issue Aug 16, 2021 · 0 comments

Comments

@dgarcia360
Copy link

dgarcia360 commented Aug 16, 2021

The repository contains several Sphinx subprojects. However, all of them are published as a single site.

ReadTheDocs provides a feature to work with multiple projects more effectively:

Projects can be configured in a nested manner by configuring a project as a subproject of another project. This allows for documentation projects to share a search index and a namespace or custom domain, but still be maintained independently.

For example, a parent project, Foo is set up with a subproject, Bar. The documentation for Foo will be available at:
https://foo.readthedocs.io/en/latest/
The documentation for Bar will be available under this same path:
https://foo.readthedocs.io/projects/bar/en/latest/

RTD Subprojects feature would let you:

  • Build separate PDF builds per project (e.g., one for each user manual).
  • Version each subproject differently.
  • Have faster builds since the whole project does not have to be rebuilt every time, only the subproject that received an update.

Limitations

⚠️If you decide to support RTD Subprojects, building a single PDF / HTML site locally that includes all the subprojects documentation will not be possible. Instead, you will have to build each site independently.

Proposal

For every subproject:

  1. Create a new project on ReadTheDocs.
  2. Enable PDF builds (optional).
  3. Look for cross-references to other projects, and fix them.

In the main project:

  1. Remove the subprojects from the toctree.
  2. Add links to the subproject documentation.
  3. Create 404 redirections for every page moved from the main project.

In the theme:

ℹ️ This proposal affects substantially the current navigation structure . Therefore, before implementing this solution in production I would share with you a Proof of Concept on a staging site moving one subproject to show you how the resulting documentation site would look like.

@dgarcia360 dgarcia360 changed the title Build a documentation site per subproject [PDF build] Build a documentation site per subproject Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant