Skip to content

Commit 7252395

Browse files
committed
switching to bs4
ref #13
1 parent 5625eda commit 7252395

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

_bookdown.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
book_filename: "data-science-practices-1"
2+
new_session: true
3+
before_chapter_script: _common.R
24
delete_merged_file: true
5+
output_dir: "_book" # This blocks local contributions but allows GitHub Actions (which write to docs/ instead of _book/) to be deliver html files where GitHub Pages can serve it.
36
language:
47
ui:
58
chapter_name: "Chapter "
6-
output_dir: "docs"
7-
edit: https://github.com/ouhscbbmc/data-science-practices-1/edit/main/%s
89
rmd_files:
910
[
1011
"index.Rmd",

_common.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# example R options set globally
2+
options(width = 60)
3+
4+
# example chunk options set globally
5+
knitr::opts_chunk$set(
6+
comment = "#>",
7+
collapse = TRUE
8+
)

_output.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
bookdown::gitbook:
2-
css: style.css
1+
bookdown::bs4_book:
2+
css: bs4_style.css
3+
theme:
4+
primary: "#096B72"
5+
repo:
6+
base: https://github.com/OuhscBbmc/data-science-practices-1
7+
branch: main
38
config:
4-
toc:
5-
before: |
6-
<li><a href="./">Collaborative Data Science</a></li>
7-
after: |
8-
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
9-
download: ["pdf", "epub"]
10-
bookdown::pdf_book:
11-
includes:
12-
in_header: preamble.tex
13-
latex_engine: xelatex
14-
citation_package: natbib
15-
keep_tex: yes
9+
search:
10+
engine: fuse # lunr is the default
11+
options: null # can override, see: https://fusejs.io/api/options.html
12+
# bookdown::pdf_book:
13+
# includes:
14+
# in_header: preamble.tex
15+
# latex_engine: xelatex
16+
# citation_package: natbib
17+
# keep_tex: yes
1618
bookdown::epub_book: default

0 commit comments

Comments
 (0)