build-docs

Build and validate Sphinx documentation with numpydoc standards.

561|190|Updated May 16, 2024
One-click install
npx skills add https://github.com/microsoft/semantic-link-labs --skill build-docs-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-docs
Source: https://github.com/microsoft/semantic-link-labs/tree/main/.claude/skills/build-docs
Command: npx skills add https://github.com/microsoft/semantic-link-labs --skill build-docs-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of building and validating project documentation, ensuring that all code is properly documented and that the documentation is error-free.

Core Features & Use Cases

  • Local Documentation Builds: Generate HTML documentation locally to preview changes.
  • Docstring Validation: Enforces numpydoc standards and checks for common docstring errors.
  • Use Case: Before merging a new feature, use this Skill to build the documentation locally and verify that all new functions have complete and correctly formatted docstrings.

Quick Start

Use the build-docs skill to build the project documentation locally.

Frequently Asked Questions about build-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and validate project documentation locally using Sphinx?

To build and validate documentation locally using Sphinx, run the build process to generate HTML output, then check for numpydoc docstring formatting errors and common build failures to ensure code documentation quality before merging.

What are common Sphinx docstring validation errors and how do I fix them?

Common Sphinx docstring validation errors involve incorrect numpydoc formatting and missing parameter descriptions. Resolve these errors by correcting the docstring syntax to adhere to project documentation standards and rebuilding the HTML locally.

Does this documentation build process enforce numpydoc standards?

Yes, the documentation build process enforces numpydoc standards. It validates all docstrings against these specific formatting rules and checks for common errors to ensure strict adherence to project documentation quality standards.

How do I configure ReadTheDocs for a local documentation build?

Configuring ReadTheDocs for a local documentation build involves setting up the Sphinx environment to mirror the ReadTheDocs build configuration. This ensures your local HTML preview accurately matches the deployed project documentation output.

When should I validate docstrings before merging new features?

You should validate docstrings before merging new features to ensure all new functions have complete and correctly formatted numpydoc documentation. Running a local Sphinx build prevents errors and verifies strict adherence to project standards.