-
Notifications
You must be signed in to change notification settings - Fork 41
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
Autogenerated CLI commands documentation on ReadTheDocs #611
Conversation
Needed to allow sphinx-click to access full docstring after truncation marker \f
…own in documentation
…they appear last in the docs of each command
Codecov Report
@@ Coverage Diff @@
## master #611 +/- ##
=======================================
Coverage 99.58% 99.58%
=======================================
Files 87 87
Lines 5840 5850 +10
=======================================
+ Hits 5816 5826 +10
Misses 24 24
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
The document generation is semi-automatic, so after adding new CLI commands (e.g. #614), references to them need to be added to the |
Documentation build from this branch is displayed on https://annif.readthedocs.io/en/autogenerate-commands-wiki/index.html. To build documentation locally run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good!
I enabled an automation rule on ReadTheDocs that should, for each new release, create a new version of the docs with the semver name and show it in the list of docs versions. The "latest" docs version tracks the master branch and the "stable" version tracks the latest release. |
Great work! Now the next step is replacing the content of the Commands page in the wiki with a link to RTD, right? |
Yes, but I think it is best to do that after next release, because then the link can be to the CLI page of the "stable" docs version; at the moment that CLI page exists only on the "latest" version of docs. |
Fine, as long as we won't forget doing that during the release :) |
Switches to document Annif CLI commands on annif.readthedocs.io with automated builds instead of manually maintaining documentation in a GitHub wiki page
Template for the page is in
docs/source/commands.rst
.Due to an issue with sphinx-rtd-theme (not showing bullet points in TOC lists) an older version of docutils (0.16) is used.
Edit: Also upgrades to Click 8.1.* to allow sphinx-click to access full docstring after truncation marker
\f
Closes #595.