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.