Skip to content
Merged
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
11 changes: 9 additions & 2 deletions tasks/website/src/linter/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn generate_cli() -> String {
// Hack usage line
let markdown = markdown.replacen("**Usage**:", "## Usage\n", 1);

markdown
let markdown = markdown
.split('\n')
.flat_map(|line| {
// Hack the bug on the line containing `###`
Expand All @@ -50,5 +50,12 @@ fn generate_cli() -> String {
}
})
.collect::<Vec<_>>()
.join("\n")
.join("\n");

// Add note about .gitignore only being respected inside Git repositories
// This note should appear after the ignore options and before "Handle Warnings"
markdown.replace(
"\n\n## Handle Warnings\n",
"\n\n> [!NOTE]\n> `.gitignore` is only respected inside a Git repository.\n\n## Handle Warnings\n"
)
}
3 changes: 3 additions & 0 deletions tasks/website/src/linter/snapshots/cli.snap
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ Arguments:



> [!NOTE]
> `.gitignore` is only respected inside a Git repository.

## Handle Warnings
- **` --quiet`** &mdash;
Disable reporting on warnings, only errors are reported
Expand Down
Loading