Merge pull request #21664 from kbhawkey/kb-fixup-content-type-page
add more content about headings
This commit is contained in:
@@ -20,18 +20,19 @@ The Kubernetes documentation follows several types of page content:
|
|||||||
|
|
||||||
## Content sections
|
## Content sections
|
||||||
|
|
||||||
Each page content type contains a number of sections declared as
|
Each page content type contains a number of sections defined by
|
||||||
Markdown comments and HTML headings. HTML section headings render using the
|
Markdown comments and HTML headings. You can add content headings to
|
||||||
`heading` shortcode. This page structure helps to maintain the different content types.
|
your page with the `heading` shortcode. The comments and headings help
|
||||||
|
maintain the structure of the page content types.
|
||||||
|
|
||||||
Examples of Markdown comments defining page content sections:
|
Examples of Markdown comments defining page content sections:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
<!-- body -->
|
<!-- overview -->
|
||||||
```
|
```
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
<!-- overview -->
|
<!-- body -->
|
||||||
```
|
```
|
||||||
|
|
||||||
To create common headings in your content pages, use the `heading` shortcode with
|
To create common headings in your content pages, use the `heading` shortcode with
|
||||||
@@ -47,29 +48,21 @@ Examples of heading strings:
|
|||||||
- seealso
|
- seealso
|
||||||
- options
|
- options
|
||||||
|
|
||||||
To create a `whatsnext` heading, add the heading shortcode
|
For example, to create a `whatsnext` heading, add the heading shortcode with the "whatsnext" string:
|
||||||
to your page as follows:
|
|
||||||
|
|
||||||
```none
|
```none
|
||||||
## {{%/* heading "whatsnext" */%}}
|
## {{%/* heading "whatsnext" */%}}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `whatsnext` heading displays as:
|
You can declare a `prerequisites` heading as follows:
|
||||||
|
|
||||||
## {{% heading "whatsnext" %}}
|
|
||||||
|
|
||||||
You can declare a `prerequisites` heading as:
|
|
||||||
|
|
||||||
```none
|
```none
|
||||||
## {{%/* heading "prerequisites" */%}}
|
## {{%/* heading "prerequisites" */%}}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `prerequisites` heading displays as:
|
The `heading` shortcode expects one string parameter.
|
||||||
|
The heading string parameter matches the prefix of a variable in the `i18n/<lang>.toml` files.
|
||||||
## {{% heading "prerequisites" %}}
|
For example:
|
||||||
|
|
||||||
The `heading` shortcode takes one string parameter. The string matches the prefix
|
|
||||||
of a variable in the `i18n/<lang>.toml` files.
|
|
||||||
|
|
||||||
`i18n/en.toml`:
|
`i18n/en.toml`:
|
||||||
|
|
||||||
@@ -85,7 +78,12 @@ other = "What's next"
|
|||||||
other = "다음 내용"
|
other = "다음 내용"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Concept
|
## Content types
|
||||||
|
|
||||||
|
Each content type informally defines its expected page structure.
|
||||||
|
Create page content with the suggested page sections.
|
||||||
|
|
||||||
|
### Concept
|
||||||
|
|
||||||
A concept page explains some aspect of Kubernetes. For example, a concept
|
A concept page explains some aspect of Kubernetes. For example, a concept
|
||||||
page might describe the Kubernetes Deployment object and explain the role it
|
page might describe the Kubernetes Deployment object and explain the role it
|
||||||
@@ -104,6 +102,9 @@ Concept pages are divided into three sections:
|
|||||||
| body |
|
| body |
|
||||||
| whatsnext |
|
| whatsnext |
|
||||||
|
|
||||||
|
The `overview` and `body` sections appear as comments in the concept page.
|
||||||
|
You can add the `whatsnext` section to your page with the `heading` shortcode.
|
||||||
|
|
||||||
Fill each section with content. Follow these guidelines:
|
Fill each section with content. Follow these guidelines:
|
||||||
|
|
||||||
- Organize content with H2 and H3 headings.
|
- Organize content with H2 and H3 headings.
|
||||||
@@ -113,7 +114,7 @@ Fill each section with content. Follow these guidelines:
|
|||||||
|
|
||||||
[Annotations](/docs/concepts/overview/working-with-objects/annotations/) is a published example of a concept page.
|
[Annotations](/docs/concepts/overview/working-with-objects/annotations/) is a published example of a concept page.
|
||||||
|
|
||||||
## Task
|
### Task
|
||||||
|
|
||||||
A task page shows how to do a single thing, typically by giving a short
|
A task page shows how to do a single thing, typically by giving a short
|
||||||
sequence of steps. Task pages have minimal explanation, but often provide links
|
sequence of steps. Task pages have minimal explanation, but often provide links
|
||||||
@@ -130,6 +131,10 @@ To write a new task page, create a Markdown file in a subdirectory of the
|
|||||||
| discussion |
|
| discussion |
|
||||||
| whatsnext |
|
| whatsnext |
|
||||||
|
|
||||||
|
The `overview`, `steps`, and `discussion` sections appear as comments in the task page.
|
||||||
|
You can add the `prerequisites` and `whatsnext` sections to your page
|
||||||
|
with the `heading` shortcode.
|
||||||
|
|
||||||
Within each section, write your content. Use the following guidelines:
|
Within each section, write your content. Use the following guidelines:
|
||||||
|
|
||||||
- Use a minimum of H2 headings (with two leading `#` characters). The sections
|
- Use a minimum of H2 headings (with two leading `#` characters). The sections
|
||||||
@@ -145,7 +150,7 @@ Within each section, write your content. Use the following guidelines:
|
|||||||
|
|
||||||
An example of a published task topic is [Using an HTTP proxy to access the Kubernetes API](/docs/tasks/extend-kubernetes/http-proxy-access-api/).
|
An example of a published task topic is [Using an HTTP proxy to access the Kubernetes API](/docs/tasks/extend-kubernetes/http-proxy-access-api/).
|
||||||
|
|
||||||
## Tutorial
|
### Tutorial
|
||||||
|
|
||||||
A tutorial page shows how to accomplish a goal that is larger than a single
|
A tutorial page shows how to accomplish a goal that is larger than a single
|
||||||
task. Typically a tutorial page has several sections, each of which has a
|
task. Typically a tutorial page has several sections, each of which has a
|
||||||
@@ -166,6 +171,10 @@ To write a new tutorial page, create a Markdown file in a subdirectory of the
|
|||||||
| cleanup |
|
| cleanup |
|
||||||
| whatsnext |
|
| whatsnext |
|
||||||
|
|
||||||
|
The `overview`, `objectives`, and `lessoncontent` sections appear as comments in the tutorial page.
|
||||||
|
You can add the `prerequisites`, `cleanup`, and `whatsnext` sections to your page
|
||||||
|
with the `heading` shortcode.
|
||||||
|
|
||||||
Within each section, write your content. Use the following guidelines:
|
Within each section, write your content. Use the following guidelines:
|
||||||
|
|
||||||
- Use a minimum of H2 headings (with two leading `#` characters). The sections
|
- Use a minimum of H2 headings (with two leading `#` characters). The sections
|
||||||
@@ -184,11 +193,10 @@ Within each section, write your content. Use the following guidelines:
|
|||||||
An example of a published tutorial topic is
|
An example of a published tutorial topic is
|
||||||
[Running a Stateless Application Using a Deployment](/docs/tutorials/stateless-application/run-stateless-application-deployment/).
|
[Running a Stateless Application Using a Deployment](/docs/tutorials/stateless-application/run-stateless-application-deployment/).
|
||||||
|
|
||||||
## Reference
|
### Reference
|
||||||
|
|
||||||
A component tool reference page shows the description and flag options output for
|
A component tool reference page shows the description and flag options output for
|
||||||
a Kubernetes component tool. Each page output depends upon the component tool's source
|
a Kubernetes component tool. Each page generates from scripts using the component tool commands.
|
||||||
code in `kubernetes/kubernetes`.
|
|
||||||
|
|
||||||
A tool reference page has several possible sections:
|
A tool reference page has several possible sections:
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ other = "I AM..."
|
|||||||
[docs_label_users]
|
[docs_label_users]
|
||||||
other = "Users"
|
other = "Users"
|
||||||
|
|
||||||
|
[examples_heading]
|
||||||
|
other = "Examples"
|
||||||
|
|
||||||
[feedback_heading]
|
[feedback_heading]
|
||||||
other = "Feedback"
|
other = "Feedback"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user