This repository contains the official documentation for Karios, the software-defined foundation for modern IT infrastructure.
- Python 3.8 or higher
- Git
git clone git@git.karios.ai:Karios/docs.git
cd karios-docs# Create virtual environment
python3 -m venv .
# Activate virtual environment
# On macOS/Linux:
source bin/activate
# On Windows:
# Scripts\activatepip install -r requirements.txtcd docs
make html# Open in your default browser
# On macOS:
open _build/html/index.html
# On Linux:
xdg-open _build/html/index.html
# On Windows:
start _build/html/index.htmlkarios-docs/
βββ bin/ # Virtual environment binaries (ignored in git)
βββ lib/ # Virtual environment libraries (ignored in git)
βββ include/ # Virtual environment includes (ignored in git)
βββ pyvenv.cfg # Virtual environment config (ignored in git)
βββ requirements.txt # Python dependencies
βββ README.md # This file
βββ .gitignore # Git ignore rules
βββ docs/ # Sphinx documentation source
βββ conf.py # Sphinx configuration
βββ index.rst # Main documentation page
βββ Makefile # Build automation
βββ make.bat # Windows build script
βββ _build/ # Generated documentation (ignored in git)
βββ _static/ # Static assets (CSS, images)
βββ getting-started/ # Getting started guide
βββ virtualization/ # Virtualization documentation
βββ storage/ # Storage documentation
βββ networking/ # Networking documentation
βββ management/ # Management documentation
βββ deployment/ # Deployment scenarios
βββ security/ # Security and compliance
βββ monitoring/ # Monitoring and maintenance
βββ advanced/ # Advanced topics
βββ appendices/ # Reference materials
-
Activate the virtual environment:
source bin/activate -
Edit documentation files in the
docs/directory -
Build and preview changes:
cd docs make clean # Optional: clean previous build make html
-
View changes in browser:
open _build/html/index.html
- Create new
.rstfiles in the appropriate section directory - Add the file to the relevant
index.rsttoctree - Rebuild documentation
- Headers: Use
=,-,^,"for different header levels - Links:
\Link text `_` - Code blocks: Use
.. code-block:: language - Notes: Use
.. note::,.. warning::,.. important::
Example:
My Page Title
=============
This is a paragraph with **bold** and *italic* text.
Section Header
--------------
.. note::
This is an important note.
.. code-block:: bash
# This is a code example
make htmlcd docs
# Build HTML documentation
make html
# Clean build directory
make clean
# Build and open documentation
make html && open _build/html/index.html
# Check for broken links
make linkcheck
# Build PDF (requires LaTeX)
make latexpdf
# Show all available commands
make helpThe project uses these main dependencies:
- Sphinx - Documentation generator
- sphinx-rtd-theme - Read the Docs theme
- myst-parser - Markdown support
- sphinx-copybutton - Copy button for code blocks
- sphinx-design - Modern design elements
- sphinxext-opengraph - Open Graph meta tags
See requirements.txt for complete list with versions.
For live-reloading during development:
pip install sphinx-autobuild
cd docs
sphinx-autobuild . _build/htmlThen open http://localhost:8000
The documentation can be deployed to:
- Amazon S3 (static website hosting)
- GitHub Pages
- Read the Docs
- Netlify
- Any static web hosting service
Example S3 deployment:
# Build documentation
make html
# Deploy to S3 (requires AWS CLI configured)
aws s3 sync _build/html/ s3://your-docs-bucket --deleteTo change the theme, edit docs/conf.py:
html_theme = 'sphinx_rtd_theme' # Current theme
# html_theme = 'furo' # Alternative modern theme
# html_theme = 'pydata_sphinx_theme' # Another optionCustom CSS can be added to docs/_static/css/custom.css
Main configuration is in docs/conf.py. Key settings:
- Project information
- Extensions
- Theme options
- Path configurations
Virtual environment not activating:
# Make sure you're in the right directory
pwd # Should show /path/to/karios-docs
# Recreate virtual environment if needed
rm -rf bin lib include pyvenv.cfg
python3 -m venv .
source bin/activate
pip install -r requirements.txtBuild errors:
# Clean and rebuild
cd docs
make clean
make htmlMissing dependencies:
# Reinstall requirements
pip install -r requirements.txtPermission errors on Windows:
# Use pip with --user flag
pip install --user -r requirements.txt- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes
- Test the documentation builds:
make html - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin feature-name - Submit a pull request
This documentation is licensed under [LICENSE TYPE] - see the LICENSE file for details.
- Karios Website: https://www.karios.ai
- GitHub Repository: https://github.com/karios/karios
- Sphinx Documentation: https://www.sphinx-doc.org/
- reStructuredText Guide: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html