-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclay.edn
More file actions
53 lines (47 loc) · 1.75 KB
/
clay.edn
File metadata and controls
53 lines (47 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{:keep-sync-root false
:remote-repo {:git-url "https://github.com/scicloj/plotje"
:branch "main"}
:quarto {:format {:html {:toc true
:number-depth 1
:toc-depth 4
:include-after-body {:text "
<script>
document.addEventListener('DOMContentLoaded', function () {
const toc = document.getElementById('TOC');
if (toc) {
const tocHeading = toc.querySelector('h2');
if (tocHeading) tocHeading.style.display = 'none';
const topList = toc.querySelector('ul');
const btn = document.createElement('button');
btn.textContent = '⌃';
btn.style.cssText = `
display: block;
width: 100%;
padding: 4px 8px;
margin-bottom: 8px;
font-size: 2em;
cursor: pointer;
border: none;
outline: none;
box-shadow: none;
background: transparent;
color: #2780e3;
text-align: left;
transition: transform 0.25s ease;
transform-origin: center;
-webkit-appearance: none;
appearance: none;
`;
let expanded = true;
btn.addEventListener('click', function () {
expanded = !expanded;
if (topList) topList.style.display = expanded ? 'block' : 'none';
btn.style.transform = expanded ? 'rotate(0deg)' : 'rotate(180deg)';
});
toc.insertBefore(btn, toc.firstChild);
}
});
</script>
"}
:theme [:cosmo "custom.scss"]}}}
:base-target-path ".clay-temp"}