Skip to content

Coffee-Code-Philly-Accelerator/template-documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Project Documentation

Documentation site for [Project Name] built with MkDocs.

🚀 Quick Start

Prerequisites

  • Python 3.9+
  • pip

Installation

# Install MkDocs and dependencies
pip install -r requirements.txt

Running Locally

# Start the development server
mkdocs serve

# Open http://127.0.0.1:8000 in your browser

Building the Site

# Build the static site
mkdocs build

# Output will be in the site/ directory

📁 Documentation Structure

docs/
├── index.md              # Home page
├── getting-started.md    # Getting started guide
├── user-guide/          # User documentation
│   ├── installation.md
│   ├── configuration.md
│   └── usage.md
├── developer-guide/     # Developer documentation
│   ├── setup.md
│   ├── architecture.md
│   └── contributing.md
├── api/                 # API reference
│   └── reference.md
└── faq.md              # FAQ

✍️ Writing Documentation

Adding a New Page

  1. Create a new .md file in the docs/ directory
  2. Add it to mkdocs.yml in the nav section
  3. Write your content using Markdown

Markdown Features

MkDocs supports standard Markdown plus extensions:

Code Blocks:

def hello():
    print("Hello, World!")

Admonitions:

!!! note
    This is a note admonition.

!!! warning
    This is a warning admonition.

Tables:

| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |

🎨 Customization

Theme

The theme is configured in mkdocs.yml:

theme:
  name: material
  palette:
    primary: indigo
    accent: indigo

Navigation

Edit the nav section in mkdocs.yml:

nav:
  - Home: index.md
  - Getting Started: getting-started.md
  - User Guide:
    - Installation: user-guide/installation.md
    - Configuration: user-guide/configuration.md

🚀 Deployment

GitHub Pages

Automated deployment via GitHub Actions:

# .github/workflows/docs.yml
name: Deploy Docs

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: 3.x
      - run: pip install -r requirements.txt
      - run: mkdocs gh-deploy --force

Manual Deployment

# Deploy to GitHub Pages
mkdocs gh-deploy

# Deploy to custom domain
mkdocs build
# Upload site/ directory to your host

📚 Resources

🤝 Contributing

Contributions to documentation are welcome!

  1. Fork this repository
  2. Create a branch for your changes
  3. Make your edits
  4. Test locally with mkdocs serve
  5. Submit a pull request

📜 License

This documentation is licensed under the MIT License.


Built with ☕ by Coffee Code Philly

About

MkDocs documentation template for Coffee Code Philly projects

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors