Repository navigation
DNM: Test Ksai #7520
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
DNM: Test Ksai #7520
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,42 @@ | ||||||||
| # KSAI test file: output blocks | ||||||||
|
|
||||||||
| Temporary file to check that the "Output blocks" review rule runs. Do not merge. The `_ksai-test` directory is not a Jekyll collection, so it isn't published. | ||||||||
|
|
||||||||
| ## Violation | ||||||||
|
|
||||||||
| The following block shows only command output, so it should end with `{:.no-copy-code}`. It doesn't, so KSAI should flag it. | ||||||||
|
|
||||||||
| ```sh | ||||||||
| HTTP/1.1 200 OK | ||||||||
| Content-Type: application/json | ||||||||
| Connection: keep-alive | ||||||||
|
|
||||||||
| {"message": "pong"} | ||||||||
| ``` | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 馃數 Low The block at lines 9 to 15 holds only a response, so the Output blocks rule requires
Suggested change
React 馃憤 if this finding helped, 馃憥 if it did not. |
||||||||
|
|
||||||||
| ## Control: command | ||||||||
|
|
||||||||
| The following block is a command the reader runs, so KSAI should not flag it. | ||||||||
|
|
||||||||
| ```sh | ||||||||
| curl -i http://localhost:8000/ping | ||||||||
| ``` | ||||||||
|
|
||||||||
| ## Control: marked output | ||||||||
|
|
||||||||
| The following output block is marked correctly, so KSAI should not flag it. | ||||||||
|
|
||||||||
| ```sh | ||||||||
| HTTP/1.1 200 OK | ||||||||
| ``` | ||||||||
| {:.no-copy-code} | ||||||||
|
|
||||||||
| ## Control: marked output with an extra class | ||||||||
|
|
||||||||
| The following output block has `.no-copy-code` plus another class, so KSAI should not flag it. | ||||||||
|
|
||||||||
| ```sh | ||||||||
| HTTP/1.1 200 OK | ||||||||
| Content-Type: application/json | ||||||||
| ``` | ||||||||
| {:.no-copy-code .collapsible} | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃煚 Medium
bugThe page has no front matter.
tools/frontmatter-validator/index.jsglobsapp/**/*.md, ignores noapp/_ksai-testpath, andbase.jsonrequirescontent_type, so thevalidate-frontmatterscheck fails at this head. Addapp/_ksai-test/**to the validator ignore list, or delete the page before merge.React 馃憤 if this finding helped, 馃憥 if it did not.