Skip to content

Commit 8193ed7

Browse files
committed
add admonishments and pagetoc
1 parent fb31021 commit 8193ed7

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/mdbook.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ jobs:
3232
MDBOOK_VERSION: 0.4.36
3333
steps:
3434
- uses: actions/checkout@v4
35-
- name: Install mdBook and mdbook-admonish
35+
- name: Install mdBook and preprocessors
3636
run: |
3737
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
3838
rustup update
3939
cargo install --version ${MDBOOK_VERSION} mdbook
40-
# cargo install mdbook-admonish
40+
cargo install mdbook-admonish
41+
cargo install mdbook-pagetoc
4142
- name: Setup Pages
4243
id: pages
4344
uses: actions/configure-pages@v5

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/.idea
22

3+
# ignored generated pagetoc files from mdbook-pagetoc
4+
theme/pagetoc.css
5+
theme/pagetoc.js
6+
37
# for local testing
48
book

book.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ language = "en"
44
multilingual = false
55
src = "src"
66

7+
[preprocessor.pagetoc]
78
[output.html]
9+
additional-css = ["theme/pagetoc.css"]
10+
additional-js = ["theme/pagetoc.js"]
811
no-section-label = true
912
git-repository-url = "https://github.com/pygame-web/pygame-web.github.io"
1013
git-repository-icon = "fa-github"

0 commit comments

Comments
 (0)