File tree Expand file tree Collapse file tree 4 files changed +236
-23
lines changed Expand file tree Collapse file tree 4 files changed +236
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -105,9 +105,17 @@ clean: clean-docs clean-git-ignored clean-env
105
105
build-docs-html : install-docs
106
106
@ just run sphinx-build --fresh-env --builder html --doctree-dir ./ doc/ build/ doctrees ./ doc/ source ./ doc/ build/ html
107
107
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
+
108
114
# build pdf documentation
109
115
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
111
119
112
120
# build the docs
113
121
build-docs : build-docs-html
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ rich = ["rich>=10.11.0,<14.0.0"]
71
71
"Documentation" = " https://django-typer.readthedocs.io"
72
72
"Repository" = " https://github.com/django-commons/django-typer"
73
73
"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"
75
75
"Code_of_Conduct" = " https://github.com/django-commons/membership/blob/main/CODE_OF_CONDUCT.md"
76
76
77
77
@@ -197,7 +197,7 @@ docs = [
197
197
" sphinx>=7.4.7" ,
198
198
" sphinx-autobuild>=2024.10.3" ,
199
199
" sphinx-tabs>=3.4.7" ,
200
- " sphinxcontrib-typer>=0.5.1" ,
200
+ " sphinxcontrib-typer[png] >=0.5.1" ,
201
201
]
202
202
psycopg3 = [
203
203
" psycopg>=3.1.8" ,
You can’t perform that action at this time.
0 commit comments