This project showcases a static docsite generated with MkDocs, including an OpenAPI spec I create from scratch, and API docs generated with Redocly, all served with GitHub pages.
- MkDocs: A static site generator geared towards project documentation.
- GitHub Pages: A free hosting service for static websites provided by GitHub.
- Clean and simple theme for documentation.
- Automatically generated navigation and search functionality.
- Lightweight and fast for viewing project documentation.
The live version of the site is available at: https://nicoalba.github.io/sample-docsite-pages/.
Before running the project locally, make sure you've installed:
-
Python 3: You need Python 3 to run MkDocs. Download and install Python 3 from python.org.
-
MkDocs: Install MkDocs using pip (Python's package manager):
pip install mkdocs
-
Clone the repository to your local machine:
git clone https://github.com/your-username/your-repo-name.git
-
Navigate to the project folder and cd into the project directory where the
mkdocs.ymlfile is located:cd your-repo-name -
Install dependencies (if necessary).
If you're using additional extensions or themes for MkDocs, make sure they're installed:
pip install -r requirements.txt
If you don't have a
requirements.txtfile, you can skip this step. -
To preview your site locally:
mkdocs serve
-
Open your web browser and go to http://127.0.0.1:8000/ to view your documentation locally.