File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ jobs:
117
117
sphinx-design
118
118
sphinx-gallery
119
119
sphinx_rtd_theme<3.0
120
+ tectonic
120
121
121
122
# Download cached remote files (artifacts) from GitHub
122
123
- name : Download remote data from GitHub
@@ -137,7 +138,15 @@ jobs:
137
138
138
139
# Build the documentation
139
140
- name : Build the documentation
140
- run : make -C doc clean all
141
+ run : make -C doc clean html pdf
142
+
143
+ # Temporarily upload the built PDF to the artifacts
144
+ - name : Upload PDF to artifacts
145
+
146
+ with :
147
+ name : pygmt-docs-pdf
148
+ path : doc/_build/latex/pygmt.pdf
149
+ if : matrix.os == 'ubuntu-latest'
141
150
142
151
- name : Checkout the gh-pages branch
143
152
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ html-noplot: api
43
43
@echo
44
44
@echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
45
45
46
+ pdf : latex
47
+ @echo
48
+ @echo " Building PDF via Tectonic."
49
+ @echo
50
+ tectonic $(BUILDDIR ) /latex/pygmt.tex
51
+ @echo
52
+ @echo " PDF build finished. The PDF file is in $( BUILDDIR) /latex/pygmt.pdf."
53
+
46
54
server :
47
55
@echo
48
56
@echo " Running a server on port 8009."
You can’t perform that action at this time.
0 commit comments