Skip to content
Open
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
16 changes: 8 additions & 8 deletions .github/workflows/install-mdbook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ runs:
with:
tool: mdbook@${{ steps.mdbook-version.outputs.version }},mdbook-pandoc@${{ steps.mdbook-pandoc-version.outputs.version }},mdbook-last-changed@${{ steps.mdbook-last-changed-version.outputs.version }}

# - name: Install mdbook-pandoc and related dependencies
# run: |
# . ./.env
# sudo apt-get update
# sudo apt-get install -y texlive texlive-latex-extra texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
# curl -LsSf https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-amd64.tar.gz | tar zxf -
# echo "$PWD/pandoc-$PANDOC_VERSION/bin" >> $GITHUB_PATH
# shell: bash
- name: Install mdbook-pandoc and related dependencies
run: |
. ./.env
sudo apt-get update
sudo apt-get install -y texlive texlive-latex-extra texlive-luatex texlive-lang-cjk librsvg2-bin fonts-noto
curl -LsSf https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-amd64.tar.gz | tar zxf -
echo "$PWD/pandoc-$PANDOC_VERSION/bin" >> $GITHUB_PATH
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- name: Build course
run: |
mdbook build -d book
# mv book/html/* book/pandoc/pdf/*.pdf book/
# rm -r book/html book/pandoc
mv book/html/* book/pandoc/pdf/rustic-user-docs.pdf book/
rm -r book/html book/pandoc

- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
Expand Down
28 changes: 14 additions & 14 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ additional-css = ["./styles/last-changed.css"]
enable = true
level = 0

# [output.pandoc]
# optional = true
# hosted-html = "https://rustic.cli.rs/docs/"
[output.pandoc]
optional = true
hosted-html = "https://rustic.cli.rs/docs/"

# [output.pandoc.profile.pdf]
# output-file = "rustic-user-docs.pdf"
# pdf-engine = "lualatex"
[output.pandoc.profile.pdf]
output-file = "rustic-user-docs.pdf"
pdf-engine = "lualatex"

# [output.pandoc.profile.pdf.variables]
# mainfont = "Noto Serif"
# sansfont = "Noto Sans"
# monofont = "Noto Sans Mono"
# mainfontfallback = ["NotoSerifCJKSC:"]
# geometry = ["margin=1in"]
# linkcolor = "blue"
# urlcolor = "red"
[output.pandoc.profile.pdf.variables]
mainfont = "Noto Serif"
sansfont = "Noto Sans"
monofont = "Noto Sans Mono"
mainfontfallback = ["NotoSerifCJKSC:"]
geometry = ["margin=1in"]
linkcolor = "blue"
urlcolor = "red"