Skip to content

Commit 7f11b57

Browse files
committed
Code chunks fixed
1 parent c41c626 commit 7f11b57

10 files changed

Lines changed: 31 additions & 73 deletions

.gitignore

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,5 @@
1-
# History files
1+
.Rproj.user
22
.Rhistory
3-
.Rapp.history
4-
5-
# Session Data files
63
.RData
7-
.RDataTmp
8-
9-
# User-specific files
104
.Ruserdata
11-
12-
# Example code in package build process
13-
*-Ex.R
14-
15-
# Output files from R CMD build
16-
/*.tar.gz
17-
18-
# Output files from R CMD check
19-
/*.Rcheck/
20-
21-
# RStudio files
22-
.Rproj.user/
23-
24-
# produced vignettes
25-
vignettes/*.html
26-
vignettes/*.pdf
27-
28-
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
29-
.httr-oauth
30-
31-
# knitr and R markdown default cache directories
32-
*_cache/
33-
/cache/
34-
35-
# Temporary files created by R markdown
36-
*.utf8.md
37-
*.knit.md
38-
39-
# R Environment Variables
40-
.Renviron
41-
42-
# pkgdown site
43-
docs/
44-
45-
# translation temp files
46-
po/*~
47-
48-
# RStudio Connect folder
49-
rsconnect/
50-
.Rproj.user
515
docs

inst/pkgdown/_pkgdown.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ template:
88
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css"
99
referrerpolicy="no-referrer">
1010
11-
theme: solarized-light
12-
theme-dark: ayu-mirage
11+
# syntax highlighting
12+
theme: tango
13+
theme-dark: nord
1314

1415
bslib:
16+
# LIGHT THEME
17+
1518
bg: "#FEFBF2"
1619
fg: "#052744"
1720
primary: "#3E8EBC"
@@ -20,6 +23,7 @@ template:
2023
code-color: "#053A42"
2124
body-secondary-color: "#ECE5Cf"
2225

26+
# navbar colors
2327
navbar-light-bg: "#052744"
2428
navbar-light-color: "#F2E5BD"
2529
navbar-light-hover-color: "#F2E5BD"
@@ -28,12 +32,14 @@ template:
2832
navbar-light-brand-hover-color: "#F2E5BD"
2933

3034
# DARK THEME
35+
3136
body-bg-dark: "#181818"
3237
body-color-dark: "#FAF1E4"
3338
link-color-dark: "#AED1E4"
3439
code-bg-dark: "#242424"
3540
code-color-dark: "#FEFCF9"
3641

42+
# navbar colors
3743
navbar-dark-bg: "#303030"
3844
navbar-dark-color: "#FAF1E4"
3945
navbar-dark-hover-color: "#FAF1E4"

inst/pkgdown/extra.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Fix code chunk backgrounds and text color
2+
html[data-bs-theme="light"] {
3+
div.sourceCode > pre,
4+
pre.sourceCode,
5+
pre.downlit,
6+
pre {
7+
background-color: $code-bg !important;
8+
}
9+
}
10+
11+
html[data-bs-theme="dark"] {
12+
div.sourceCode > pre,
13+
pre.sourceCode,
14+
pre.downlit,
15+
pre {
16+
background-color: $code-bg-dark !important;
17+
}
18+
}
19+
20+
pre {
21+
color: var(--bs-body-color);
22+
}
-8.31 KB
Binary file not shown.

pkgdown/favicon/favicon-96x96.png

-3.79 KB
Binary file not shown.

pkgdown/favicon/favicon.ico

-14.7 KB
Binary file not shown.

pkgdown/favicon/favicon.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

pkgdown/favicon/site.webmanifest

Lines changed: 0 additions & 21 deletions
This file was deleted.
-8.99 KB
Binary file not shown.
-44.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)