Zensical documentation framework¶
For full documentation visit zensical.org.
Commands¶
zensical serve- Start the live-reloading docs server (localhost:8000)zensical serve -o- Start server and open browser automaticallyzensical build- Build the documentation site tohtml/zensical -h- Print help message and exit
Run example
- Run powershell
- Navigate to
docssubfolder of MIB project - Run
c:\Python\Miniforge\envs\mkdocs\Scripts\zensical serveto start the server, replace the path with the actual path to the proper python environment - Open
http://localhost:8000in browser
Links¶
Installation¶
1. Install Miniforge¶
Download and install Miniforge (tested with
Mambaforge-24.11.0-0-Windows-x86_64.exe, base Python 3.12) and accept the default settings.
2. Create the Zensical environment¶
Open Miniforge Prompt (Start → Miniforge3 → Miniforge Prompt) and create a new environment, replacing the path with your preferred location:
3. Install packages¶
Optionally, install Sphinx and the MATLAB domain, which are used to build the API reference
(docs_api/, see API reference installation):
To update Zensical later:
4. PyCharm configuration (optional)¶
- Settings → Project → Python Interpreter → Add Interpreter and point it to
d:\Python\Miniforge3\envs\Zensical\python.exe - If the terminal does not pick up the environment: close the terminal, open
Settings → Tools → Terminal, enable Activate virtualenv, set Shell path to
powershell.exeand open a new terminal
Check which Python is active with where.exe python
5. Generate the documentation¶
Run the commands from the docs subfolder of the MIB project, replacing the path with the location
of your Zensical environment.
Build the static site into docs/html/:
Start the live-reloading preview at http://localhost:8000:
Note
Do not edit files in docs/html/, they are overwritten on every build.
Project layout¶
zensical.toml # The configuration file (TOML format).
docs
|----/assets/ # Folder for images etc
| logo.png # Logo image
|----/css/ # Folder for styles
| styles.css # CSS styles
|-index.md # The documentation homepage.
|-documentation.md # Another page
... # Other markdown pages, images and other files.
Text with icons: or in color as or
icons search from
https://squidfunk.github.io/mkdocs-material/reference/icons-emojis
Header 1 - Title #¶
Header 2 ##¶
Header 3 ###¶
div class="h3-like">h3-like not listed in the table of contents</div>