Skip to content

Commit d247178

Browse files
committed
conf: add toc preprocessor
1 parent 576927a commit d247178

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

haskell-for-rustaceans/book.toml

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ src = "src"
88

99
[output.html]
1010
git-repository-url = "https://github.com/haskelluz/haskell-for-rustaceans"
11+
12+
[preprocessor.toc]
13+
command = "mdbook-toc"
14+
renderer = ["html"]

haskell-for-rustaceans/src/ch02-01-data-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
### Contents
44

5-
- [Algebraic Data Types](#algebraic-data-types)
5+
<!-- toc -->
66

77
## Algebraic Data Types

haskell-for-rustaceans/src/ch02-02-control-flow.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
### Contents
44

5-
- [If Expressions](#if-expressions)
6-
- [Pattern Matching](#pattern-matching)
7-
- [Loops](#loops)
5+
<!-- toc -->
86

97
## If Expressions
108

0 commit comments

Comments
 (0)