Skip to content

docs: fix code block language for custom operation results#1952

Open
kamina-zzz wants to merge 2 commits intoopen-feature:mainfrom
kamina-zzz:docs/fix-custom-operations-codeblock
Open

docs: fix code block language for custom operation results#1952
kamina-zzz wants to merge 2 commits intoopen-feature:mainfrom
kamina-zzz:docs/fix-custom-operations-codeblock

Conversation

@kamina-zzz
Copy link
Copy Markdown

Summary

  • Fix code block language from shell to json for JSON result examples in custom operation docs
  • Affects fractional operation and string-comparison operation result examples

Test plan

  • Verify rendered output shows JSON syntax highlighting instead of shell

(This supersedes #1951, which only covered the fractional operation fix.)

kamina-zzz and others added 2 commits April 20, 2026 17:24
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: kamina-zzz <kamina.dev1991@gmail.com>
Signed-off-by: kamina-zzz <kamina.dev1991@gmail.com>
@kamina-zzz kamina-zzz requested review from a team as code owners April 20, 2026 08:25
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 20, 2026

Deploy Preview for polite-licorice-3db33c ready!

Name Link
🔨 Latest commit 66e3bf3
🔍 Latest deploy log https://app.netlify.com/projects/polite-licorice-3db33c/deploys/69e5e2e3cfcebe0008e56598
😎 Deploy Preview https://deploy-preview-1952--polite-licorice-3db33c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 20, 2026
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the language tags for code blocks from shell to json in the fractional and string comparison operation documentation. Review feedback identifies data inconsistencies in the JSON examples within the string comparison documentation, specifically where the hex values for the 'green' variant do not match the expected values defined earlier in the document.

Result:

```shell
```json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While updating the language tag, note that the JSON result in the following line (77) is inconsistent with the flag definition. The variant green should have the value #00FF00 (as defined on line 37), but the example shows #0000FF. It appears that other examples in this file (e.g., lines 65 and 139) also contain similar data inconsistencies between the variant name and its value.

Result:

```shell
```json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The JSON result on line 151 is also inconsistent with the flag definition. The variant green should have the value #00FF00 (as defined on line 112), but the example shows #0000FF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant