Skip to content

Commit a470cd3

Browse files
committed
fix latepdf doc build
1 parent 3285b4f commit a470cd3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,14 @@ build-docs-html: install-docs
108108
[script]
109109
_open-pdf-docs:
110110
import webbrowser
111+
from pathlib import Path
111112
webbrowser.open(f"file://{Path('./doc/build/pdf/django-typer.pdf').absolute()}")
112113

113114
# build pdf documentation
114115
build-docs-pdf: install-docs
115116
@just run sphinx-build --fresh-env --builder latex --doctree-dir ./doc/build/doctrees ./doc/source ./doc/build/pdf
116117
make -C ./doc/build/pdf
117-
@just _open_pdf-docs
118+
@just _open-pdf-docs
118119

119120
# build the docs
120121
build-docs: build-docs-html

pyproject.toml

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)