Skip to content

Commit

Permalink
Add code fencing example in the style guidlines (kubernetes#12783)
Browse files Browse the repository at this point in the history
* Add code fencing example in the style guidlines

* Add a period
  • Loading branch information
DanyC97 authored and Mayank Kumar committed Mar 11, 2019
1 parent b66cd74 commit 8236804
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/en/docs/contribute/style/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ document, use the backtick (`).
<tr><th>Do</th><th>Don't</th></tr>
<tr><td>The <code>kubectl run</code> command creates a Deployment.</td><td>The "kubectl run" command creates a Deployment.</td></tr>
<tr><td>For declarative management, use <code>kubectl apply</code>.</td><td>For declarative management, use "kubectl apply".</td></tr>
<tr><td>Enclose code samples with triple backticks. <code>(```)</code></td><td>Enclose code samples with any other syntax.</td></tr>
</table>

{{< note >}}
The website supports syntax highlighting for code samples, but specifying a language is optional.
{{< /note >}}

### Use code style for object field names

<table>
Expand Down

0 comments on commit 8236804

Please sign in to comment.