Skip to content
Back to skills

Mkdocs Setup

ASecurity

Stand up a docs site (MkDocs or Docusaurus) with navigation, search, and a working local preview.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentspythongoreactgitdocumentation

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 3, 2026

npx -y skills add black141312/ada --skill mkdocs-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mkdocs Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mkdocs Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-mkdocs-setup/badge)](https://www.skillsdirectory.com/skills/black141312-mkdocs-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mkdocs-setup
description: Stand up a docs site (MkDocs or Docusaurus) with navigation, search, and a working local preview.
category: docs
---

# MkDocs Setup

Reach for this when a project needs a real documentation site, not just a README — versioned pages, a nav tree, and full-text search.

1. Pick the stack: MkDocs + Material for Python/simple sites; Docusaurus for React/versioned/i18n-heavy docs. Default to MkDocs Material.
2. Scaffold: `pip install mkdocs-material` then `mkdocs new .` (or `npx create-docusaurus@latest docs classic`).
3. Create `docs/index.md` plus a page per top-level topic; keep one `<h1>` per file and use relative links between pages.
4. Define the nav explicitly in `mkdocs.yml` (`nav:`) so order is deterministic; don't rely on filesystem ordering.
5. Enable search and theme features in config (`theme: name: material`, `plugins: [search]`, `features: [navigation.sections, search.suggest]`).
6. Preview with `mkdocs serve` (or `npm start`) and watch for broken-link / missing-nav warnings in the console.
7. Build static output with `mkdocs build --strict` and deploy via CI (GitHub Pages: `mkdocs gh-deploy`).

## Rules
- `--strict` in CI so broken links and orphaned pages fail the build instead of shipping.
- Keep `docs/` flat-ish; deep folder nesting makes relative links fragile and nav noisy.
- Pin the docs toolchain version (requirements.txt / package.json) so builds are reproducible.
- Don't hand-edit generated `site/`; it's output — commit only sources.
- Add a `site_url` so search, canonical links, and sitemap generation work correctly.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.