File tree Expand file tree Collapse file tree 3 files changed +25
-17
lines changed Expand file tree Collapse file tree 3 files changed +25
-17
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,24 @@ jobs:
39
39
branch : main
40
40
name : build-cache
41
41
path : _build
42
- - name : Build HTML
42
+ # Build Assets (Download Notebooks and PDF via LaTeX)
43
+ - name : Build PDF from LaTeX
43
44
shell : bash -l {0}
44
45
run : |
45
- jb build -W --keep-going lectures --path-output ./
46
+ jb build lectures --builder pdflatex --path-output ./ -n --keep-going
47
+ mkdir -p _build/html/_pdf
48
+ cp -u _build/latex/*.pdf _build/html/_pdf
46
49
- name : Build Download Notebooks (sphinx-tojupyter)
47
50
shell : bash -l {0}
48
51
run : |
49
52
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
50
53
mkdir -p _build/html/_notebooks
51
54
cp -u _build/jupyter/*.ipynb _build/html/_notebooks
52
- - name : Build PDF from LaTeX
55
+ # Build HTML (Website)
56
+ - name : Build HTML
53
57
shell : bash -l {0}
54
58
run : |
55
- jb build lectures --builder pdflatex --path-output ./ -n --keep-going
56
- mkdir _build/html/_pdf
57
- cp -u _build/latex/*.pdf _build/html/_pdf
59
+ jb build -W --keep-going lectures --path-output ./
58
60
- name : Save Build as Artifact
59
61
uses : actions/upload-artifact@v1
60
62
with :
Original file line number Diff line number Diff line change @@ -36,10 +36,16 @@ jobs:
36
36
- name : Display Pip Versions
37
37
shell : bash -l {0}
38
38
run : pip list
39
- - name : Build HTML
39
+ # Build Assets (Download Notebooks and PDF via LaTeX)
40
+ - name : Build PDF from LaTeX
40
41
shell : bash -l {0}
41
42
run : |
42
- jb build lectures --path-output ./
43
+ jb build lectures --builder pdflatex --path-output ./ -n --keep-going
44
+ - name : Copy LaTeX PDF for GH-PAGES
45
+ shell : bash -l {0}
46
+ run : |
47
+ mkdir _build/html/_pdf
48
+ cp _build/latex/*.pdf _build/html/_pdf
43
49
- name : Build Download Notebooks (sphinx-tojupyter)
44
50
shell : bash -l {0}
45
51
run : |
@@ -52,17 +58,13 @@ jobs:
52
58
- name : Copy Download Notebooks for GH-PAGES
53
59
shell : bash -l {0}
54
60
run : |
55
- mkdir _build/html/_notebooks
56
- cp _build/jupyter/*.ipynb _build/html/_notebooks
57
- - name : Build PDF from LaTeX
58
- shell : bash -l {0}
59
- run : |
60
- jb build lectures --builder pdflatex --path-output ./ -n --keep-going
61
- - name : Copy LaTeX PDF for GH-PAGES
61
+ mkdir -p _build/html/_notebooks
62
+ cp -u _build/jupyter/*.ipynb _build/html/_notebooks
63
+ # Build HTML (Website)
64
+ - name : Build HTML
62
65
shell : bash -l {0}
63
66
run : |
64
- mkdir _build/html/_pdf
65
- cp _build/latex/*.pdf _build/html/_pdf
67
+ jb build lectures --path-output ./
66
68
- name : Deploy website to gh-pages
67
69
uses : peaceiris/actions-gh-pages@v3
68
70
with :
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ bibtex_bibfiles:
13
13
html :
14
14
baseurl : https://python.quantecon.org/
15
15
16
+ latex :
17
+ latex_documents :
18
+ targetname : quantecon-python.tex
19
+
16
20
sphinx :
17
21
extra_extensions : [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter]
18
22
config :
You can’t perform that action at this time.
0 commit comments