mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
39 lines
906 B
Makefile
39 lines
906 B
Makefile
# You can set these variables from the command line.
|
|
SPHINXOPTS = -W
|
|
SPHINXBUILD = sphinx-build
|
|
PAPER =
|
|
BUILDDIR = _build
|
|
STATICDIR = _static
|
|
|
|
# Internal variables.
|
|
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(BUILDDIR)
|
|
|
|
.PHONY: html
|
|
html: clean
|
|
mkdir -p $(STATICDIR)
|
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
|
@echo
|
|
@echo "Build finished. open file://`pwd`/_build/html/index.html"
|
|
|
|
.PHONY: linkcheck
|
|
linkcheck:
|
|
mkdir -p $(STATICDIR)
|
|
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
|
@echo
|
|
@echo "Link check complete; look for any errors in the above output " \
|
|
"or in $(BUILDDIR)/linkcheck/output.txt."
|
|
|
|
.PHONY: spelling
|
|
spelling:
|
|
mkdir -p $(STATICDIR)
|
|
$(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
|
|
|
|
.PHONY: lint
|
|
lint: linkcheck spelling
|
|
@echo
|
|
@echo "linting complete"
|