diff --git a/.circleci/config.yml b/.circleci/config.yml index fdc4c841..d9e28eb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -84,10 +84,20 @@ windows-wheel-steps: paths: - .tox key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} + +docs: &docs + docker: + - image: common + steps: + - run: + name: install latexpdf dependencies + command: | + sudo apt-get update + sudo apt-get install latexmk tex-gyre texlive-fonts-extra jobs: docs: - <<: *common + <<: *docs docker: - image: cimg/python:3.8 environment: diff --git a/Makefile b/Makefile index c5956da1..d1c5c7a2 100644 --- a/Makefile +++ b/Makefile @@ -38,12 +38,18 @@ build-docs: $(MAKE) -C docs clean $(MAKE) -C docs html $(MAKE) -C docs doctest + +build-docs-ci: + $(MAKE) -C docs latexpdf + $(MAKE) -C docs epub -validate-docs: +validate-newsfragments: python ./newsfragments/validate_files.py towncrier build --draft --version preview -check-docs: build-docs validate-docs +check-docs: build-docs validate-newsfragments + +check-docs-ci: build-docs build-docs-ci validate-newsfragments docs: check-docs open docs/_build/html/index.html diff --git a/tox.ini b/tox.ini index 728d47d1..ce1da94b 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ per-file-ignores=__init__.py:F401 usedevelop=True commands= core: pytest {posargs:tests/core} - docs: make check-docs + docs: make check-docs-ci basepython= docs: python windows-wheel: python