Skip to content
Back to skills

2823 Mkdocs 29b30b80

ASecurity

MkDocs: Building and Serving Documentation - Purpose: Quick, accurate instructions for LLMs to help users preview, build, and publish the documentation site. - Scope: MkDocs project under `docs/` using MkDocs Material and plugins; includes local venv, live preview, static builds, and deploy. **Project Layout** - Root: repository code, app Makefile, tests, etc. - Docs site: `docs/` - `docs/docs/`: Markdown content (place pages here) - `docs/mkdocs.yml`: MkDocs configuration (site settings, plu...

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopspythongitdocumentation

Works with

  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2823-mkdocs_29b30b80 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2823 Mkdocs 29b30b80?

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

Security grade badge for 2823 Mkdocs 29b30b80
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2823-mkdocs-29b30b80/badge)](https://www.skillsdirectory.com/skills/tools-only-2823-mkdocs-29b30b80)

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

SKILL.md
MkDocs: Building and Serving Documentation

- Purpose: Quick, accurate instructions for LLMs to help users preview, build, and publish the documentation site.
- Scope: MkDocs project under `docs/` using MkDocs Material and plugins; includes local venv, live preview, static builds, and deploy.

**Project Layout**
- Root: repository code, app Makefile, tests, etc.
- Docs site: `docs/`
  - `docs/docs/`: Markdown content (place pages here)
  - `docs/mkdocs.yml`: MkDocs configuration (site settings, plugins)
  - `docs/Makefile`: docs-specific targets (venv, serve, build, deploy)
  - `docs/base.yml`, `docs/theme/`: shared settings and theme assets

Notes
- Author content only under `docs/docs/` and its subfolders.
- Left-nav ordering is controlled per-directory via `.pages` files (see `docs/docs/development/documentation.md`).

**First-Time Setup (Docs venv)**
- Python 3.11+ and GNU Make required.
- Create the MkDocs virtual environment (installed under `~/.venv/mcpgateway-docs`):
  - `cd docs`
  - `make venv`
  - To update later: `make venv-update`
- Activate venv (optional, the Makefile sources it automatically):
  - `. ~/.venv/mcpgateway-docs/bin/activate`

**Live Preview (Hot Reload)**
- From `docs/` run:
  - `make serve`
- Opens MkDocs server at `http://127.0.0.1:8000` with auto-reload on save.
- Port busy? Run MkDocs directly with a custom port:
  - `~/.venv/mcpgateway-docs/bin/mkdocs serve --dev-addr=127.0.0.1:8001`

**Static Builds**
- From `docs/`:
  - `make build`
    - Produces a full site and exports a combined HTML/Word output to `docs/site/out/` (via Pandoc).
  - `make package`
    - Builds site and packages sources as a tarball under `docs/release/`.

**Deploy to GitHub Pages**
- From `docs/`:
  - `make deploy` (runs `mkdocs gh-deploy`)

**Root-Level Helpers (Optional)**
- Some repository-wide targets enrich docs content:
  - `make htmlcov` (root) writes coverage HTML to `docs/docs/coverage/`.
  - `make coverage` (root) generates coverage HTML/XML/badge (does not update `unittest.md`).
  - `make test-docs` (root) generates `docs/docs/test/unittest.md` with test results and coverage.
  - `make docs` (root) builds images/SBOM and copies `README.md` to `docs/docs/index.md`.

**Quality & Linting**
- Prefer keeping docs consistent with the project's quality workflow:
  - `make autoflake isort black pre-commit` (root) to format Python, sort imports, and run hooks.
  - Additional docs authoring guidance: `docs/docs/development/documentation.md`.

**Common Tips**
- Keep file names in `lowercase-hyphen-case.md` and start with a top-level `# Heading`.
- Use relative links and keep images under `docs/docs/images/`.
- Do not directly edit `mkdocs.yml` navigation; manage per-folder navigation via `.pages`.

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.