mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Twig based UI blocks documentation
This documentation explains how to use UI blocks (new in 3.0) in twig based extensions.
How to build UI Documentation
Install sphinx
Windows users
Install Python from https://www.python.org/downloads/windows/
Under .doc/UI, run
pip install -U sphinx
pip install sphinx-rtd-theme
pip install myst-parser
pip install sphinx-multiversion
Linux users
You should have Python installed.
Under .doc/UI, run
sudo apt-get install python3-sphinx
pip install sphinx-rtd-theme
pip install myst-parser
pip install sphinx-multiversion
Documentations
- sphinx https://www.sphinx-doc.org/en/master/
- sphinx-multiversion https://holzhaus.github.io/sphinx-multiversion/master/index.html
- Read the Docs https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html
- RST https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
- MyST https://myst-parser.readthedocs.io/en/latest/
Generating the documentation
Generating the documentation source from the actual code
Under .doc/UI
php bin/generate_uiblock.php
When the source have not changed, just regenerate the documentation using the following methods.
Regenerating the doc
Windows users
Under .doc/UI
make.bat html
The documentation is generated into .doc/UI/build/html
Linux users
Under .doc/UI, run
make html
The documentation is generated into .doc/UI/build/html