community/generator
Kubernetes Submit Queue f0f37f4461 Merge pull request #1127 from cblecker/generator-what
Automatic merge from submit-queue. .

Update generator to use WHAT variable

Having to set two different variables is confusing. Changed this to look at the `WHAT` envvar and match on a suffix.

Fixes #1126.

cc: @jamiehannaford
2017-09-26 13:38:05 -07:00
..
testdata Remove duplication 2017-07-14 10:20:04 +02:00
.gitignore Remove duplication 2017-07-14 10:20:04 +02:00
Dockerfile Remove duplication 2017-07-14 10:20:04 +02:00
OWNERS Make tabs in OWNERS files into 2 spaces. 2017-08-15 16:33:18 -07:00
README.md Update generator to use WHAT variable 2017-09-25 12:36:24 -07:00
app.go Merge pull request #1127 from cblecker/generator-what 2017-09-26 13:38:05 -07:00
app_test.go Remove duplication 2017-07-14 10:20:04 +02:00
header.tmpl Reformat directory structure 2017-05-16 12:26:37 +02:00
list.tmpl Remove duplication 2017-07-14 10:20:04 +02:00
sig_readme.tmpl Display github handle for sig leads 2017-08-23 14:12:24 -07:00
wg_readme.tmpl Display github handle for sig leads 2017-08-23 14:12:24 -07:00

README.md

SIG Doc builder

This folder contains scripts to automatically generate documentation about the different Special Interest Groups (SIGs) of Kubernetes. The authoritative source for SIG information is the sigs.yaml file in the project root. All updates must be done there.

When an update happens to the this file, the next step is generate the accompanying documentation. This takes the format of two types of doc file:

./sig-<sig-name>/README.md
./wg-<working-group-name>/README.md
./sig-list.md

For example, if a contributor has updated sig-cluster-lifecycle, the following files will be generated:

./sig-cluster-lifecycle/README.md
./sig-list.md

How to use

To (re)build documentation for all the SIGs, run these commands:

make all

To build docs for one SIG, run one these commands:

make WHAT=sig-apps
make WHAT=cluster-lifecycle
make WHAT=wg-resource-management
make WHAT=container-identity

where the WHAT var refers to the directory being built.

Adding custom content to your README

If your SIG or WG wishes to add custom content, you can do so by placing it within the following code comments:

<!-- BEGIN CUSTOM CONTENT -->

<!-- END CUSTOM CONTENT -->

Anything inside these code comments are saved by the generator and appended to newly generated content. Updating any content outside this block, however, will be overwritten the next time the generator runs.

An example might be:

<!-- BEGIN CUSTOM CONTENT -->
## Upcoming SIG goals
- Do this
- Do that
<!-- END CUSTOM CONTENT -->