The documentation uses MkDocs to render the content.
This method uses Python installed directly on your machine to run the MkDocs server.
A virtual environment keeps dependencies isolated and avoids conflicts.
Place it in a dedicated directory outside your project directory:
python3 -m venv ~/venvs/mkdocs-env
- Linux/macOS
source ~/venvs/mkdocs-env/bin/activate
- Windows (Command Prompt)
~/venvs/mkdocs-env\Scripts\activate
- Windows (PowerShell)
~/venvs/mkdocs-env\Scripts\Activate.ps1
The name of your environment should appear in brackets at the beginning of your command line.
In your project directory, install the required dependencies:
pip3 install -r requirements.txt
mkdocs serve
4.2 Once the server is running, open your browser and visit http://127.0.0.1:8000.
This method uses Docker to run the MkDocs server in an isolated container. All dependencies, including Python, are installed inside the container.
The Docker image bundles Python, MkDocs, and all necessary dependencies:
docker build . -t docs
Start the container and expose the documentation server locally:
docker run -it --rm -p 8000:8000 -v $PWD:/docs docs
3. The documentation server will be accessible at: http://127.0.0.1:8000.
The main
branch is automatically deployed to docs.strangebee.com.
If not:
mkdocs gh-deploy --remote-branch gh-pages