Skip to content

Commit 8056a69

Browse files
authored
Merge pull request #22301 from kbhawkey/kb-example-content-move
create archetype files, _index cleanup
2 parents 88ae720 + 23ed3ea commit 8056a69

File tree

10 files changed

+67
-130
lines changed

10 files changed

+67
-130
lines changed

archetypes/concepts.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
content_type: concept
4+
---
5+
6+
<!-- overview -->
7+
8+
<!-- body -->
9+
10+
<!-- Optional section; add links to information related to this topic. -->
11+
12+
## {{% heading "whatsnext" %}}

archetypes/tasks.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
content_type: task
4+
---
5+
6+
<!-- overview -->
7+
8+
## {{% heading "prerequisites" %}}
9+
10+
{{< include "task-tutorial-prereqs.md" >}}
11+
12+
<!-- If you set the min-kubernetes-server-version parameter in the page's front matter,
13+
add the version check shortcode {{< version-check >}}.
14+
-->
15+
16+
<!-- steps -->
17+
18+
<!-- discussion -->
19+
20+
<!-- Optional section; add links to information related to this topic. -->
21+
## {{% heading "whatsnext" %}}

archetypes/tutorials.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
content_type: tutorial
4+
---
5+
6+
<!-- overview -->
7+
8+
## {{% heading "prerequisites" %}}
9+
10+
## {{% heading "objectives" %}}
11+
12+
<!-- lessoncontent -->
13+
14+
## {{% heading "cleanup" %}}
15+
16+
<!-- Optional section; add links to information related to this topic. -->
17+
## {{% heading "whatsnext" %}}

content/en/docs/concepts/example-concept-template.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

content/en/docs/contribute/_index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ content_type: concept
33
title: Contribute to Kubernetes docs
44
linktitle: Contribute
55
main_menu: true
6+
no_list: true
67
weight: 80
78
card:
89
name: contribute
@@ -23,8 +24,6 @@ Kubernetes documentation contributors:
2324

2425
Kubernetes documentation welcomes improvements from all contributors, new and experienced!
2526

26-
27-
2827
<!-- body -->
2928

3029
## Getting started
@@ -74,5 +73,3 @@ SIG Docs communicates with different methods:
7473
- Visit the [Kubernetes community site](/community/). Participate on Twitter or Stack Overflow, learn about local Kubernetes meetups and events, and more.
7574
- Read the [contributor cheatsheet](https://github.com/kubernetes/community/tree/master/contributors/guide/contributor-cheatsheet) to get involved with Kubernetes feature development.
7675
- Submit a [blog post or case study](/docs/contribute/new-content/blogs-case-studies/).
77-
78-

content/en/docs/contribute/style/write-new-topic.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,17 @@ Task | A task page shows how to do a single thing. The idea is to give readers a
2828
Tutorial | A tutorial page shows how to accomplish a goal that ties together several Kubernetes features. A tutorial might provide several sequences of steps that readers can actually do as they read the page. Or it might provide explanations of related pieces of code. For example, a tutorial could provide a walkthrough of a code sample. A tutorial can include brief explanations of the Kubernetes features that are being tied together, but should link to related concept topics for deep explanations of individual features.
2929
{{< /table >}}
3030

31+
### Creating a new page
32+
3133
Use a [content type](/docs/contribute/style/page-content-types/) for each new page
32-
that you write. Using page type helps ensure
33-
consistency among topics of a given type.
34+
that you write. The docs site provides templates or
35+
[Hugo archetypes](https://gohugo.io/content-management/archetypes/) to create
36+
new content pages. To create a new type of page, run `hugo new` with the path to the file
37+
you want to create. For example:
38+
39+
```
40+
hugo new docs/concepts/my-first-concept.md
41+
```
3442

3543
## Choosing a title and filename
3644

content/en/docs/setup/_index.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,20 @@ card:
2020

2121
<!-- overview -->
2222

23-
This section covers different options to set up and run Kubernetes.
24-
25-
Different Kubernetes solutions meet different requirements: ease of maintenance, security, control, available resources, and expertise required to operate and manage a cluster.
26-
27-
You can deploy a Kubernetes cluster on a local machine, cloud, on-prem datacenter, or choose a managed Kubernetes cluster. You can also create custom solutions across a wide range of cloud providers, or bare metal environments.
28-
29-
More simply, you can create a Kubernetes cluster in learning and production environments.
30-
23+
This section lists the different ways to set up and run Kubernetes.
24+
When you install Kubernetes, choose an installation type based on: ease of maintenance, security,
25+
control, available resources, and expertise required to operate and manage a cluster.
3126

27+
You can deploy a Kubernetes cluster on a local machine, cloud, on-prem datacenter, or choose a managed Kubernetes cluster. There are also custom solutions across a wide range of cloud providers, or bare metal environments.
3228

3329
<!-- body -->
3430

3531
## Learning environment
3632

37-
If you're learning Kubernetes, use the Docker-based solutions: tools supported by the Kubernetes community, or tools in the ecosystem to set up a Kubernetes cluster on a local machine.
38-
39-
{{< table caption="Local machine solutions table that lists the tools supported by the community and the ecosystem to deploy Kubernetes." >}}
40-
41-
|Community |Ecosystem |
42-
| ------------ | -------- |
43-
| [Minikube](/docs/setup/learning-environment/minikube/) | [Docker Desktop](https://www.docker.com/products/docker-desktop)|
44-
| [kind (Kubernetes IN Docker)](/docs/setup/learning-environment/kind/) | [Minishift](https://docs.okd.io/latest/minishift/)|
45-
| | [MicroK8s](https://microk8s.io/)|
46-
33+
If you're learning Kubernetes, use the tools supported by the Kubernetes community, or tools in the ecosystem to set up a Kubernetes cluster on a local machine.
4734

4835
## Production environment
4936

5037
When evaluating a solution for a production environment, consider which aspects of operating a Kubernetes cluster (or _abstractions_) you want to manage yourself or offload to a provider.
5138

5239
[Kubernetes Partners](https://kubernetes.io/partners/#conformance) includes a list of [Certified Kubernetes](https://github.com/cncf/k8s-conformance/#certified-kubernetes) providers.
53-
54-

content/en/docs/tasks/_index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,5 @@ This section of the Kubernetes documentation contains pages that
1111
show how to do individual tasks. A task page shows how to do a
1212
single thing, typically by giving a short sequence of steps.
1313

14-
15-
## {{% heading "whatsnext" %}}
16-
17-
1814
If you would like to write a task page, see
1915
[Creating a Documentation Pull Request](/docs/home/contribute/create-pull-request/).

content/en/docs/tasks/example-task-template.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

content/en/docs/tutorials/_index.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Tutorials
33
main_menu: true
4+
no_list: true
45
weight: 60
56
content_type: concept
67
---
@@ -14,8 +15,6 @@ each of which has a sequence of steps.
1415
Before walking through each tutorial, you may want to bookmark the
1516
[Standardized Glossary](/docs/reference/glossary/) page for later references.
1617

17-
18-
1918
<!-- body -->
2019

2120
## Basics
@@ -64,13 +63,8 @@ Before walking through each tutorial, you may want to bookmark the
6463

6564
* [Using Source IP](/docs/tutorials/services/source-ip/)
6665

67-
68-
6966
## {{% heading "whatsnext" %}}
7067

71-
7268
If you would like to write a tutorial, see
7369
[Content Page Types](/docs/contribute/style/page-content-types/)
7470
for information about the tutorial page type.
75-
76-

0 commit comments

Comments
 (0)