Discussion on structure and auto-building of documentation #3191
Labels
discussion
General discussions and community feedback
documentation
Improvements or additions to documentation
Further to the previous meeting, I thought we could discuss here what to do about stucture and automatic building for the documentation.
I think we agreed that:
index.rst
pages that can link to both sphinx-built and non-sphinx-built documentation for How To's and Tutorials (i.e. we will not use the auto-genereated sphinx gallery)In terms of automation options, two possibilities are:
.py
files. At the moment there are two modes -.py
files prefixed withplot_
are run in full when converted to.rst
. Otherwise, the python code is not actually run and the.py
file is converted to.rst
(so you get no plots or code output). It would be cool to use the tag likesphinx-build -b html doc doc/build -t long-time-builds
that changes the keywords used to fully build the long-docs. For example it could extend theplot_
prefix to also includelong_build
. Then, when the tag is not used, these long-build docs will just be converted to.rst
only (i.e. without running the python code) and it will be fast. But when properly building the docs, we can use the tag to ensure that they are build with running the python code and images etc. are generated.Handling docs with heavy data / environment requirements
Blockers
.py
file for sphinx-gallery format. That's okay, but where the documentation requires a complex environment / other data it is not possible to the CI to build build so it's also necessary to rewrite parts of these documentation to use synthetic data at the same time as introducing the new build machinery. But, in some cases (drift docs) this changes the interpretation of the data and so a lot of the docs article changes. In this case, the PR like Try "Handle motion/drift" documentation as a sphinx gallery #2879 becomes bloated with sphinx-machinery changes and article-content changes. But I'm not sure of the best way around this.The text was updated successfully, but these errors were encountered: