File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ TABULATE := $(TOOLS_BIN_DIR)/mdbook-tabulate
22
22
EMBED := $(TOOLS_BIN_DIR ) /mdbook-embed
23
23
RELEASELINK := $(TOOLS_BIN_DIR ) /mdbook-releaselink
24
24
MDBOOK := $(TOOLS_BIN_DIR ) /bin/mdbook
25
+ FS_SUMMARY := $(TOOLS_BIN_DIR ) /bin/mdbook-fs-summary
25
26
26
27
export PATH := $(abspath $(TOOLS_BIN_DIR ) /bin) :$(PATH )
27
28
28
- BOOK_DEPS := $(MDBOOK ) $(TABULATE ) $(EMBED ) $(RELEASELINK )
29
+ BOOK_DEPS := $(MDBOOK ) $(TABULATE ) $(EMBED ) $(RELEASELINK ) $( FS_SUMMARY )
29
30
30
31
$(TOOLS_BIN_DIR ) /% : $(TOOLS_DIR_DEPS )
31
32
make -C $(TOOLS_DIR ) $(subst $(TOOLS_DIR ) /,,$@ )
Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ src = "src"
5
5
title = " Cluster API Operator"
6
6
description = " Cluster API Operator"
7
7
8
+ [preprocessor .toc ]
9
+ command = " mdbook-toc"
10
+ marker = " [[_TOC_]]"
11
+
12
+ [preprocessor .fs-summary ]
13
+ # (default: true)
14
+ clean-paths = false
15
+
16
+ # other preprocessors will naturally need to
17
+ # run after the summary has been generated
18
+ [preprocessor .links ]
19
+ after = [" fs-summary" ]
20
+
8
21
[output .html ]
9
22
mathjax-support = true
10
23
git-repository-url = " https://github.com/kubernetes-sigs/cluster-api-operator"
@@ -22,4 +35,4 @@ command = "./util-tabulate.sh"
22
35
command = " ./util-embed.sh"
23
36
24
37
[preprocessor .releaselink ]
25
- command = " ./util-releaselink.sh"
38
+ command = " ./util-releaselink.sh"
Original file line number Diff line number Diff line change @@ -30,3 +30,5 @@ curl https://sh.rustup.rs -sSf | sh -s -- -y
30
30
31
31
# Install mdbook and dependencies
32
32
cargo install mdbook --version " $VERSION " --root " $OUTPUT_PATH "
33
+ cargo install mdbook-fs-summary --root " $OUTPUT_PATH "
34
+ cargo install mdbook-toc --root " $OUTPUT_PATH "
You can’t perform that action at this time.
0 commit comments