A user-friendly template for publishing Markdown documentation to GitHub Pages using MkDocs with the Material theme.
-
Enable GitHub Pages:
- Go to repository Settings β Pages
- Set Source to GitHub Actions
-
Push to main branch:
git add . git commit -m "Initial documentation" git push origin main
-
View your site at:
https://softwareworkercom.github.io/docs/
-
Install dependencies:
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt
-
Start local server:
mkdocs serve
-
Open
http://127.0.0.1:8000in your browser
docs/
βββ .github/
β βββ workflows/
β βββ deploy.yml # GitHub Actions workflow
βββ docs/ # Documentation content
β βββ index.md # Home page
β βββ getting-started/ # Getting started guides
β βββ user-guide/ # User documentation
β βββ contributing.md # Contribution guidelines
βββ mkdocs.yml # MkDocs configuration
βββ requirements.txt # Python dependencies
βββ README.md # This file
- Material Design theme with dark/light mode toggle
- Automatic deployment via GitHub Actions
- Full-text search for all documentation
- Code highlighting with copy button
- Responsive design for mobile devices
- Edit on GitHub links for easy contributions
Add new pages by:
- Creating a
.mdfile in thedocs/folder - Adding it to the
navsection inmkdocs.yml
See the Writing Content guide for Markdown tips.
Edit mkdocs.yml to customize:
- Site name and description
- Color scheme
- Navigation structure
- Enabled features
Visit the documentation site for detailed guides:
This project is open source and available under the MIT License.