Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The kpt toolchain includes the following components:

## Roadmap

You can read about the big upcoming features in the [roadmap doc](/docs/ROADMAP.md).
You can floow the kpt roadmap in the related [GitHub Project](https://github.com/orgs/kptdev/projects/2/views/2)
Comment thread
CsatariGergely marked this conversation as resolved.
Outdated
Comment thread
CsatariGergely marked this conversation as resolved.
Outdated

## Contributing

Expand Down
File renamed without changes.
43 changes: 0 additions & 43 deletions docs/ROADMAP.md

This file was deleted.

42 changes: 0 additions & 42 deletions docs/style-guides/docs.md

This file was deleted.

69 changes: 69 additions & 0 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,75 @@ The site pulls some dependencies via Git submodules. If `npm install` succeeds b
git submodule update --init --recursive
```

## Style guide for documentation

1. Use US English in the documentation

2. Do not add manually a table of contents to the documents. Hugo and Docsy takes care of this.

3. Do not use H1 (#) headers in the documents. Docsy generates a H1 header to every document
consistent with the title of the document. Start the headings with H2 (##)
Comment thread
CsatariGergely marked this conversation as resolved.
Outdated

4. Use the built in alerts for notes and alerts
Comment thread
CsatariGergely marked this conversation as resolved.
Outdated

```go-html-template
{{%/* alert title="Warning" color="primary" */%}}
This is a note.
{{%/* /alert */%}}
```

```go-html-template
{{%/* alert title="Warning" color="warning" */%}}
This is a warning.
{{%/* /alert */%}}
```

5. If you add any commands to the content inline surround the comand with backticks (\` \`), like \`ls -la\`

6. Do not surround IP addresses, domain names or any other identifyers with backticks. Use italics
(\* \*) to mark any inline IP address, domain name, file name, file location or similar.
Comment thread
CsatariGergely marked this conversation as resolved.
Outdated

7. Whenever possible define the type of code for your code blocks
* \```shell for all shell blocks
* \```golang for all Go blocks
* \```yaml for all YAML blocks
* \``` yang for all YANG blocks
* a full list of language identifyers is available [here](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages)
Comment thread
CsatariGergely marked this conversation as resolved.
Outdated


8. Links to other kpt doc pages should be absolute:
- Correct: `[pkg]: /reference/cli/pkg/get/`
- Incorrect: `[pkg]: ../../../reference/cli/pkg/get`

9. Flags must appear after positional args:

- Correct:

```shell
$ kpt fn eval my-package --image ghcr.io/kptdev/krm-functions-catalog/search-replace
```

- Incorrect:

```shell
$ kpt fn eval --image ghcr.io/kptdev/krm-functions-catalog/search-replace my-package
```

10. The name of the tool should always appear as small caps (even at start of
sentences) and not in block quotes:
- Correct: kpt
- Incorrect: `kpt`
- Incorrect: Kpt
- Incorrect: KPT

11. References to a particular KRM group, version, kind, field should appear with
inline quotes:
- Correct: `ConfigMap`
- Incorrect: ConfigMap

12. Do not add any TBDs to the documentation. If something is missing create an [issue](https://github.com/kptdev/kpt/issues) for it


## License

Licensed under the [Creative Commons Attribution 4.0 International license](LICENSE-documentation)
Loading