Optimized Documentation about Sphinx and created Makefile in root

This commit is contained in:
Kevin Veen-Birkenbach 2025-03-17 12:05:39 +01:00
parent 2667f3c259
commit c157e93011
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 41 additions and 2 deletions

View File

@ -93,7 +93,7 @@ ansible-playbook -i /path/to/your/inventory/servers.tmp "$(pkgmgr path cymais)pl
---
## Using a Vault Password File
## Using a Password File
To avoid entering your vault password interactively every time, use the `--vault-password-file` option:
```bash

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
.PHONY: install deinstall refresh
install:
$(MAKE) -C sphinx html
$(MAKE) -C sphinx install
deinstall:
$(MAKE) -C sphinx clean
refresh:
$(MAKE) -C sphinx clean
$(MAKE) -C sphinx html

25
sphinx/README.md Normal file
View File

@ -0,0 +1,25 @@
# Documentation
CyMaIS uses [Sphinx](https://www.sphinx-doc.org/) to automatically generate its documentation and leverages the [Awesome Sphinx Theme](https://sphinxawesome.xyz/) for a sleek and responsive design. Enjoy a seamless, visually engaging experience 🚀✨.
## For Users
You can access the documentation [here](https://docs.cymais.cloud/) 🔗. Browse the latest updates and guides to get started.
## For Administrators
### Setup
#### On Localhost
To generate the documentation locally, run the following command:
```bash
pkgmgr shell cymais -c "make refresh"
```
This command cleans the previous build and generates the updated documentation. Once complete, you can view it at the output location (e.g., [templates/html/index.html](templates/html/index.html)) 👀💻.
#### On Server
In your inventory file, enable the **Sphinx** role. When activated, the documentation will be automatically generated and deployed under the **docs** subdomain of your CyMaIS instance. This ensures your documentation is always current and easily accessible 🔄🌐.

View File

@ -40,10 +40,12 @@
{% if local_md_headings or local_subfolders %}
<div class="local-md-headings">
<h3 class="toctree-l1">Index</h3>
<h3>Overview</h3>
<h4 class="toctree-l1">Current Index</h3>
{% if local_md_headings %}
{{ render_headings(local_md_headings) }}
{% endif %}
<h4 class="toctree-l1">File Explorer</h3>
{% if local_subfolders %}
{{ render_headings(local_subfolders) }}
{% endif %}