Documentation Setup Guide¶
This guide walks you through setting up and serving the Dataspace Ecosystem documentation using MkDocs.
Prerequisites¶
- Python 3.8 or higher
- Git (to clone the repository)
1. Setting Up Python Environment¶
Option 1: Using venv (Recommended)¶
Create a virtual environment:
# Navigate to the project root directory
cd /path/to/dataspace-ecosystem
# Create virtual environment
python3 -m venv venv-docs
# Activate the virtual environment
# On macOS/Linux:
source venv-docs/bin/activate
# On Windows:
# venv-docs\Scripts\activate
Verify activation:
2. Installing Dependencies¶
Once your Python environment is active, install the required packages:
# Install documentation dependencies
pip install -r requirements-docs.txt
# Verify installation
mkdocs --version
Expected output:
3. Serving Documentation Locally¶
Start the development server:
Expected output:
INFO - Building documentation...
INFO - Cleaning site directory
INFO - Documentation built in X.XX seconds
INFO - [XX:XX:XX] Watching paths for changes: 'docs', 'mkdocs.yml'
INFO - [XX:XX:XX] Serving on http://127.0.0.1:8000/
Open your web browser and navigate to: http://127.0.0.1:8000/
4. Building Static Documentation¶
To build the documentation for production deployment:
The built documentation will be available in the site/ directory.
5. Deactivating Environment¶
When you're done working with the documentation:
For venv:
See Also¶
- Development Setup - IDE and JDK configuration
- Go Development Setup - Containerized Go builds
- Contributing - Contribution guidelines