Skip to content

Commit 748a8b2

Browse files
authored
Merge pull request #48 from 3mmaRand/feature/yml-tools
Feature/yml tools
2 parents 304d5e0 + 1908391 commit 748a8b2

File tree

4 files changed

+498
-310
lines changed

4 files changed

+498
-310
lines changed

_quarto.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,25 @@ website:
99
# style: simple
1010
# palette: light
1111
google-analytics: "G-50FV9HPTRE"
12+
repo-actions: [edit]
13+
repo-url: https://github.com/3mmaRand/comp4biosci
14+
15+
other-links:
16+
- text: "Make a suggestion"
17+
icon: chat-left-dots
18+
href: "#" # dummy,
1219

1320
page-footer:
14-
left: "Rand, E. (2023). Data Analysis in R for Becoming a Bioscientist (Version 0.1) <https://github.com/3mmaRand/R4BABS>"
21+
left: "Rand, E. (2025). Data Analysis in R for Becoming a Bioscientist (Version 0.2) <https://github.com/3mmaRand/R4BABS>"
1522
right:
1623
- icon: github
1724
href: "https://github.com/3mmaRand"
1825
text: "Emma on GitHub"
1926

2027
navbar:
2128
background: light
22-
twitter-card: true
2329
site-url: "https://3mmarand.github.io/R4BABS/"
2430
repo-url: "https://github.com/3mmaRand/R4BABS"
25-
issue-url: "https://github.com/3mmaRand/R4BABS/issues/new/choose"
26-
repo-actions: [edit, issue]
2731
page-navigation: true
2832
search: true
2933
left:
@@ -319,14 +323,38 @@ format:
319323
link-external-filter: '^(?:http:|https:)\/\/3mmarand\.github\.io\/R4BABS'
320324
theme:
321325
light: [cosmo, custom.scss]
326+
dark: [solar, custom.scss]
322327
code-copy: true
323328
code-link: true
329+
code-tools: true
324330
code-overflow: wrap
325331
code-line-numbers: false
332+
lightbox:
333+
match: auto
334+
loop: false
326335
grid:
327336
sidebar-width: 250px
328337
body-width: 900px
329338
margin-width: 300px
339+
include-after-body:
340+
text: |
341+
<script>
342+
document.addEventListener("DOMContentLoaded", function() {
343+
// grab all links under “Other Links” in the right-hand TOC
344+
const links = document.querySelectorAll('.quarto-other-links ul li a');
345+
links.forEach(function(a) {
346+
// find the one whose text is exactly “Make a suggestion”
347+
if (a.textContent.trim() === 'Make a suggestion') {
348+
const pageUrl = encodeURIComponent(window.location.href);
349+
const pageTitle = encodeURIComponent(document.title);
350+
a.href = 'https://github.com/3mmaRand/comp4biosci/issues/new'
351+
+ '?title=' + pageTitle
352+
+ '&body=' + pageUrl;
353+
a.target = '_blank';
354+
}
355+
});
356+
});
357+
</script>
330358
331359
author-meta: Emma Rand
332360

0 commit comments

Comments
 (0)