Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
1b10292c
Unverified
Commit
1b10292c
authored
Jul 15, 2021
by
Henry Schreiner
Committed by
GitHub
Jul 15, 2021
Browse files
chore: support PDF from nox (#3121)
parent
55f6f6e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
noxfile.py
noxfile.py
+10
-6
No files found.
noxfile.py
View file @
1b10292c
...
...
@@ -53,14 +53,18 @@ def docs(session: nox.Session) -> None:
session
.
install
(
"-r"
,
"docs/requirements.txt"
)
session
.
chdir
(
"docs"
)
if
"pdf"
in
session
.
posargs
:
session
.
run
(
"sphinx-build"
,
"-M"
,
"latexpdf"
,
"."
,
"_build"
)
return
session
.
run
(
"sphinx-build"
,
"-M"
,
"html"
,
"."
,
"_build"
)
if
session
.
posargs
:
if
"serve"
in
session
.
posargs
:
print
(
"Launching docs at http://localhost:8000/ - use Ctrl-C to quit"
)
session
.
run
(
"python"
,
"-m"
,
"http.server"
,
"8000"
,
"-d"
,
"_build/html"
)
else
:
print
(
"Unsupported argument to docs"
)
if
"serve"
in
session
.
posargs
:
session
.
log
(
"Launching docs at http://localhost:8000/ - use Ctrl-C to quit"
)
session
.
run
(
"python"
,
"-m"
,
"http.server"
,
"8000"
,
"-d"
,
"_build/html"
)
elif
session
.
posargs
:
session
.
error
(
"Unsupported argument to docs"
)
@
nox
.
session
(
reuse_venv
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment