The BioUML platform documnetation in Еnglish and Russian
-
Install Shinx.
pip install sphinx
-
Install recommonmark - it allows to use usual markdown for pages. So it is not needed to convert already written pages.
pip install recommonmark
-
Install Sphinx extension for rendering markdown tables.
pip install sphinx_markdown_tables
-
Install Read the Docs theme
pip install sphinx-rtd-theme
-
Install sphinx-intl
pip install sphinx-intl
-
make html
- builds the project. You can open in the browser generated html files fro 'target' directory. -
When you pull you chages int github, the documentation on readthedocs will be automatically rebuilded due to hit webhook.
-
Open link
https://biouml.readthedocs.io
https://biouml.rtfd.io
-
Create pot files. They will be located in .\build\gettext directory.
make gettext
-
Create or update po files for English.
sphinx-intl update -p build/gettext -l ru
-
Translate in Weblate
-
To create translated vesrion
make -e SPHINXOPTS="-D language='ru'" html
For Windows cmd.exe, run:
set SPHINXOPTS=-D language=ru
make html
PDF file can be generated by 2 ways:
-
By ReadTheDocs, it is specified in .readthedocs.yaml
-
By Sphinx-SimplePDF
https://sphinx-simplepdf.readthedocs.io
For Sphinx-SimplePDF
-
Install Sphinx-SimplePDF
pip install sphinx-simplepdf
-
For Windows - install GTK
https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases -
To build pdf
make simplepdf
https://www.sphinx-doc.org/en/master/contents.html
https://www.sphinx-doc.org/en/master/usage/quickstart.html
https://www.sphinx-doc.org/en/master/usage/restructuredtext/
https://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html
https://runawayhorse001.github.io/SphinxGithub/rtxt.html
https://kroki.io/
https://github.com/sphinx-contrib/kroki
http://recommonmark.readthedocs.org/
https://recommonmark.readthedocs.io/en/latest/auto_structify.html
https://github.com/ryanfox/sphinx-markdown-tables
https://www.sphinx-doc.org/en/master/usage/advanced/intl.html
https://docs.weblate.org/en/latest/devel/sphinx.html