Explorar el Código

doc: add table of contents mdbook plugin

x hace 3 años
padre
commit
d121c6e7cd
Se han modificado 3 ficheros con 8 adiciones y 0 borrados
  1. 1 0
      doc/README.md
  2. 5 0
      doc/book.toml
  3. 2 0
      doc/src/architecture/smart_contracts.md

+ 1 - 0
doc/README.md

@@ -11,4 +11,5 @@ For the mdbook-katex backend run:
 
 ```
 cargo install --git "https://github.com/lzanini/mdbook-katex"
+cargo install mdbook-toc
 ```

+ 5 - 0
doc/book.toml

@@ -17,3 +17,8 @@ runnable = false
 [output.katex]
 
 [preprocessor.katex]
+
+[preprocessor.toc]
+command = "mdbook-toc"
+renderer = ["html"]
+

+ 2 - 0
doc/src/architecture/smart_contracts.md

@@ -1,5 +1,7 @@
 # Anonymous Smart Contracts
 
+<!-- toc -->
+
 Every full node is a **verifier**.
 
 **Prover** is the person executing the smart contract function on their secret witness data.