Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 Change formatting in the "Catalog queries" doc #1461

Merged

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Nov 14, 2024

Description

This commit adds definition lists for placeholders such as <package_name>. The goal of adding definition lists for placeholders is to improve their visibility in the code snippets.

This commit also switches existing definition lists 1 (list of queries) to unordered list. The current list of queries uses definition lists from mkdocs-material. However it relies on a tailing space after a colon to work. E.g. the whole line becomes : and it is prone to errors because:

  1. It is easy to overlook a space which is part of markdown.
  2. Many editors remove tailing spaces at the end of lines.
  3. We are adding more definition lists into this docs to explain placeholders such as <package_name>. With nested definition lists markdown of this document going to be very difficult to manage.

Tip

We also have docs deployment preview. See the comment from netlify bot below.
See: preview of this PR vs live version

Tip

Recommend reviewing the changes with git diff --ignore-all-space (-w) option. GitHub UI also has this option.
Screenshot 2024-11-12 at 15 59 15

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@m1kola m1kola requested a review from a team as a code owner November 14, 2024 11:09
Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 97bf635
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/6735ea923944f0000833912b
😎 Deploy Preview https://deploy-preview-1461--olmv1.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 site configuration.

@m1kola m1kola mentioned this pull request Nov 14, 2024
4 tasks
@m1kola m1kola marked this pull request as draft November 14, 2024 12:07
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 14, 2024
@m1kola m1kola force-pushed the change_catalog-queries_formatting branch 3 times, most recently from 514ec17 to 71a6373 Compare November 14, 2024 12:14
This commit adds definition lists for placeholders such as `<package_name>`.
The goal of adding definition lists for placeholders is to improve their
visibility in the code snippets.

This commit also switches existing definition lists [1] (list of queries)
to unordered list. The current list of queries uses definition lists
from mkdocs-material. However it relies on a tailing space
after a colon to work. E.g. the whole line becomes `: `
and it is prone to errors because:
1. It is easy to overlook a space which is part of markdown.
2. Many editors remove tailing spaces at the end of lines.
3. We are adding more definition lists into this docs
   to explain placeholders such as `<package_name>`.
   With nested definition lists markdown of this document
   going to be very difficult to manage.

[1]: https://squidfunk.github.io/mkdocs-material/reference/lists/#using-definition-lists

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola force-pushed the change_catalog-queries_formatting branch from 71a6373 to 97bf635 Compare November 14, 2024 12:18
@m1kola m1kola marked this pull request as ready for review November 14, 2024 12:21
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 14, 2024
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 14, 2024
@m1kola m1kola added this pull request to the merge queue Nov 14, 2024
Merged via the queue into operator-framework:main with commit 0c2bfa1 Nov 14, 2024
17 checks passed
@m1kola m1kola deleted the change_catalog-queries_formatting branch November 14, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants