Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/doc/edition-guide
2 changes: 1 addition & 1 deletion src/doc/nomicon
4 changes: 0 additions & 4 deletions src/doc/rustc/book.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
[book]
multilingual = false
src = "src"
title = "The rustc book"

[output.html]
git-repository-url = "https://github.com/rust-lang/rust/tree/HEAD/src/doc/rustc"
edit-url-template = "https://github.com/rust-lang/rust/edit/HEAD/src/doc/rustc/{path}"
additional-css = ["theme/pagetoc.css"]
additional-js = ["theme/pagetoc.js"]

[output.html.search]
use-boolean-and = true
Expand Down
84 changes: 0 additions & 84 deletions src/doc/rustc/theme/pagetoc.css

This file was deleted.

104 changes: 0 additions & 104 deletions src/doc/rustc/theme/pagetoc.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/doc/rustdoc/src/read-documentation/in-doc-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Rustdoc's HTML output includes a settings menu, and this chapter describes what
each setting in this menu does.

It can be accessed by clicking on the gear button
(<i class="fa fa-cog" aria-hidden="true"></i>) in the upper right.
(<i class="fas fa-gear" aria-hidden="true"></i>) in the upper right.

## Changing displayed theme

Expand Down
4 changes: 1 addition & 3 deletions src/doc/style-guide/book.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[book]
title = "The Rust Style Guide"
author = "The Rust Style Team"
multilingual = false
src = "src"
authors = ["The Rust Style Team"]

[output.html]
git-repository-url = "https://github.com/rust-lang/rust/tree/HEAD/src/doc/style-guide/"
1 change: 0 additions & 1 deletion src/doc/unstable-book/book.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[book]
title = "The Rust Unstable Book"
author = "The Rust Community"

[output.html]
git-repository-url = "https://github.com/rust-lang/rust/tree/HEAD/src/doc/unstable-book"
Expand Down
3 changes: 2 additions & 1 deletion src/tools/error_index_generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ edition = "2021"
workspace = "../rustbook"

[dependencies]
mdbook = { version = "0.4", default-features = false, features = ["search"] }
mdbook-driver = { version = "0.5.1", features = ["search"] }
mdbook-summary = "0.5.1"

[[bin]]
name = "error_index_generator"
Expand Down
8 changes: 5 additions & 3 deletions src/tools/error_index_generator/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ use std::io::Write;
use std::path::{Path, PathBuf};
use std::str::FromStr;

use mdbook::book::{BookItem, Chapter, parse_summary};
use mdbook::{Config, MDBook};
use mdbook_driver::MDBook;
use mdbook_driver::book::{BookItem, Chapter};
use mdbook_driver::config::Config;
use mdbook_summary::parse_summary;
use rustc_errors::codes::DIAGNOSTICS;

enum OutputFormat {
Expand Down Expand Up @@ -121,7 +123,7 @@ This page lists all the error codes emitted by the Rust compiler.
source_path: None,
parent_names: Vec::new(),
};
book.book.sections.push(BookItem::Chapter(chapter));
book.book.items.push(BookItem::Chapter(chapter));
book.build()?;

// The error-index used to be generated manually (without mdbook), and the
Expand Down
Loading
Loading