Auto-generate binman entry and bintool documentation
cover Auto-generate binman entry and bintool documentation
The entries.rst and bintools.rst files are currently generated manually by running 'binman entry-docs' and 'binman bintool-docs', then committed to the repo. This means the docs drift out of date when docstrings are updated but the RST files are not regenerated.
This series provides a Sphinx extension to generate the file. This approach keeps the docs in sync with the source. It also avoids importing binman modules so as to remain compatible with readthedocs.io
Simon Glass (2):
binman: Add Sphinx extension to auto-generate entry and bintool docs
binman: Remove pre-generated entries.rst and bintools.rst
doc/.gitignore | 2 + doc/conf.py | 3 +- doc/develop/package/bintools.rst | 1 - doc/develop/package/entries.rst | 1 - doc/sphinx/binman_docs.py | 207 ++ tools/binman/binman.rst | 12 +- tools/binman/bintools.rst | 249 --- tools/binman/entries.rst | 3129 ------------------------------ 8 files changed, 215 insertions(+), 3389 deletions(-) delete mode 120000 doc/develop/package/bintools.rst delete mode 120000 doc/develop/package/entries.rst create mode 100644 doc/sphinx/binman_docs.py delete mode 100644 tools/binman/bintools.rst delete mode 100644 tools/binman/entries.rst
Signature · 4 lines
2.43.0 base-commit: eefb822fb574e28d49fc9f358328854e17fc8406 branch: binman-sphinx-us