File tree Expand file tree Collapse file tree 3 files changed +55
-4
lines changed Expand file tree Collapse file tree 3 files changed +55
-4
lines changed Original file line number Diff line number Diff line change 15
15
python-version : 3.8
16
16
environment-file : environment.yml
17
17
activate-environment : quantecon
18
+ - name : Install latex dependencies
19
+ run : |
20
+ sudo apt-get -qq update
21
+ sudo apt-get install -y \
22
+ texlive-latex-recommended \
23
+ texlive-latex-extra \
24
+ texlive-fonts-recommended \
25
+ texlive-fonts-extra \
26
+ texlive-xetex \
27
+ latexmk \
28
+ xindy
18
29
- name : Display Conda Environment Versions
19
30
shell : bash -l {0}
20
31
run : conda list
28
39
branch : main
29
40
name : build-cache
30
41
path : _build
42
+ # Build Assets (Download Notebooks and PDF via LaTeX)
43
+ - name : Build PDF from LaTeX
44
+ shell : bash -l {0}
45
+ run : |
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
49
+ - name : Build Download Notebooks (sphinx-tojupyter)
50
+ shell : bash -l {0}
51
+ run : |
52
+ jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
53
+ mkdir -p _build/html/_notebooks
54
+ cp -u _build/jupyter/*.ipynb _build/html/_notebooks
55
+ # Build HTML (Website)
31
56
- name : Build HTML
32
57
shell : bash -l {0}
33
58
run : |
Original file line number Diff line number Diff line change @@ -19,16 +19,33 @@ jobs:
19
19
python-version : 3.8
20
20
environment-file : environment.yml
21
21
activate-environment : quantecon
22
+ - name : Install latex dependencies
23
+ run : |
24
+ sudo apt-get -qq update
25
+ sudo apt-get install -y \
26
+ texlive-latex-recommended \
27
+ texlive-latex-extra \
28
+ texlive-fonts-recommended \
29
+ texlive-fonts-extra \
30
+ texlive-xetex \
31
+ latexmk \
32
+ xindy
22
33
- name : Display Conda Environment Versions
23
34
shell : bash -l {0}
24
35
run : conda list
25
36
- name : Display Pip Versions
26
37
shell : bash -l {0}
27
38
run : pip list
28
- - name : Build HTML
39
+ # Build Assets (Download Notebooks and PDF via LaTeX)
40
+ - name : Build PDF from LaTeX
29
41
shell : bash -l {0}
30
42
run : |
31
- 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
32
49
- name : Build Download Notebooks (sphinx-tojupyter)
33
50
shell : bash -l {0}
34
51
run : |
41
58
- name : Copy Download Notebooks for GH-PAGES
42
59
shell : bash -l {0}
43
60
run : |
44
- mkdir _build/html/_notebooks
45
- cp _build/jupyter/*.ipynb _build/html/_notebooks
61
+ mkdir -p _build/html/_notebooks
62
+ cp -u _build/jupyter/*.ipynb _build/html/_notebooks
63
+ # Build HTML (Website)
64
+ - name : Build HTML
65
+ shell : bash -l {0}
66
+ run : |
67
+ jb build lectures --path-output ./
46
68
- name : Deploy website to gh-pages
47
69
uses : peaceiris/actions-gh-pages@v3
48
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