From d121c6e7cdc8804e676ebee6c20a49b6eba9443e Mon Sep 17 00:00:00 2001 From: x Date: Tue, 18 Oct 2022 01:22:21 +0000 Subject: [PATCH] doc: add table of contents mdbook plugin --- doc/README.md | 1 + doc/book.toml | 5 +++++ doc/src/architecture/smart_contracts.md | 2 ++ 3 files changed, 8 insertions(+) diff --git a/doc/README.md b/doc/README.md index eccc8c7b2..86cff27b9 100644 --- a/doc/README.md +++ b/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 ``` diff --git a/doc/book.toml b/doc/book.toml index 01e8fea52..a0a23dd88 100644 --- a/doc/book.toml +++ b/doc/book.toml @@ -17,3 +17,8 @@ runnable = false [output.katex] [preprocessor.katex] + +[preprocessor.toc] +command = "mdbook-toc" +renderer = ["html"] + diff --git a/doc/src/architecture/smart_contracts.md b/doc/src/architecture/smart_contracts.md index 25eeca29c..e09cc4272 100644 --- a/doc/src/architecture/smart_contracts.md +++ b/doc/src/architecture/smart_contracts.md @@ -1,5 +1,7 @@ # Anonymous Smart Contracts + + Every full node is a **verifier**. **Prover** is the person executing the smart contract function on their secret witness data.