|
| 1 | +How to update the itom website |
| 2 | +============================== |
| 3 | + |
| 4 | +Pre-requirements |
| 5 | +---------------- |
| 6 | + |
| 7 | +itom, plugins and designerplugin must be compiled and loaded by itom. |
| 8 | +Install the Python Package **requirementsDocuBuild.txt** from [itom](https://github.com/itom-project/itom) form the subfolder ``itom/docs/userDoc/``. |
| 9 | + |
| 10 | +* Delete all files in ``../mainsite_hidden/build/`` |
| 11 | +* If there are new plugin copy the ``*.rst`` file from [plugin](https://github.com/itom-project/plugin) source repository to ``../mainsite_hidden/source_plugins/`` |
| 12 | +* Start ITOM (As Admin) |
| 13 | + |
| 14 | +pre-commit hooks |
| 15 | +---------------- |
| 16 | + |
| 17 | +After the first cloning of the repositories, the [pre-commit](https://pre-commit.com/ "pre-commit") hooks should be installed once. |
| 18 | + |
| 19 | +```bash |
| 20 | +python -m pre_commit install |
| 21 | +``` |
| 22 | + |
| 23 | +#### (optional) run against all files |
| 24 | + |
| 25 | +It's usually a good idea to run the hooks against all of the files when adding new hooks (usually ``pre-commit`` will only run on the changed files during git hooks). |
| 26 | + |
| 27 | +```bash |
| 28 | +python -m pre-commit run --all-files |
| 29 | +``` |
| 30 | + |
| 31 | +Update Plugin-Doc |
| 32 | +----------------- |
| 33 | + |
| 34 | +* Run script: ``../mainsite_hidden/update_plugindoc_source_plugins.py``. Skript will ask you for a folder. Select the ``itomProject/plugins`` folder. Script will update exsiting plugin's ``*.rst`` files. |
| 35 | +* Run Script: ``../mainsite_hidden/create_plugin_documentation.py``. This creates the plugin docu for the website. |
| 36 | + |
| 37 | +Update Website |
| 38 | +-------------- |
| 39 | +* Run Script: ``../mainsite_hidden/create_html_documentation.py``. This creates the itom website and is copied to main website dir. |
| 40 | + |
| 41 | +Update USER-DOC |
| 42 | +--------------- |
| 43 | +* Update ``..mainsite_hidde/source/documentation.rst`` file with new itom version. |
| 44 | +* Create new folder ``../vM.M.P``. |
| 45 | +* Run script ``../build/itom/doc/userDoc/create-doc.py`` in the build folder of [itom](https://github.com/itom-project/itom). |
| 46 | +* Check in line 44 for ``buildernames = ["qthelp", "html", "latex"]`` to at least build in several formats. |
| 47 | +* Copy the folder ``../build/itom/docs/userDoc/build/html/`` to the folder ``../latest`` of this repository. |
| 48 | +* Script will ask you if you want to run doxygen. Select the ``doxygen.exe``. |
| 49 | +* Copy ``../build/itom/doc/doxygen/html/`` files to the folder ``../latest/doxygen/`` |
| 50 | +* Finally commit and push to the repository. The website is available afterwards. |
0 commit comments