From 040df41846fe03cde14a8878538ed72a721283af Mon Sep 17 00:00:00 2001 From: Anshu Prateek <333902+anshprat@users.noreply.github.com> Date: Tue, 28 Jan 2020 16:21:40 +0530 Subject: [PATCH] change escaped chars to markdown (#18858) Helps to keep doc clean for long term --- content/en/docs/contribute/style/write-new-topic.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/en/docs/contribute/style/write-new-topic.md b/content/en/docs/contribute/style/write-new-topic.md index 22e55e3da8..50e49734a3 100644 --- a/content/en/docs/contribute/style/write-new-topic.md +++ b/content/en/docs/contribute/style/write-new-topic.md @@ -115,8 +115,9 @@ When adding a new standalone sample file, such as a YAML file, place the code in one of the `/examples/` subdirectories where `` is the language for the topic. In your topic file, use the `codenew` shortcode: -
{{< codenew file="<RELPATH>/my-example-yaml>" >}}
- +```none +{{/my-example-yaml>" */>}} +``` where `` is the path to the file to include, relative to the `examples` directory. The following Hugo shortcode references a YAML file located at `/content/en/examples/pods/storage/gce-volume.yaml`.