Skip to content

Commit

Permalink
test_generate_cli_reference: Fixup to 16ec185
Browse files Browse the repository at this point in the history
That old commit made a piece of documentation obsolete, but
I didn't realize it at the time.
  • Loading branch information
ilyagr committed Jun 16, 2024
1 parent 53c93b1 commit 726ceb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/tests/[email protected]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: cli/tests/test_generate_md_cli_help.rs
description: "AUTO-GENERATED FILE, DO NOT EDIT. This cli reference is generated as an `insta` snapshot. MkDocs follows they symlink from docs/cli-reference.md to the snap. Unfortunately, `insta` unavoidably creates this header. Luckily, MkDocs ignores the header since it has the same format as Markdown headers. TODO: MkDocs may fail on Windows if symlinks are not enabled in the OS settings"
description: "AUTO-GENERATED FILE, DO NOT EDIT. This cli reference is generated by a test as an `insta` snapshot. MkDocs includes this snapshot from docs/cli-reference.md."
---
<!-- BEGIN MARKDOWN-->

Expand Down
9 changes: 3 additions & 6 deletions cli/tests/test_generate_md_cli_help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ fn test_generate_markdown_docs_in_docs_dir() {
snapshot_suffix => ".md",
prepend_module_to_snapshot => false,
omit_expression => true,
description => "AUTO-GENERATED FILE, DO NOT EDIT. This cli reference is generated as an \
`insta` snapshot. MkDocs follows they symlink from docs/cli-reference.md \
to the snap. Unfortunately, `insta` unavoidably creates this header. Luckily, \
MkDocs ignores the header since it has the same format as Markdown headers. \
TODO: MkDocs may fail on Windows if symlinks are not enabled in the OS \
settings",
description => "AUTO-GENERATED FILE, DO NOT EDIT. This cli reference is generated \
by a test as an `insta` snapshot. MkDocs includes this snapshot \
from docs/cli-reference.md.",
},
{ assert_snapshot!("cli-reference", markdown_help) });
}

0 comments on commit 726ceb8

Please sign in to comment.