Skip to content

Commit

Permalink
Fix edit link instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jq-11 committed Dec 5, 2024
1 parent 57bb3e0 commit 4031484
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 14 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion _404.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

This page does not exist anymore!

Try going back to the [workshop homepage]() or the [bioinformatics.ca homepage]().
Try going back to the [workshop homepage]() or the [bioinformatics.ca homepage](https://bioinformatics.ca/).

You must update these pages for new workshops.
Binary file modified _main_files/figure-latex/pressure-plot-1.pdf
Binary file not shown.
10 changes: 9 additions & 1 deletion _output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ bookdown::gitbook:
<img src="img/sponsors/Your-Sponsor-Here.svg" width=100%> <!--- replace the directory with your sponsor logo --->
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
edit: https://github.com/USERNAME/REPO/edit/BRANCH/%s # REPLACE THIS (Julia still needs to configure with this a bit)
# YOU MUST REPLACE THE LINK BELOW - This is a link to your index.Rmd on your GitHub repo, which allows people to make suggestions
edit: https://github.com/cbw-dev/bookdown-template/blob/main/%s # Go to your index.Rmd page on GitHub, copy and paste the link to it, and add
# Steps:
# 1. Go to your index.Rmd page on GitHub, Copy and paste the link to it.
# 2. Copy and paste the link to it, excluding the "index.Rmd" ending.
# 3. Add "/%s" to the ending.
# 4. Replace the above link.

download: ["pdf", "epub"]
number_sections: false
bookdown::pdf_book:
Expand Down
6 changes: 3 additions & 3 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Error 404: This page does not exist. | [Name of Workshop][Year]</title>
<meta name="description" content="CBW’s Bookdown Template for Workshops" />
<meta name="generator" content="bookdown 0.40 and GitBook 2.6.7" />
<meta name="generator" content="bookdown 0.41.1 and GitBook 2.6.7" />

<meta property="og:title" content="Error 404: This page does not exist. | [Name of Workshop][Year]" />
<meta property="og:type" content="book" />
Expand Down Expand Up @@ -200,7 +200,7 @@ <h1>
<div id="error-404-this-page-does-not-exist." class="section level1">
<h1>Error 404: This page does not exist.</h1>
<p>This page does not exist anymore!</p>
<p>Try going back to the <a href>workshop homepage</a> or the <a href>bioinformatics.ca homepage</a>.</p>
<p>Try going back to the <a href>workshop homepage</a> or the <a href="https://bioinformatics.ca/">bioinformatics.ca homepage</a>.</p>
<p>You must update these pages for new workshops.</p>
</div>
</section>
Expand Down Expand Up @@ -240,7 +240,7 @@ <h1>Error 404: This page does not exist.</h1>
"size": 2
},
"edit": {
"link": "https://github.com/USERNAME/REPO/edit/BRANCH/_404.md",
"link": "https://github.com/cbw-dev/bookdown-template/blob/main/_404.md",
"text": "Edit"
},
"history": {
Expand Down
Binary file modified docs/_main.epub
Binary file not shown.
Binary file modified docs/_main.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/course-schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Course Schedule | [Name of Workshop][Year]</title>
<meta name="description" content="CBW’s Bookdown Template for Workshops" />
<meta name="generator" content="bookdown 0.40 and GitBook 2.6.7" />
<meta name="generator" content="bookdown 0.41.1 and GitBook 2.6.7" />

<meta property="og:title" content="Course Schedule | [Name of Workshop][Year]" />
<meta property="og:type" content="book" />
Expand Down Expand Up @@ -301,7 +301,7 @@ <h2>Class Photo<a href="course-schedule.html#class-photo" class="anchor-section"
"size": 2
},
"edit": {
"link": "https://github.com/USERNAME/REPO/edit/BRANCH/010-course-schedule.Rmd",
"link": "https://github.com/cbw-dev/bookdown-template/blob/main/010-course-schedule.Rmd",
"text": "Edit"
},
"history": {
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>[Name of Workshop][Year]</title>
<meta name="description" content="CBW’s Bookdown Template for Workshops" />
<meta name="generator" content="bookdown 0.40 and GitBook 2.6.7" />
<meta name="generator" content="bookdown 0.41.1 and GitBook 2.6.7" />

<meta property="og:title" content="[Name of Workshop][Year]" />
<meta property="og:type" content="book" />
Expand Down Expand Up @@ -245,7 +245,7 @@ <h1>Welcome<a href="index.html#welcome" class="anchor-section" aria-label="Ancho
"size": 2
},
"edit": {
"link": "https://github.com/USERNAME/REPO/edit/BRANCH/index.Rmd",
"link": "https://github.com/cbw-dev/bookdown-template/blob/main/index.Rmd",
"text": "Edit"
},
"history": {
Expand Down
25 changes: 24 additions & 1 deletion docs/libs/gitbook-2.6.7/js/plugin-fontsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
saveFontSettings();
};

