This repository contains the source files for my MkDocs documentation project, using the Material for MkDocs theme.
- MkDocs: A fast, simple static site generator for building project documentation.
- Material for MkDocs: A professional, responsive theme built on Google's Material Design principles.
You can view the live version of this documentation at: https://github.com/micheal-ndoh/MK_DOCS
There are two ways to run the project locally and preview the documentation:
-
Clone the repository:
git clone https://github.com/micheal-ndoh/MK_DOCS cd MK_DOCS
-
Install MkDocs and dependencies:
- Before installing mkdocs you need to ensure you have python and pip installed using
sudo apt-get update sudo apt-get install python3-pip
- If you encounter a error: externally-managed-environment problem do this
Create a virtual environment using
python3 -m venv myenv
- then activate it with
source myenv/bin/activate
After activation, install mkdocs using pip3 install mkdocs
-
Then install mkdocs and mkdocs materials
pip install mkdocs pip3 install mkdocs-material
-
Run the MkDocs development server:
mkdocs serve
Open your browser and navigate to
http://127.0.0.1:8000
to view the documentation locally.
-
Build the site:
mkdocs build
This will generate static files in the
site/
directory. -
Deploy to GitHub Pages: The project is set up to automatically deploy via GitHub Actions when changes are pushed to the
main
branch.To manually deploy:
mkdocs gh-deploy
- Pull the image from my git hub packages
docker pull ghcr.io/micheal-ndoh/mk_docs:latest
2.After successfully pulling the image run a docker container with it.
docker run -itd -p 8080:80 ghcr.io/micheal-ndoh/mk_docs
- Access the contents on your browser using the ip address of your container and the port you assigned when running the container :8080
e.g 10.38.229.171:8080
This project is licensed under the MIT License - see the LICENSE file for details.