Skip to content

Commit 72a7cc4

Browse files
authored
Merge pull request #196 from django-commons/uv
fix docs pdf build
2 parents 5eb1a72 + a470cd3 commit 72a7cc4

File tree

4 files changed

+236
-23
lines changed

4 files changed

+236
-23
lines changed

doc/broken_links.py

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

justfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,17 @@ 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+
from pathlib import Path
112+
webbrowser.open(f"file://{Path('./doc/build/pdf/django-typer.pdf').absolute()}")
113+
108114
# build pdf documentation
109115
build-docs-pdf: install-docs
110-
@just run sphinx-build --fresh-env --builder latexpdf --doctree-dir ./doc/build/doctrees ./doc/source ./doc/build/pdf
116+
@just run sphinx-build --fresh-env --builder latex --doctree-dir ./doc/build/doctrees ./doc/source ./doc/build/pdf
117+
make -C ./doc/build/pdf
118+
@just _open-pdf-docs
111119

112120
# build the docs
113121
build-docs: build-docs-html

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ rich = ["rich>=10.11.0,<14.0.0"]
7171
"Documentation" = "https://django-typer.readthedocs.io"
7272
"Repository" = "https://github.com/django-commons/django-typer"
7373
"Issues" = "https://github.com/django-commons/django-typer/issues"
74-
"Changelog" = "https://django-typer.readthedocs.io/en/latest/changelog.html"
74+
"Changelog" = "https://django-typer.readthedocs.io/en/stable/changelog.html"
7575
"Code_of_Conduct" = "https://github.com/django-commons/membership/blob/main/CODE_OF_CONDUCT.md"
7676

7777

@@ -197,7 +197,7 @@ docs = [
197197
"sphinx>=7.4.7",
198198
"sphinx-autobuild>=2024.10.3",
199199
"sphinx-tabs>=3.4.7",
200-
"sphinxcontrib-typer>=0.5.1",
200+
"sphinxcontrib-typer[png]>=0.5.1",
201201
]
202202
psycopg3 = [
203203
"psycopg>=3.1.8",

0 commit comments

Comments
 (0)