add docs build path for ci to check pdf and epub

This commit is contained in:
pacrob
2024-01-31 15:00:58 -07:00
committed by Paul Robinson
parent 2eff6f8be8
commit bdd1a342d9
3 changed files with 20 additions and 4 deletions

View File

@ -85,9 +85,19 @@ windows-wheel-steps:
- .tox - .tox
key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} 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: jobs:
docs: docs:
<<: *common <<: *docs
docker: docker:
- image: cimg/python:3.8 - image: cimg/python:3.8
environment: environment:

View File

@ -39,11 +39,17 @@ build-docs:
$(MAKE) -C docs html $(MAKE) -C docs html
$(MAKE) -C docs doctest $(MAKE) -C docs doctest
validate-docs: build-docs-ci:
$(MAKE) -C docs latexpdf
$(MAKE) -C docs epub
validate-newsfragments:
python ./newsfragments/validate_files.py python ./newsfragments/validate_files.py
towncrier build --draft --version preview 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 docs: check-docs
open docs/_build/html/index.html open docs/_build/html/index.html

View File

@ -16,7 +16,7 @@ per-file-ignores=__init__.py:F401
usedevelop=True usedevelop=True
commands= commands=
core: pytest {posargs:tests/core} core: pytest {posargs:tests/core}
docs: make check-docs docs: make check-docs-ci
basepython= basepython=
docs: python docs: python
windows-wheel: python windows-wheel: python