-
Notifications
You must be signed in to change notification settings - Fork 76
Change log
For the full change log, see the commits or pull requests. This change log lists big and relevant changes that every user of the starter pack should be aware of and that might require an action.
The name of the lxd-sphinx-extensions package changed to canonical-sphinx-extensions. This shouldn't impact any existing configurations because redirect mechanisms are in place. However, you should update the package name eventually.
The gh-jira-sync-bot was recently enabled for all Canonical repositories, which means that all repositories will now automatically sync their GitHub issues to Jira with the default configuration (thus to the documentation practice project). To prevent this, we have removed the gh-jira-sync-bot from the starter pack, and we'll look into alternatives.
Added a script init.sh and associated instructions to partially automate the initialisation of a documentation repository using the starter pack. Usage of the script is optional; the existing manual instructions for initialising a documentation repository still stand.
Added a html_title variable to custom_conf.py that can be used to configure or turn off the documentation title that is displayed in the sidebar.
Added a sequential_nav variable allowing users to control whether the "Next" and "Previous" buttons appear in footer. This can be controlled globally and overridden on a per-page level.
Moved the Sphinx doctrees out of the build directory and moved the colour definitions to a separate CSS file to reduce the size of the generated documentation. This is mainly relevant when packaging documentation with the product, but it can also reduce loading times for documentation hosted on RTD.
Added some common terms to the custom wordlist, including Canonical-specific terms.
Unpinned the Sphinx version again since the issues (mentioned below, 2023/08/21) are now fixed.
Switched the GitHub documentation checks to use a reusable workflow.
Pinned the Sphinx version to prevent some current bugs (that will hopefully be resolved soon):
- The notfound extension isn't compatible with the latest Sphinx version 7.2.2: https://github.com/readthedocs/sphinx-notfound-page/issues/219
- When requiring a Sphinx version <7.2.2, RTD automatically uses 6.2.1, which is not compatible with the current Furo version: https://github.com/pradyunsg/furo/discussions/693
Therefore, we currently pin the Sphinx version to 7.1.2.
Added a GitHub bot that can be used to sync issues from GitHub to Jira. See (Optional) Synchronise GitHub issues to Jira for instructions on how to set it up.
Summary of relevant changes for the last month:
-
Moved the content files that were meant to show how to set up Diataxis documentation to a separate repository: https://github.com/canonical/example-product-documentation
This leaves only the files that cover configuration and styling in the starter pack, which should make it easier to keep documentation sets in sync with the starter pack.
-
Added a header to the documentation to integrate the documentation (hosted on readthedocs) with the product website. The header can be customised with the product name and logo, and you can add custom links to the "More resources" section.
See https://github.com/canonical/sphinx-docs-starter-pack#configure-the-header
-
Split the configuration file into a common
conf.pyfile and a customcustom_conf.pyfile. All project-specific configuration should go into thecustom_conf.pyfile, while theconf.pyfile should not be touched. This should make it easier to keep the configuration in sync with the starter pack.