Skip to content

Commit f6fa713

Browse files
authors in config (but no newline in pdf...oh well) and no welcome page in pdf
1 parent eb001b6 commit f6fa713

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build_pdf.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
# Script to generate PDF book
2+
3+
# backup original index.Rmd
4+
cp source/index.md index_backup.md
5+
6+
# PDF book doesn't need the welcome page. I couldn't find a way to stop jupyterbook from including it.
7+
# so this script manually removes the welcome page before building the PDF. This is a bit painful, but it works...
8+
sed -n -i "/graphic/q;p" source/index.md
9+
echo "# Data Science: A First Introduction" >> source/index.md
10+
111
chmod -R o+w source/
212
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:20231112004031dd2207 /bin/bash -c "export BOOK_BUILD_TYPE='PDF'; jupyter-book build source --builder pdflatex"
13+
14+
# restore the backed up full index.Rmd
15+
mv index_backup.md source/index.md

source/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Book settings
22
title: "Data Science: A First Introduction (Python Edition)"
3-
author: "The DSCI100 Development Team"
3+
author: "Tiffany Timbers, Trevor Campbell, Melissa Lee, Joel Ostblom, and Lindsey Heagy"
44
copyright: "2022" # Copyright year to be placed in the footer
55
logo: "" # A path to the book logo
66
# Patterns to skip when building the book. Can be glob-style (e.g. "*skip.ipynb")

0 commit comments

Comments
 (0)