Unnamed repository; edit this file 'description' to name the repository.
Remove mdbook-toc usage
Now that there's a table of contents rendered in the left sidebar,
there doesn't seem to be much value in rendering a table of contents
on the page too.
The sidebar TOC was added in mdbook 0.5:
https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#05-migration-guide
| -rw-r--r-- | docs/book/README.md | 1 | ||||
| -rw-r--r-- | docs/book/book.toml | 5 | ||||
| -rw-r--r-- | docs/book/src/contributing/README.md | 2 | ||||
| -rw-r--r-- | docs/book/src/contributing/architecture.md | 2 | ||||
| -rw-r--r-- | docs/book/src/contributing/guide.md | 2 | ||||
| -rw-r--r-- | docs/book/src/contributing/lsp-extensions.md | 2 | ||||
| -rw-r--r-- | docs/book/src/other_editors.md | 2 |
7 files changed, 0 insertions, 16 deletions
diff --git a/docs/book/README.md b/docs/book/README.md index 11f7e8f98c..0a3161f3af 100644 --- a/docs/book/README.md +++ b/docs/book/README.md @@ -8,7 +8,6 @@ To run the documentation site locally: ```shell cargo install mdbook -cargo install mdbook-toc cargo xtask codegen cd docs/book mdbook serve diff --git a/docs/book/book.toml b/docs/book/book.toml index c77eabda14..0978851d50 100644 --- a/docs/book/book.toml +++ b/docs/book/book.toml @@ -33,8 +33,3 @@ use-boolean-and = true [output.html.fold] enable = true level = 3 - -[preprocessor.toc] -command = "mdbook-toc" -renderer = ["html"] -max-level = 3 diff --git a/docs/book/src/contributing/README.md b/docs/book/src/contributing/README.md index ad2816b18a..c95a1dba62 100644 --- a/docs/book/src/contributing/README.md +++ b/docs/book/src/contributing/README.md @@ -26,8 +26,6 @@ Discussion happens in this Zulip stream: <https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer> -<!-- toc --> - # Issue Labels * [good-first-issue](https://github.com/rust-lang/rust-analyzer/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22) diff --git a/docs/book/src/contributing/architecture.md b/docs/book/src/contributing/architecture.md index f2b6c053b0..67653ebd74 100644 --- a/docs/book/src/contributing/architecture.md +++ b/docs/book/src/contributing/architecture.md @@ -20,8 +20,6 @@ For older, by now mostly outdated stuff, see the [guide](./guide.md) and [anothe  -<!-- toc --> - On the highest level, rust-analyzer is a thing which accepts input source code from the client and produces a structured semantic model of the code. More specifically, input data consists of a set of test files (`(PathBuf, String)` pairs) and information about project structure, captured in the so called `CrateGraph`. diff --git a/docs/book/src/contributing/guide.md b/docs/book/src/contributing/guide.md index 774eb5b2a5..9e944bfe0f 100644 --- a/docs/book/src/contributing/guide.md +++ b/docs/book/src/contributing/guide.md @@ -12,8 +12,6 @@ however, it's based on an older 2019-01-20 release (git tag [guide-2019-01]): [guide-2019-01]: https://github.com/rust-lang/rust-analyzer/tree/guide-2019-01 [2024-01-01]: https://github.com/rust-lang/rust-analyzer/tree/2024-01-01 -<!-- toc --> - ## The big picture On the highest possible level, rust-analyzer is a stateful component. A client may diff --git a/docs/book/src/contributing/lsp-extensions.md b/docs/book/src/contributing/lsp-extensions.md index 0e91e12612..5922f0b551 100644 --- a/docs/book/src/contributing/lsp-extensions.md +++ b/docs/book/src/contributing/lsp-extensions.md @@ -19,8 +19,6 @@ Requests, which are likely to always remain specific to `rust-analyzer` are unde If you want to be notified about the changes to this document, subscribe to [#4604](https://github.com/rust-lang/rust-analyzer/issues/4604). -<!-- toc --> - ## Configuration in `initializationOptions` **Upstream Issue:** <https://github.com/microsoft/language-server-protocol/issues/567> diff --git a/docs/book/src/other_editors.md b/docs/book/src/other_editors.md index 896df52af5..f7116fc19a 100644 --- a/docs/book/src/other_editors.md +++ b/docs/book/src/other_editors.md @@ -6,8 +6,6 @@ Protocol](https://microsoft.github.io/language-server-protocol/). This page assumes that you have already [installed the rust-analyzer binary](./rust_analyzer_binary.html). -<!-- toc --> - ## Emacs To use `rust-analyzer`, you need to install and enable one of the two |