Skip to content

Commit 9d3bfa5

Browse files
committed
Attempt to implement Lectern
... but it doesn't work because everything under `book` is nuked. Do we use a renderer instead?
1 parent 4630fbc commit 9d3bfa5

File tree

9 files changed

+879
-13
lines changed

9 files changed

+879
-13
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
.vscode
2+
venv
13
book
4+
5+
.python-version

beet.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
whitelist:
2+
- beet.contrib.template_sandbox
3+
- beet.contrib.inline_function
4+
- beet.contrib.inline_function_tag
5+
- beet.contrib.dundervar
6+
- lectern.contrib.relative_location
7+
- lectern.contrib.require
8+
- lectern.contrib.define
9+
- lectern.contrib.script
10+
- beet.contrib.render
11+
- beet.contrib.hangman
12+
- beet.contrib.scoreboard
13+
- beet.contrib.relative_function_path
14+
- commanderbot.ext.pack.pack_generate
15+
- beet.contrib.yellow_shulker_box
16+
- beet.contrib.auto_yaml
17+
require:
18+
- beet.contrib.template_sandbox
19+
- beet.contrib.inline_function
20+
- beet.contrib.inline_function_tag
21+
- beet.contrib.dundervar
22+
- lectern.contrib.relative_location
23+
- lectern.contrib.require
24+
- lectern.contrib.define
25+
- lectern.contrib.script
26+
- beet.contrib.auto_yaml
27+
pipeline:
28+
- beet.contrib.render
29+
- beet.contrib.hangman
30+
- beet.contrib.relative_function_path
31+
- beet.contrib.scoreboard
32+
meta:
33+
render:
34+
data_pack:
35+
functions: ["*"]
36+
hangman:
37+
match: ["*"]

book.toml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,5 @@ git-repository-url = "https://github.com/MinecraftCommands/commanders-handbook"
1414
edit-url-template = "https://github.com/MinecraftCommands/commanders-handbook/edit/main/src/{path}"
1515
no-section-label = true
1616

17-
# https://rust-lang.github.io/mdBook/format/configuration/renderers.html
18-
19-
[output.html.search]
20-
enable = true
21-
# limit-results = 30
22-
# teaser-word-count = 30
23-
# use-boolean-and = true
24-
# boost-title = 2
25-
# boost-hierarchy = 1
26-
# boost-paragraph = 1
27-
# expand = true
28-
# heading-split-level = 3
29-
# copy-js = true
17+
[preprocessor.scan_for_packs]
18+
command = "python ./scripts/scan_for_packs.py"

0 commit comments

Comments
 (0)