Skip to content

Commit 900d511

Browse files
committed
Don't produce TOCs for doc markdown files
Currently, we are producing headers for markdown files, which is generally not what we want. As such, passing this flag causes them to render normally.
1 parent 3eeb5a6 commit 900d511

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/doc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ fn invoke_rustdoc(builder: &Builder, compiler: Compiler, target: Interned<String
312312
cmd.arg("--html-after-content").arg(&footer)
313313
.arg("--html-before-content").arg(&version_info)
314314
.arg("--html-in-header").arg(&favicon)
315+
.arg("--markdown-no-toc")
315316
.arg("--markdown-playground-url")
316317
.arg("https://play.rust-lang.org/")
317318
.arg("-o").arg(&out)

0 commit comments

Comments
 (0)