This repository contains the documentation website code and Markdown source files for kubesaw.github.io.
The website is built using mkdocs
NOTE: To contribute changes, make sure you do that from your own fork!
- python3
python3 --version
Python 3.11.5
From the root folder of the repo run:
python3 -m venv venv
NOTE: the second venv
is the name of the folder containing the virtual environment
Now you need to activate the virtual env so that all the dependencies will be installed only here, not on your global python installation.
source venv/bin/activate
pip install -r requirements.txt
NOTE: add newly needed dependencies in the requirements.txt
file
mkdocs serve
You should now be able to see the website locally by going to http://127.0.0.1:8000/. Changes to the source content will auto-reload the webpage in the browser.
Run the following command to deactivate the virtual env
deactivate
When you're done with your changes open a PR for the main
branch, once the PR is merged, the GH CI job will build and push the website source code to the gh-pages
branch and the changes will be automatically be deployed to https://kubesaw.github.io .
WARNING : do not open PRs or push changes to the gh-pages
branch , only the GH CI should do that once a PR is merged in the main
branch.