Skip to content

Commit

Permalink
build pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Feb 9, 2023
1 parent 1e3708c commit cf09fba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install rmarkdown
run: Rscript -e 'install.packages(c("rmarkdown", "bookdown"))'
- name: Render Book
run: Rscript -e 'bookdown::render_book("index.Rmd")'
run: Rscript build.R
- name: Create cname file
uses: finnp/create-file-action@master
env:
Expand Down
3 changes: 3 additions & 0 deletions _bookdown.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
book_filename: "manual.Rmd"
delete_merged_file: true
clean: ["manual.tex", "manual.log", "manual.Rmd"]
rmd_files:
- index.Rmd
- policy.md
Expand Down
1 change: 1 addition & 0 deletions build.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rmarkdown::render_site(encoding = "UTF-8")
13 changes: 13 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
---
title: "The OBIS manual"
site: "bookdown::bookdown_site"
header-includes:
- \usepackage[utf8]{inputenc}
- \DeclareUnicodeCharacter{3BC}{$\mu$}
- \usepackage{enumitem}
- \setlistdepth{20}
- \renewlist{itemize}{itemize}{20}
- \renewlist{enumerate}{enumerate}{20}
- \setlist[itemize]{label=$\cdot$}
- \setlist[itemize,1]{label=\textbullet}
- \setlist[itemize,2]{label=--}
- \setlist[itemize,3]{label=*}
output:
bookdown::pdf_book:
template: null
bookdown::gitbook:
toc_depth: 3
includes:
Expand Down

0 comments on commit cf09fba

Please sign in to comment.