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

versioned docs using sphinx_multiversion #777

Merged
merged 4 commits into from
Dec 16, 2020
Merged

versioned docs using sphinx_multiversion #777

merged 4 commits into from
Dec 16, 2020

Conversation

samtygier-stfc
Copy link
Collaborator

Fixes #743

sphinx-multiversion can build a copy of the documentation for each tag
and place in a subfolder. The existing spinx setup can build the top
level latest version. versioning.html gives links to version in the
sidebar. layout.html overrides the main template to use correct versions
in the title and top navigation bar.

Note this requires a patch to sphinx_multiversion to allow calling a
prebuild command. This is used to call the docs_api for each checkout.
sphinx-contrib/multiversion#62

To build the versioned docs:

python setup.py docs_versioned

This will build the api files, then the top level docs, then the
versioned docs.

@samtygier-stfc samtygier-stfc added Component: Documentation Release essential Essential to the release - showstoppers. If not done the release might be delayed labels Dec 11, 2020
@samtygier-stfc samtygier-stfc force-pushed the 743_versioned_docs branch 2 times, most recently from 99fcc84 to 904415b Compare December 11, 2020 10:03
Copy link
Contributor

@dtasev dtasev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will need to merge into master to make sure it fully works with the Actions automation.

Just a minor question added for possible cleanup

setup.py Outdated Show resolved Hide resolved
sphinx-multiversion can build a copy of the documentation for each tag
and place in a subfolder. The existing spinx setup can build the top
level latest version. versioning.html gives links to version in the
sidebar. layout.html overrides the main template to use correct versions
in the title and top navigation bar.

Note this requires a patch to sphinx_multiversion to allow calling a
prebuild command. This is used to call the docs_api for each checkout.
sphinx-contrib/multiversion#62
To build the versioned docs:

```
python setup.py docs
```

This will build the api files, then the top level docs, then the
versioned docs. There is no need to call the docs_api command, though
it is retained for internal use.
Can be reverted if this get accepted upstream
@dtasev dtasev merged commit 6e58f2f into master Dec 16, 2020
@dtasev dtasev deleted the 743_versioned_docs branch December 16, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Release essential Essential to the release - showstoppers. If not done the release might be delayed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate release and unstable packages documentation
2 participants