mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix commonmark Markdown warnings in docs, part 1
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
This commit is contained in:
parent
aa3122e7d1
commit
efc3683cc7
137 changed files with 572 additions and 565 deletions
|
@ -852,7 +852,7 @@ def check_spec(file_name, lines):
|
|||
macro_patt = re.compile("^\s*\S+!(.*)$")
|
||||
|
||||
# Pattern representing a line with comment containing a spec link
|
||||
link_patt = re.compile("^\s*///? https://.+$")
|
||||
link_patt = re.compile("^\s*///? (<https://.+>|https://.+)$")
|
||||
|
||||
# Pattern representing a line with comment or attribute
|
||||
comment_patt = re.compile("^\s*(///?.+|#\[.+\])$")
|
||||
|
|
|
@ -19,11 +19,11 @@ impl SpecLinkMethods for SpecLink {
|
|||
fn Foo() {}
|
||||
|
||||
/// A spec link.
|
||||
/// https://example.com/
|
||||
/// <https://example.com/>
|
||||
fn Foo() {}
|
||||
|
||||
/// A spec link.
|
||||
/// https://example.com/
|
||||
/// <https://example.com/>
|
||||
/// Doc comments are OK
|
||||
// Regular comments are OK
|
||||
#[allow(attributes_too)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue