Autogenerated CLI commands documentation on ReadTheDocs#611
Autogenerated CLI commands documentation on ReadTheDocs#611juhoinkinen merged 17 commits intomasterfrom
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!
|
|
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 |
|
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
\fCloses #595.