-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Describe {{< codenew >}}
shortcode in style guide
#18231
Comments
@sftim: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
If the existing mechanism isn't clear, and you'd like to help, I'll be happy to explain my understanding of it. |
Oops, wrong click. |
/assign anshprat |
added review changes for kubernetes#18231
This is for downloadable code snippet. Also add link to code-snippet-formatting pointing to above This is for kubernetes#18231
I just noticed that https://kubernetes.io/docs/contribute/style/write-new-topic/#including-code-from-another-file does mention this shortcode. |
This is for downloadable code snippet. Also add link to code-snippet-formatting pointing to above This is for kubernetes#18231
This is for downloadable code snippet. Also add link to code-snippet-formatting pointing to above This is for kubernetes#18231
This is for downloadable code snippet. Also add link to code-snippet-formatting pointing to above This is for kubernetes#18231
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/triage accepted |
/sig docs |
{{< codenew >}}
shortcode in style guide
I'm happy to make the required changes and get this issue moving forward. /assign |
Changes to addressed this issue have been merged as part of PR #39764 |
Completed via #39764 /close |
@dipesh-rawat: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is a Feature Request
What would you like to be added
In the style guide, explain when to make code samples (eg manifests) downloadable, and how to do that.
Why is this needed
https://kubernetes.io/docs/contribute/style/style-guide/ does not mention how to style downloadable code blocks.
If you know what to search for I think it's easy to work out the convention. Essentially, pages that provide ready-to-run sample manifests should put them in (eg)
content/en/examples/debug/counter-pod.yaml
(for English localization) and reference the downloadable code sample directly, using the{{< codenew >}}
shortcode.Comments
For example: https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/#creating-and-exploring-an-nginx-deployment
Consider also mentioning code samples in a localization context. Typically, code samples copy over unchanged but natural-language comments might want translating. For example: https://github.com/kubernetes/website/blob/master/content/ko/examples/application/deployment.yaml
/help
The text was updated successfully, but these errors were encountered: