The documentation is delivered via a Read The Docs (RTD) website.
TF uses the Linux Foundation's implementation for publishing to RTD, which is documented here.
I have not formally documented the usage requirements other than the commands to run to build and lint the docs. In general, the build process uses the sphinx-build
command behind the scenes. Please consider creating a pull request to improve this README if/when you start contributing to this documentation. Thanks...
- Install Sphinx-build https://www.sphinx-doc.org/en/master/usage/installation.html
- Install Tox https://tox.readthedocs.io/en/latest/install.html
Build the docs static site.
$ tox -e docs
This command will populate a static website under the folder _build/html
.
In addition to building, we can and should run a linter against the content.
$ tox -e docs-linkcheck
To build documentation and execute link checking in one run.
$ tox -e docs-all
Local building will establish re-usable pip cache under tox workdir (.tox/
).
$ tox -e docs-dev
Additionally you can pass additional flags to sphinx-build
i.e speed up building process
with -j <n>
flag.
$ tox -e docs-dev -- -j 4
In case tox will report errors like module not found
when that module was previously used
then remove .tox folder and run tox again.