Skip to content

karios-os/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

448 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Karios Documentation

This repository contains the official documentation for Karios, the software-defined foundation for modern IT infrastructure.

πŸ“‹ Prerequisites

  • Python 3.8 or higher
  • Git

πŸš€ Quick Start

1. Clone the Repository

git clone git@git.karios.ai:Karios/docs.git
cd karios-docs

2. Set Up Virtual Environment

# Create virtual environment
python3 -m venv .

# Activate virtual environment
# On macOS/Linux:
source bin/activate

# On Windows:
# Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Build Documentation

cd docs
make html

5. View Documentation

# 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.html

πŸ“ Project Structure

karios-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

πŸ› οΈ Development Workflow

Making Changes

  1. Activate the virtual environment:

    source bin/activate
  2. Edit documentation files in the docs/ directory

  3. Build and preview changes:

    cd docs
    make clean  # Optional: clean previous build
    make html
  4. View changes in browser:

    open _build/html/index.html

Adding New Pages

  1. Create new .rst files in the appropriate section directory
  2. Add the file to the relevant index.rst toctree
  3. Rebuild documentation

Writing reStructuredText

  • 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 html

πŸ”§ Available Make Commands

cd 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 help

πŸ“¦ Dependencies

The 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.

πŸš€ Deployment

Local Development Server

For live-reloading during development:

pip install sphinx-autobuild
cd docs
sphinx-autobuild . _build/html

Then open http://localhost:8000

Production Deployment

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 --delete

🎨 Customization

Themes

To 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 option

Styling

Custom CSS can be added to docs/_static/css/custom.css

Configuration

Main configuration is in docs/conf.py. Key settings:

  • Project information
  • Extensions
  • Theme options
  • Path configurations

πŸ› Troubleshooting

Common Issues

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.txt

Build errors:

# Clean and rebuild
cd docs
make clean
make html

Missing dependencies:

# Reinstall requirements
pip install -r requirements.txt

Permission errors on Windows:

# Use pip with --user flag
pip install --user -r requirements.txt

πŸ“ Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Test the documentation builds: make html
  5. Commit your changes: git commit -am 'Add some feature'
  6. Push to the branch: git push origin feature-name
  7. Submit a pull request

πŸ“„ License

This documentation is licensed under [LICENSE TYPE] - see the LICENSE file for details.

πŸ”— Links

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages