-
Notifications
You must be signed in to change notification settings - Fork 126
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
docs: add content tabs in code examples in reference section #3005
Conversation
Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
Hi @mowies, I've made the required changes. This can probably be ignored ;) |
Hi @vishalvivekm thank you for contribution! :) Please add Thank you! |
Signed-off-by: vishalvivekm <[email protected]>
@mowies I've done the required changes, the Spell Checker workflow is failing though.
Thanks @odubajDT, it was helpful and all checks are passing! :) |
No problem :) Can you please have a look also on the failing yaml and markdown lint checks? Thank you! |
Signed-off-by: vishalvivekm <[email protected]>
…pages Signed-off-by: vishalvivekm <[email protected]>
Given the explanation above, I think it makes sense to go ahead and disable these specific markdown lint checks in the sections of the two pages, where changes are made.
|
Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
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.
Nice job on the coding! Now comes the question of how the examples should be arranged on the page. Right now, this gives us all the examples for each runner in one section, which is how the page was arranged. But there is some sentiment to group the examples by functionality with tabs for each runner.
I think we should merge this PR using the existing structure then have a separate issue that we can discuss and then implement in a new PR if we want to restructure the content.
Signed-off-by: Vivek Vishal <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
docs/docs/assets/crd/examples/synopsis-for-container-runtime.yaml
Outdated
Show resolved
Hide resolved
Please let's try to fix the MD linter errors. Here are the logs from the test
|
Hi, to avoid the
I've used html anchor tags like this:
which is now causing |
Signed-off-by: vishalvivekm <[email protected]>
@vishalvivekm let's try to add the element to the list of allowed elements here and see if it works for our use-case. Regarding the line length, it should be ok to disable the line-length markdownlint check but only for that particular lines. Let's please not do that for bigger blocks. |
…sing include Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3005 +/- ##
==========================================
+ Coverage 85.75% 86.77% +1.02%
==========================================
Files 162 162
Lines 10351 8554 -1797
==========================================
- Hits 8876 7423 -1453
+ Misses 1186 841 -345
- Partials 289 290 +1 see 141 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
All done @odubajDT |
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.
Thank you for your contribution!
😄 |
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.
@vishalvivekm this looks already so much better 🚀 ! I was wondering if it makes sense to tab by example instead of by runtime. Most of the example use cases are present for both runtimes, and I think that would be an easier way to see each possible configuration...
eg.
Inline ex (both python and deno)
Httpref ex (both)
and so on...
It is a bit difficult to search the page for specific examples right now
Makes sense @RealAnna , thank you for the review. |
Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
done ✔️ |
Signed-off-by: vishalvivekm <[email protected]>
Signed-off-by: vishalvivekm <[email protected]>
Quality Gate passedIssues Measures |
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.
very nice 🚀 💪 🎊
) Signed-off-by: vishalvivekm <[email protected]> Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: shivam <[email protected]>
) Signed-off-by: vishalvivekm <[email protected]> Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: vickysomtee <[email protected]>
Description
We've a bunch of code snippets / examples on KeptnMetricsProvider and KeptnTaskDefinition CRD reference pages that are listed vertically.
Here's the Video Preview:
Screencast from 09-02-24 04:18:31 PM IST.webm
Fixes #2922
Checklist
into multiple PRs)
see Contribution Guide
the Contribution Guide