Quick guide to working with the GitHub Pages documentation.
pip install -r requirements.txtWhat gets installed:
mkdocs- Documentation site generatormkdocs-material- Material Design theme- Plugins for search, dates, and minification
npm run docs:devAccess at: http://localhost:8000
Features:
- ✅ Live reload on file changes
- ✅ Full search functionality
- ✅ Preview exactly as it will appear online
Location: docs/ directory
Example:
# Edit homepage
nano docs/index.md
# Edit installation guide
nano docs/getting-started/installation/npm-installation.mdSave → Changes appear instantly in browser!
npm run docs:buildOutput: site/ directory (ready for deployment)
Validation:
- ✅ Strict mode enabled (catches errors)
- ✅ Broken links detected
- ✅ Markdown syntax validated
# After building
cd site
python3 -m http.server 8001Access at: http://localhost:8001
Just push to main:
git add docs/ mkdocs.yml
git commit -m "docs: update documentation"
git push origin mainGitHub Actions will:
- Build documentation
- Deploy to GitHub Pages
- Site live in ~2 minutes
Live URL: https://salacoste.github.io/mcp-n8n-workflow-builder
npm run docs:deployThis will:
- Build documentation
- Push to
gh-pagesbranch - Update GitHub Pages site
Code blocks:
```bash
npm install
```Admonitions:
!!! tip "Helpful Hint"
This is a tip.
!!! warning
Be careful!Tabs:
=== "macOS"
macOS-specific content
=== "Linux"
Linux-specific contentLinks:
[Link Text](../path/to/file.md)- ✅ Use relative links:
../installation/npm-installation.md - ✅ Add "Next Steps" at page end
- ✅ Include code examples with comments
- ✅ Test all commands before documenting
- ✅ Use admonitions for important notes
Error: "Config file not found"
# Make sure you're in project root
pwd # Should show: /path/to/mcp-n8n-workflow-builder
# Run from correct location
npm run docs:buildError: "Documentation file does not exist"
- Check file path in
mkdocs.yml - Verify file exists in
docs/directory - Check for typos in filenames
GitHub Pages not updating:
- Check GitHub Actions workflow
- Verify
gh-pagesbranch exists - Enable GitHub Pages in Settings → Pages
- Clear browser cache
mcp-n8n-workflow-builder/
├── mkdocs.yml # Configuration
├── requirements.txt # Python dependencies
├── docs/
│ ├── index.md # Homepage
│ ├── getting-started/ # Installation & setup
│ ├── features/ # Feature documentation (TBD)
│ ├── examples/ # Examples (TBD)
│ ├── api/ # API reference (TBD)
│ └── assets/ # Images, CSS, JS
└── .github/
└── workflows/
└── deploy-docs.yml # Auto-deployment
# Development
npm run docs:dev # Start dev server
# Build & Deploy
npm run docs:build # Build only
npm run docs:deploy # Build + deploy
# Testing
mkdocs build --strict # Validate
python3 -m http.server # Test locally- MkDocs: https://www.mkdocs.org/
- Material Theme: https://squidfunk.github.io/mkdocs-material/
- Markdown Guide: https://www.markdownguide.org/
Completed:
- ✅ Homepage (
index.md) - ✅ Installation guides (NPM, Manual, Configuration)
- ✅ Quick Start (Claude Desktop, First Workflow, Verification)
- ✅ CI/CD pipeline (GitHub Actions)
- ✅ Custom styling and JavaScript
Total: 7 pages, 20,800+ words
Pending:
- ⏳ Features documentation (Epic 4)
- ⏳ Multi-instance guides (Epic 5)
- ⏳ Examples & tutorials (Epic 6)
- ⏳ API reference (Epic 7)
Questions? See docs/README.md for detailed documentation guide.