Skip to content

Commit 0698a6c

Browse files
committed
fix docs pdf build
1 parent 54e9d28 commit 0698a6c

File tree

4 files changed

+234
-22
lines changed

4 files changed

+234
-22
lines changed

doc/broken_links.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,16 @@ clean: clean-docs clean-git-ignored clean-env
105105
build-docs-html: install-docs
106106
@just run sphinx-build --fresh-env --builder html --doctree-dir ./doc/build/doctrees ./doc/source ./doc/build/html
107107

108+
[script]
109+
_open-pdf-docs:
110+
import webbrowser
111+
webbrowser.open(f"file://{Path('./doc/build/pdf/django-typer.pdf').absolute()}")
112+
108113
# build pdf documentation
109114
build-docs-pdf: install-docs
110-
@just run sphinx-build --fresh-env --builder latexpdf --doctree-dir ./doc/build/doctrees ./doc/source ./doc/build/pdf
115+
@just run sphinx-build --fresh-env --builder latex --doctree-dir ./doc/build/doctrees ./doc/source ./doc/build/pdf
116+
make -C ./doc/build/pdf
117+
@just _open_pdf-docs
111118

112119
# build the docs
113120
build-docs: build-docs-html

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ docs = [
196196
"sphinx>=7.4.7",
197197
"sphinx-autobuild>=2024.10.3",
198198
"sphinx-tabs>=3.4.7",
199-
"sphinxcontrib-typer>=0.5.1",
199+
"sphinxcontrib-typer[png]>=0.5.1",
200200
]
201201
psycopg3 = [
202202
"psycopg>=3.1.8",

0 commit comments

Comments
 (0)