Run the following commands from docs directory.
Automatic generate of Sphinx sources using sphinx-apidoc
make apidocThis command only applies to newly created modules. It will not update modules that already exist. You will have to modify docs/datasetinsighs.module_name manually.
To build html files, run
make htmlYou can browse the documentation by opening build/html/index.html file directly in any web browser.
Cleanup build html files
make clean-
Some of the documents are written in markdown format. We use recommonmark to generate documentations. It uses CommonMark to convert markdown files to rst files. Due to it's limitation, links to headers cannot have
_or.. If the header has either of those characters, they should be replaced by dashes-. e.g. if you have a header#### annotation_definitions.jsonin the markdown file, to link to that header the markdown needs to be[click link](#annotation-definitions-json) -
Readthedocs.orgdoes not currently support poetry officially. Until then, we have to manually generated adocs/requirements.txtfile when new requirements is added to the repo. This file can be generated using command:
poetry export --dev --without-hashes -f requirements.txt > docs/requirements.txt