Skip to content

Commit ed8d48f

Browse files
authored
Merge pull request #1 from lamalab-org/toc
feat: always shows links to resources, clean numbering of chapters
2 parents 409ccd2 + 2e99f7f commit ed8d48f

232 files changed

Lines changed: 5687 additions & 21300 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codeflash-optimize.yaml

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

.github/workflows/docs.yml

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

.github/workflows/publish.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Render and Publish
7+
8+
# Set permissions for GitHub Pages deployment
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
build-deploy:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Quarto
23+
uses: quarto-dev/quarto-actions/setup@v2
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
# To install LaTeX to build PDF book
28+
tinytex: true
29+
# uncomment below and fill to pin a version
30+
# version: SPECIFIC-QUARTO-VERSION-HERE
31+
32+
# add software dependencies here and any libraries
33+
- name: install librsvg
34+
run: sudo apt-get install librsvg2-bin
35+
36+
# From https://github.com/actions/setup-python
37+
- name: Setup Python
38+
uses: actions/setup-python@v5
39+
40+
# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
41+
- name: Publish to GitHub Pages (and render)
42+
uses: quarto-dev/quarto-actions/publish@v2
43+
with:
44+
target: gh-pages
45+
path: quarto_book
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

.github/workflows/tests.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Glossary
2+
author: Lisa DeBruine
3+
version: 1.0.0
4+
quarto-required: ">=1.2.0"
5+
contributes:
6+
shortcodes:
7+
- glossary.lua
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.glossary {
2+
color: purple;
3+
text-decoration: underline;
4+
cursor: help;
5+
position: relative;
6+
border: none;
7+
padding: 0;
8+
}
9+
10+
/* only needed for popup = "click" */
11+
/* popup-definition */
12+
.glossary .def {
13+
display: none;
14+
position: absolute;
15+
z-index: 1;
16+
width: 200px;
17+
bottom: 100%;
18+
left: 50%;
19+
margin-left: -100px;
20+
background-color: #333;
21+
color: white;
22+
padding: 5px;
23+
border-radius: 6px;
24+
}
25+
/* show on click */
26+
.glossary:active .def {
27+
display: inline-block;
28+
}
29+
/* triangle arrow */
30+
.glossary:active .def::after {
31+
content: ' ';
32+
position: absolute;
33+
top: 100%;
34+
left: 50%;
35+
margin-left: -5px;
36+
border-width: 5px;
37+
border-style: solid;
38+
border-color: #333 transparent transparent transparent;
39+
}
40+
41+
/* glossary table styles */
42+
.glossary_table td {
43+
vertical-align: top;
44+
}
45+
46+
.glossary_table td:first-child {
47+
padding-right: 1em;
48+
}
49+
50+
.glossary_table tr {
51+
border-bottom: 1px solid #ddd;
52+
}
53+
54+
.glossary_table tr:nth-child(even) {
55+
background-color: #99999933;
56+
}

0 commit comments

Comments
 (0)