diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64de906d0..916f9eace 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,10 +28,30 @@ jobs: branch: main name: build-cache path: _build + - 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: Build PDF from LaTeX + shell: bash -l {0} + run: | + jb build lectures --builder pdflatex --path-output ./ -n --keep-going + - name: Copy pdf assets + shell: bash -l {0} + run: | + mkdir _build/html/_pdf + cp _build/latex/*.pdf _build/html/_pdf - name: Build HTML shell: bash -l {0} run: | - jb build -W --keep-going lectures --path-output ./ + jb build lectures --path-output ./ - name: Save Build as Artifact uses: actions/upload-artifact@v1 with: @@ -46,4 +66,4 @@ jobs: deploy-message: "Preview Deploy from GitHub Actions" env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} \ No newline at end of file + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/environment.yml b/environment.yml index 38cdc94bd..23d4df71d 100644 --- a/environment.yml +++ b/environment.yml @@ -8,13 +8,13 @@ dependencies: - pip: - jupyter-book - sphinx-multitoc-numbering - - quantecon-book-theme - sphinx-tojupyter - sphinxext-rediraffe - sphinx-exercise - jupytext - ghp-import - jupinx + - git+git://github.com/QuantEcon/quantecon-book-theme@download-pdf # Temporary Fixes - tornado>=6.1