GitHub Pages Setup¶
Setup process¶
- Create MkDocs configuration:
- Copy
assets/mkdocs-template.ymltomkdocs.yml - Update site_name, site_url, repo_url with your project details
-
Customize navigation structure for your content
-
Set up GitHub Actions:
-
Copy
assets/github-actions-template.ymlto.github/workflows/pages-build-deployment.yml -
Configure GitHub Pages:
- Go to repository Settings → Pages
- Set Source to "GitHub Actions"
- Optionally add custom domain in "Custom domain" field
File structure created¶
project/
├── mkdocs.yml # MkDocs configuration
├── .github/workflows/
│ └── pages-build-deployment.yml # GitHub Actions deployment
└── mkdocs_temp/ # Custom docs directory (auto-created)
Troubleshooting¶
Common issues and solutions: - Navigation not appearing: Check file paths in mkdocs.yml nav section - Mermaid not rendering: Ensure mermaid2 plugin is installed and configured - Build failures: Check GitHub Actions logs for missing dependencies - Custom domain issues: Verify CNAME file and DNS configuration
Related skills¶
semantic-commit: For proper commit messages when setting uppython-scaffold: If creating Python documentation projects