Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: Add support for local resources #107640

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Update librustdoc inner tests
  • Loading branch information
GuillaumeGomez committed Feb 3, 2023
commit bd298a33fad1b396cc01dfb3c7641992574a1ad0
2 changes: 2 additions & 0 deletions src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@
//! edition: Edition::Edition2015,
//! playground: &None,
//! heading_offset: HeadingOffset::H2,
//! depth: 0,
//! local_resources: None,
//! };
//! let html = md.into_string();
//! // ... something using html
6 changes: 6 additions & 0 deletions src/librustdoc/html/markdown/tests.rs
Original file line number Diff line number Diff line change
@@ -154,6 +154,8 @@ fn test_header() {
edition: DEFAULT_EDITION,
playground: &None,
heading_offset: HeadingOffset::H2,
depth: 0,
local_resources: None,
}
.into_string();
assert_eq!(output, expect, "original: {}", input);
@@ -193,6 +195,8 @@ fn test_header_ids_multiple_blocks() {
edition: DEFAULT_EDITION,
playground: &None,
heading_offset: HeadingOffset::H2,
depth: 0,
local_resources: None,
}
.into_string();
assert_eq!(output, expect, "original: {}", input);
@@ -322,6 +326,8 @@ fn test_ascii_with_prepending_hashtag() {
edition: DEFAULT_EDITION,
playground: &None,
heading_offset: HeadingOffset::H2,
depth: 0,
local_resources: None,
}
.into_string();
assert_eq!(output, expect, "original: {}", input);