Skip to content

Latest commit

Β 

History

History
92 lines (66 loc) Β· 2.6 KB

File metadata and controls

92 lines (66 loc) Β· 2.6 KB

MkDocs Documentation Template

A user-friendly template for publishing Markdown documentation to GitHub Pages using MkDocs with the Material theme.

πŸš€ Quick Start

Option 1: Deploy to GitHub Pages (No local setup required)

  1. Enable GitHub Pages:

    • Go to repository Settings β†’ Pages
    • Set Source to GitHub Actions
  2. Push to main branch:

    git add .
    git commit -m "Initial documentation"
    git push origin main
  3. View your site at: https://softwareworkercom.github.io/docs/

Option 2: Local Development

  1. Install dependencies:

    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
    pip install -r requirements.txt
  2. Start local server:

    mkdocs serve
  3. Open http://127.0.0.1:8000 in your browser

πŸ“ Project Structure

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

✨ Features

  • 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

πŸ“ Writing Documentation

Add new pages by:

  1. Creating a .md file in the docs/ folder
  2. Adding it to the nav section in mkdocs.yml

See the Writing Content guide for Markdown tips.

βš™οΈ Configuration

Edit mkdocs.yml to customize:

  • Site name and description
  • Color scheme
  • Navigation structure
  • Enabled features

πŸ“š Documentation

Visit the documentation site for detailed guides:

πŸ“„ License

This project is open source and available under the MIT License.