// Increase or decrease line spacing
function changeSpacing(e, inc = true) {
e.preventDefault();
inc ? fontState.spacing++ : (fontState.spacing > 10 && fontState.spacing--);
saveFontSettings();
}

function update() {
var $book = gitbook.state.$book;

Expand All @@ -74,6 +81,9 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
$book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, '');
$book.addClass("color-theme-"+fontState.theme);
}
var lineHeight = fontState.spacing / 10;
$book.find('section').css('line-height', lineHeight);
$('.font-settings .spacing-reduce').prop('disabled', lineHeight <= 1);
};

function init(config) {
Expand All @@ -87,7 +97,8 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
fontState = gitbook.storage.get("fontState", {
size: config.size || 2,
family: FAMILY[config.family || "sans"],
theme: THEMES[config.theme || "white"]
theme: THEMES[config.theme || "white"],
spacing: config.spacing || 17,
});

update();
Expand Down Expand Up @@ -139,6 +150,18 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
text: 'Night',
onClick: _.partial(changeColorTheme, 2)
}

],
[
{
className: 'spacing-reduce',
text: 'Spacing -',
onClick: e => changeSpacing(e, false)
},
{
text: 'Spacing +',
onClick: changeSpacing
}
]
]
});
Expand Down
4 changes: 2 additions & 2 deletions docs/module-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Module 1 | [Name of Workshop][Year]</title>
<meta name="description" content="CBW’s Bookdown Template for Workshops" />
<meta name="generator" content="bookdown 0.40 and GitBook 2.6.7" />
<meta name="generator" content="bookdown 0.41.1 and GitBook 2.6.7" />

<meta property="og:title" content="Module 1 | [Name of Workshop][Year]" />
<meta property="og:type" content="book" />
Expand Down Expand Up @@ -276,7 +276,7 @@ <h2>Lab<a href="module-1.html#lab" class="anchor-section" aria-label="Anchor lin
"size": 2
},
"edit": {
"link": "https://github.com/USERNAME/REPO/edit/BRANCH/020-module-1.Rmd",
"link": "https://github.com/cbw-dev/bookdown-template/blob/main/020-module-1.Rmd",
"text": "Edit"
},
"history": {
Expand Down
4 changes: 2 additions & 2 deletions docs/module-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Module 2 | [Name of Workshop][Year]</title>
<meta name="description" content="CBW’s Bookdown Template for Workshops" />
<meta name="generator" content="bookdown 0.40 and GitBook 2.6.7" />
<meta name="generator" content="bookdown 0.41.1 and GitBook 2.6.7" />

<meta property="og:title" content="Module 2 | [Name of Workshop][Year]" />
<meta property="og:type" content="book" />
Expand Down Expand Up @@ -246,7 +246,7 @@ <h2>Lab<a href="module-2.html#lab-1" class="anchor-section" aria-label="Anchor l
"size": 2
},
"edit": {
"link": "https://github.com/USERNAME/REPO/edit/BRANCH/030-module-2.Rmd",
"link": "https://github.com/cbw-dev/bookdown-template/blob/main/030-module-2.Rmd",
"text": "Edit"
},
"history": {
Expand Down

0 comments on commit 4031484

Please sign in to comment.