Skip to content

docs: fix markdown code blocks#163

Merged
dcmiddle merged 1 commit intoconfidential-containers:mainfrom
matdibu:fix-docs-markdown-blocks
Feb 25, 2026
Merged

docs: fix markdown code blocks#163
dcmiddle merged 1 commit intoconfidential-containers:mainfrom
matdibu:fix-docs-markdown-blocks

Conversation

@matdibu
Copy link
Contributor

@matdibu matdibu commented Feb 23, 2026

Examples of issues fixed:

Issue Before After
code blocks without an explicit language were sometimes interpreted as math formulas image image image image image image
rego blocks were not labelled or were labelled as opa image image image image
yaml's had invalid labelling/whitespace/syntax image image
bash snippets that echo to a file were marked as being that file's format image image
mix-ups between shell scripts (bash) and console sessions (console) image image image image

@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for frolicking-manatee-96c0c8 ready!

Name Link
🔨 Latest commit 21deba5
🔍 Latest deploy log https://app.netlify.com/projects/frolicking-manatee-96c0c8/deploys/699ed983d1177700081e3dce
😎 Deploy Preview https://deploy-preview-163--frolicking-manatee-96c0c8.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.

@matdibu matdibu force-pushed the fix-docs-markdown-blocks branch from 56e9c2c to 0952c9f Compare February 23, 2026 12:26

Ensure the pod was created successfully (in running state):
```bash
kubectl get pods
Copy link
Contributor

Choose a reason for hiding this comment

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

For me easy copy&paste is far more usable than preety formatting in this case (simplier to dummy copy and run it) - @fitzthum what's your Opinion ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the only reason behind this change was to bring it in line with other places where a command is shown together with its output

Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally it would be nice to copy ready to use command without additional "$" and console output - faster - quicker - less error prone. We need alignments there but this particular for me personally is kind of regression

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll revert this bit, no problem

we can follow up with another PR to address this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 👍🏻

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, maybe for single commands we should try to use bash and save the $s for multi-line commands. We can adjust in later PR.

@matdibu matdibu force-pushed the fix-docs-markdown-blocks branch from 0952c9f to 9df6c6b Compare February 24, 2026 11:26
Copy link
Member

@fitzthum fitzthum left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @matdibu

@matdibu matdibu requested a review from pawelpros February 25, 2026 10:53
some allowed_image in policy_data.allowed_images
storage.source == allowed_image
}
some allowed_image in policy_data.allowed_images
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably should be

Suggested change
some allowed_image in policy_data.allowed_images
some allowed_image in policy_data.allowed_images

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@pawelpros
Copy link
Contributor

Thanks @matdibu for aligning code blocks one step closer to seamless experience in docs ^^

Some markdown code blocks were rendering incorrectly:
- code blocks without an explicit language were
  sometimes interpreted as math formulas
- rego blocks were not labelled or were labelled
  as opa
- yaml's had invalid whitespace and syntax
- bash snippets that echo to a file were marked
  as being that file's format
- mix-ups between shell scripts (```bash) and
  console sessions (```console)

Signed-off-by: Matei Dibu <contact@mateidibu.dev>
@matdibu matdibu force-pushed the fix-docs-markdown-blocks branch from 9df6c6b to 21deba5 Compare February 25, 2026 11:14
Copy link
Member

@dcmiddle dcmiddle left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes and really nice cover sheet!

@dcmiddle dcmiddle merged commit effbb04 into confidential-containers:main Feb 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants