Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PDF download link #4

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
node-version: 18.x
- name: Install MyST Markdown
run: npm install -g mystmd
- name: Build PDF Assets
run: myst build --typst
- name: Build HTML Assets
run: myst build --html
- name: Upload artifact
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
_build
_build
report.pdf
2 changes: 1 addition & 1 deletion main.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ We know they aren't perfect, and in some cases need an overhaul or better mechan
You'll see them in pull-quotes like the following:

:::{pull-quote}
Here's some extra information!
Here's an example pull quote!
:::

We'll include a brief explanation of why we use each of these measures, and what we might want to improve about them.
Expand Down
15 changes: 10 additions & 5 deletions myst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,23 @@ project:
- year2.md
- year1.md
output: report.pdf
# - format: pdf
# template: volcanica
# article_type: Report
# toc: _toc.yml
# output: _build/pdf/my-document-latex.pdf
- format: pdf
template: volcanica
article_type: Report
toc: _toc.yml
output: _build/pdf/my-document-latex.pdf
site:
template: book-theme
title: 2i2c three year report
options:
logo: images/logo.png
favicon: images/favicon.png
logo_text: '2023 three year report'
actions:
- title: Download PDF
url: report.pdf
static: true

nav:
- title: 2i2c links
children:
Expand Down