Skip to content
Back to skills

5 Generate Api Documentation

ASecurity

Sub-skill of sphinx: 5. Generate API Documentation (+1).

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
documentationpythongobashapidocumentation

Works with

  • api

Security analysis

A93/100
  • highPerforms destructive filesystem operations

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

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 5-generate-api-documentation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 5 Generate Api Documentation?

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

Security grade badge for 5 Generate Api Documentation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-5-generate-api-documentation/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-5-generate-api-documentation)

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: sphinx-5-generate-api-documentation
description: 'Sub-skill of sphinx: 5. Generate API Documentation (+1).'
version: 1.0.0
category: development
type: reference
scripts_exempt: true
---

# 5. Generate API Documentation (+1)

## 5. Generate API Documentation


```bash
# Auto-generate API documentation stubs
sphinx-apidoc -o docs/source/api src/mypackage -f -e -M

# Options:
# -o: Output directory
# -f: Force overwrite
# -e: Separate pages for each module
# -M: Module-first ordering
# -d 2: TOC depth

# Build HTML documentation
sphinx-build -b html docs/source docs/build/html

# Build with verbose output
sphinx-build -b html docs/source docs/build/html -v

# Clean and rebuild
rm -rf docs/build && sphinx-build -b html docs/source docs/build/html
```


## 6. MyST Markdown Support


```python
# conf.py - Enable MyST
extensions = [
    'myst_parser',
]

# MyST configuration
myst_enable_extensions = [
    'amsmath',
    'colon_fence',
    'deflist',
    'dollarmath',
    'fieldlist',
    'html_admonition',
    'html_image',
    'replacements',
    'smartquotes',
    'strikethrough',
    'substitution',
    'tasklist',
]

myst_heading_anchors = 3
myst_footnote_transition = True
```

```markdown
<!-- docs/source/guide/overview.md -->

# Overview

This guide provides an overview of MyProject.

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.