Skip to content

Commit e71c96f

Browse files
committed
Rollup merge of rust-lang#48680 - steveklabnik:no-toc, r=nikomatsakis
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. https://doc.rust-lang.org/nightly/book/ is an example page currently where this is done incorrectly.
2 parents fb411d8 + 900d511 commit e71c96f

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)