Skip to content

Commit 567d205

Browse files
authored
Merge pull request #426 from UBC-DSCI/html-landing-page
Html landing page
2 parents 8baeda9 + 45c9cb2 commit 567d205

File tree

4 files changed

+31
-11
lines changed

4 files changed

+31
-11
lines changed

img/ds-a-first-intro-graphic.png

1.97 MB
Loading

img/ds-first-intro-cover.png

1.62 MB
Loading

index.Rmd

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: "Data Science: A First Introduction"
3-
author:
4-
- Tiffany-Anne Timbers
5-
- Trevor Campbell
6-
- Melissa Lee
2+
title: |
3+
![](img/ds-a-first-intro-graphic.png)
4+
Data Science
5+
subtitle: "A First Introduction"
6+
author: "Tiffany Timbers, Trevor Campbell, and Melissa Lee <br> Foreword by Roger Peng"
77
date: "`r Sys.Date()`"
88
site: bookdown::bookdown_site
99
documentclass: book
@@ -12,15 +12,16 @@ biblio-style: apalike
1212
link-citations: yes
1313
description: "This is a textbook for teaching a first introduction to data science."
1414
always_allow_html: true
15+
cover-image: "img/ds-a-first-intro-graphic.png"
16+
graphics: yes
17+
url: https://datasciencebook.ca
1518
output:
1619
bookdown::gitbook:
1720
css: style.css
1821
config:
1922
toc:
2023
before: |
21-
<li><a href="./">Data Science: A First Introduction</a></li>
22-
after: |
23-
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
24+
<li><a href="https://datasciencebook.ca">Data Science: A First Introduction</a></li>
2425
edit: null
2526
download: null
2627
bookdown::pdf_book:
@@ -31,14 +32,29 @@ output:
3132
citation_package: natbib
3233
keep_tex: yes
3334
bookdown::epub_book: default
34-
3535
---
3636

37-
```{r preface, child="foreword-text.Rmd"}
37+
# Welcome! {-}
38+
39+
This is the [website](https://datasciencebook.ca/) for *Data Science: A First Introduction*.
40+
You can purchase a PDF or print copy of the book
41+
on the [CRC Press website](https://www.routledge.com/Data-Science-A-First-Introduction/Timbers-Campbell-Lee/p/book/9780367524685).
42+
43+
```{r bookcover, echo = FALSE, fig.retina = 2, out.width = "45%"}
44+
knitr::include_graphics("img/ds-first-intro-cover.png")
45+
```
46+
47+
<img src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png">
48+
49+
This work by [Tiffany Timbers](https://www.tiffanytimbers.com/), [Trevor Campbell](https://trevorcampbell.me/),
50+
and [Melissa Lee](https://www.stat.ubc.ca/users/melissa-lee) is licensed under
51+
a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).
52+
53+
```{r foreward, child="foreword-text.Rmd"}
3854
```
3955

4056
```{r preface, child="preface-text.Rmd"}
4157
```
4258

43-
```{r preface, child="acknowledgements.Rmd"}
59+
```{r acknowledgements, child="acknowledgements.Rmd"}
4460
```

style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ pre {
1212
pre code {
1313
white-space: inherit;
1414
}
15+
16+
.book-header h1 {
17+
display: none;
18+
}

0 commit comments

Comments
 (0)