diff --git a/Makefile b/Makefile index 3f9c041ab0..f94587c4fe 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,8 @@ $(VENV)/bin/activate: $(VENV)/bin/sphinx-build: $(VENV)/bin/activate . $(VENV)/bin/activate; python3 -m pip install sphinx python-docs-theme +$(VENV)/bin/sphinx-lint: $(VENV)/bin/activate + . $(VENV)/bin/activate; python3 -m pip install sphinx-lint $(VENV)/bin/blurb: $(VENV)/bin/activate . $(VENV)/bin/activate; python3 -m pip install blurb @@ -76,7 +78,7 @@ $(VENV)/bin/blurb: $(VENV)/bin/activate .PHONY: upgrade_venv upgrade_venv: $(VENV)/bin/activate ## Upgrade the venv that compiles the doc - . $(VENV)/bin/activate; python3 -m pip install --upgrade sphinx python-docs-theme blurb + . $(VENV)/bin/activate; python3 -m pip install --upgrade sphinx python-docs-theme blurb sphinx-lint .PHONY: progress @@ -130,3 +132,7 @@ fuzzy: ## Find fuzzy strings .PHONY: rm_cpython rm_cpython: ## Remove cloned cpython repo rm -rf $(CPYTHON_CLONE) + +.PHONY: lint +lint: $(VENV)/bin/sphinx-lint ## Run sphinx-lint + $(VENV)/bin/sphinx-lint --enable default-role