Agent skill
sphinx-integration-with-pyprojecttoml
Sub-skill of sphinx: Integration with pyproject.toml (+2).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/development/documentation/sphinx/integration-with-pyprojecttoml
SKILL.md
Integration with pyproject.toml (+2)
Integration with pyproject.toml
# pyproject.toml
[project]
name = "mypackage"
version = "1.0.0"
description = "A Python package with Sphinx docs"
readme = "README.md"
requires-python = ">=3.8"
[project.optional-dependencies]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=2.0.0",
"sphinx-autodoc-typehints>=1.25.0",
"sphinx-copybutton>=0.5.0",
"myst-parser>=2.0.0",
]
[tool.setuptools.packages.find]
where = ["src"]
Integration with Makefile
# docs/Makefile
SPHINXOPTS ?= -W --keep-going
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
.PHONY: help clean html pdf epub linkcheck livehtml
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
clean:
rm -rf $(BUILDDIR)/*
html:
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
@echo "Build finished. Open $(BUILDDIR)/html/index.html"
pdf:
@$(SPHINXBUILD) -b latex "$(SOURCEDIR)" "$(BUILDDIR)/latex" $(SPHINXOPTS)
@$(MAKE) -C "$(BUILDDIR)/latex" all-pdf
@echo "Build finished. PDF at $(BUILDDIR)/latex/*.pdf"
epub:
@$(SPHINXBUILD) -b epub "$(SOURCEDIR)" "$(BUILDDIR)/epub" $(SPHINXOPTS)
@echo "Build finished. EPUB at $(BUILDDIR)/epub/*.epub"
linkcheck:
@$(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)/linkcheck" $(SPHINXOPTS)
livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
Integration with Pre-commit
# .pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: sphinx-build
name: Build Sphinx documentation
entry: sphinx-build -b html docs/source docs/build/html -W
language: system
pass_filenames: false
types: [python, rst, markdown]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?