npx skills add ...
npx skills add microsoft/semantic-link-labs --skill build-docs
Guide for building documentation and validating docstrings. Use this when asked to build docs, check docstrings, or validate documentation.
npx skills add microsoft/semantic-link-labs --skill build-docs
This skill covers documentation building and docstring validation workflows for the Semantic Link Labs project.
Use this skill when you need to:
| Component | Details |
|---|---|
| Framework | Sphinx with numpydoc |
| Theme | sphinx_rtd_theme |
| Hosting | ReadTheDocs |
| Source location | docs/source/ |
| Build output | docs/build/html/ |
| Config | docs/source/conf.py |
Install documentation dependencies:
Open docs/build/html/index.html in a browser.
The project uses .readthedocs.yaml for automated builds:
This project uses numpydoc style for all docstrings.
Always include links to API documentation:
For functions supporting Service Principal authentication:
Symptom: Sphinx warning about missing docstring.
Fix: Add complete numpydoc-style docstring with all required sections.
Symptom: Warning about type mismatch between signature and docstring.
Fix: Ensure docstring parameter types match function signature type hints.
Symptom: Warning about unexpected indentation.
Fix: Use consistent 4-space indentation in docstrings.
Symptom: Warning about broken reference.
Fix: Verify URLs are correct and use proper RST link syntax:
Key settings in docs/source/conf.py:
Before committing changes with new or modified functions:
Verify docstring completeness:
Build documentation locally:
Check for warnings in build output
Preview the generated HTML to ensure proper rendering