-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: contribution guidelines (#1906)
Signed-off-by: Meg McRoberts <meg.mcroberts@dynatrace.com> Signed-off-by: Giovanni Liva <giovanni.liva@dynatrace.com> Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
- Loading branch information
1 parent
95e0953
commit 25bf6ce
Showing
4 changed files
with
102 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
docs/content/en/contribute/docs/contrib-guidelines-docs/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
title: Contribution guidelines for documentation | ||
description: Guidelines for contributing towards Keptn Lifecycle Toolkit | ||
weight: 300 | ||
--- | ||
|
||
The [Contribution Guidelines](../../general/contrib-guidelines-gen) page | ||
contains guidelines that are relevant | ||
for both documentation and software contributions. | ||
This page lists additional guidelines | ||
that are relevant only to documentation | ||
|
||
## Guidelines for contributing | ||
|
||
* Keep your language clean and crisp. | ||
We do not have an official *Style Guide* for Keptn but the | ||
[Google developer documentation style guide](https://developers.google.com/style) | ||
is a good general reference. | ||
|
||
* Use topic sentences for sections and paragraphs. | ||
When reading a well-written technical document, | ||
you should be able to read the first sentence in each paragraph | ||
and especially in each section to get an idea of what might follow. | ||
|
||
Good oral presentations commonly begin with a "set-up" | ||
where they describe a problem | ||
and then proceed to tell how to fix that problem. | ||
When using oral presentations as source material, | ||
it is important to rewrite the text | ||
so that the actual subject of discussion comes first. | ||
|
||
* Avoid using FAQ's in documentation. | ||
In general, they say "here is some miscellaneous information | ||
that I was too lazy to organize logically for you." | ||
In rare occasions, they may be appropriate, | ||
such as if you need a quick reference to a large, complicated document | ||
and include links to detailed documentation about the topic. | ||
|
||
* We are attempting to avoid duplicated information across the doc set, | ||
especially for information that is expected to change. | ||
For example, information about supported Kubernetes versions | ||
and the command sequence to install KLT should usually be done | ||
as references to the official installation section of the docs. | ||
|
||
For usability considerations, we make the following exceptions: | ||
|
||
* The main `README.md` file for the lifecycle-controller repository | ||
includes this basic information as well as a link | ||
to the full installation documentation which has more details. | ||
* The Getting Started Guide also includes this information | ||
for the same reason. | ||
|
||
* `markdownlint` enforces limits on line length. | ||
Links to other documents are exempted from this limit | ||
but, if a line has words before and after the long string, | ||
`markdownlint` fails. | ||
A good practice is to just code all links on their own page. | ||
So, instead of coding: | ||
|
||
```shell | ||
The [Other section](long-link-to-section) page | ||
... | ||
``` | ||
|
||
you should code the following, | ||
unless the link is so short | ||
that you are sure it will not violate the line-length rules:: | ||
|
||
```shell | ||
The | ||
[Other section](long-link-to-section) | ||
page | ||
... | ||
``` | ||
|
||
* Always build the documentation locally to check the formatting | ||
and verify that all links are working properly. | ||
See [Build Documentation Locally](../local-building) | ||
for details. | ||
|
||
* Always run the following to fix most markdown issues in your PR | ||
and identify issues that can not be fixed automatically: | ||
|
||
```shell | ||
make markdownlint-fix | ||
``` | ||
|
||
See [Markdownlint](../linter-requirements/#markdownlint) | ||
for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters