-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pdflatex] Enable book style build of PDF via LaTeX (#139)
* [pdflatex] Enable book style build of PDF via LaTeX * Add final build of html for asset detection, configure to use just binder * remove initial build of html * remove initial build of html * rename PDF
- Loading branch information
Showing
3 changed files
with
55 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,17 @@ jobs: | |
python-version: 3.8 | ||
environment-file: environment.yml | ||
activate-environment: lecture-python-programming | ||
- name: Install latex dependencies | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y \ | ||
texlive-latex-recommended \ | ||
texlive-latex-extra \ | ||
texlive-fonts-recommended \ | ||
texlive-fonts-extra \ | ||
texlive-xetex \ | ||
latexmk \ | ||
xindy | ||
- name: Display Conda Environment Versions | ||
shell: bash -l {0} | ||
run: conda list | ||
|
@@ -28,16 +39,24 @@ jobs: | |
branch: master | ||
name: build-cache | ||
path: _build | ||
- name: Build HTML | ||
shell: bash -l {0} | ||
run: | | ||
jb build lectures --path-output ./ | ||
# Build Assets (Download Notebooks and PDF via LaTeX) | ||
- name: Build Download Notebooks (sphinx-tojupyter) | ||
shell: bash -l {0} | ||
run: | | ||
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter | ||
mkdir -p _build/html/_notebooks | ||
cp -u _build/jupyter/*.ipynb _build/html/_notebooks | ||
- name: Build PDF from LaTeX | ||
shell: bash -l {0} | ||
run: | | ||
jb build lectures --builder pdflatex --path-output ./ -n --keep-going | ||
mkdir _build/html/_pdf | ||
cp -u _build/latex/*.pdf _build/html/_pdf | ||
# Final Build of HTML | ||
- name: Build HTML | ||
shell: bash -l {0} | ||
run: | | ||
jb build lectures --path-output ./ | ||
- name: Preview Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0229091
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://epic-agnesi-957267.netlify.app as production
🚀 Deployed on https://6099d7f42b488315f21580ea--epic-agnesi-957267.netlify.app
0229091
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://6099d8032b48831265157fb4--epic-agnesi-957267.netlify.app