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

@ -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:

View File

@ -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

View File

@ -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