julianobarbosa/claude-code-skills/mkdocs
Claude Code and agent skill by julianobarbosa/claude-code-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Build project documentation sites with MkDocs static site generator. USE WHEN user mentions mkdocs, documentation site, docs site, project documentation, OR wants to create, configure, build, or deploy documentation using Markdown. Covers installation, configuration, theming, plugins, and deployment.
Install
npx vskill@latest install julianobarbosa/claude-code-skills/mkdocsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as julianobarbosa/claude-code-skills/mkdocs.
MkDocs Documentation Site Generator
MkDocs is a fast, simple static site generator for building project documentation from Markdown files. Configuration uses a single YAML file (mkdocs.yml).
Quick Start
Installation
Create New Project
Project Structure Created:
Minimal Configuration
Core Commands
| Command | Purpose | |
|---|---|---|
mkdocs new PROJECT | Create new project | |
mkdocs serve | Start dev server (localhost:8000) | |
mkdocs build | Build static site to site/ | |
mkdocs gh-deploy | Deploy to GitHub Pages | |
mkdocs get-deps | Show required packages |
Common Options:
-f, --config-file FILE- Use custom config file-s, --strict- Fail on warnings-d, --site-dir DIR- Custom output directory--dirty- Only rebuild changed files--clean- Clean output before build
Project Structure
Navigation Configuration
Writing Documentation
Internal Links
Page Metadata
Code Blocks
def hello(): print("Hello, World!")
Tables
Theme Configuration
Built-in Themes
Material for MkDocs (Popular Third-Party)
Custom CSS/JavaScript
Plugins
Popular Plugins:
search- Full-text search (built-in, enabled by default)blog- Blog functionality (Material theme)tags- Content categorizationsocial- Social media cards
Note: Definingpluginsdisables defaults. Add- searchexplicitly.
Markdown Extensions
Deployment
GitHub Pages
Build for Any Host
Custom Domain
Create docs/CNAME file:
Common Workflows
New Documentation Project
- Create project:
mkdocs new my-docs - Edit
mkdocs.ymlwith site_name and nav - Add Markdown files to
docs/ - Preview:
mkdocs serve - Build:
mkdocs build - Deploy:
mkdocs gh-deploy
Quick Build Preview
Bash(mkdocs build --dry-run)
If clean: Bash(mkdocs serve -v) (dev preview).
Add New Section
- Create directory:
docs/new-section/ - Add
index.mdand content files - Update
navinmkdocs.yml - Preview and verify links
Customize Theme
- Set
theme.custom_dir: custom_theme/ - Create override files matching theme structure
- Use template blocks to extend base templates
Safe Preview Workflow
- Check MkDocs:
Bash(which mkdocs || echo "Install: pip install mkdocs") - Dry-run build:
Bash(mkdocs build --dry-run) - List issues:
Grep -r "ERROR" site/
Detailed References
- Configuration options: See references/configuration.md
- Theme customization: See references/themes.md
- Plugin development: See references/plugins.md
- Deployment strategies: See references/deployment.md
- Best practices: See references/best-practices.md
Gotchas
- `mkdocs serve` watches `docs/` and `mkdocs.yml` but NOT files included via `include_dir` or theme overrides — edits to
custom_theme/main.htmldon't trigger reload. Restart the server. - Defining `plugins:` in mkdocs.yml disables the default search plugin — pages stop being indexed and the search box returns nothing. Always include
- searchexplicitly when listing plugins. - `mkdocs gh-deploy` force-pushes to `gh-pages` — any manual edits or other branches deployed there get destroyed silently. Use
--no-historyfor clean history but never editgh-pagesby hand. - `use_directory_urls: true` (default) changes link semantics:
page.mdbecomespage/notpage.html. Relative links in raw Markdown that worked locally as files break on the deployed site. - `strict: true` fails on warnings including unrecognized config keys — adding a Material-theme-only option to a config that uses the default theme fails the build, not just warns. Check theme compatibility before enabling strict.
- Material theme's `navigation.instant` feature breaks third-party JS that runs on page load — analytics, Mermaid, MathJax all need explicit
document$.subscribe()hooks instead ofDOMContentLoaded. - `mkdocs build --dirty` skips unchanged files but doesn't detect changes to navigation or theme config — pages render with stale nav. Use
--clean(default) or deletesite/when in doubt.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mkdocs/SKILL.md
Popularity
- Repository stars
- 84
- Repository forks
- 18
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/julianobarbosa/claude-code-skills/mkdocs)