This document outlines some style guidelines that we recommend when contributing content in Markdown. They are not mandatory, but they help us to include your contribution more easily.
- Use US English.
- Keep it simple and use words that non-native English speakers are also familiar with.
If you want to modify or create a new section heading, we recommend title case - capitalizing the first letter of each word except conjunctions and prepositions. For more information on title case, see the corresponding Wikipedia article on title case.
If you're providing a hyperlink, we prefer the "inline" approach links in Markdown. See Basic Syntax for Links for more information.
This is the "inline" approach, where the URL follows the link text directly:
See [SAP Community](https://community.sap.com) for more information.
Type of Text | Formatting | Markdown Syntax |
---|---|---|
User Interface Elements | italics | Choose *Subaccounts* . |
New Terms and Emphasis | bold | Do **not** stop it. |
Technical Names | code |
Open file `root.yaml`. |
Inline Code and Inline Commands | code |
For declarative management, use `kubectl apply`. |
Object Field Names and Field Values | code |
Set the value of `image` to `nginx:1.8`. |
When referring to UI elements, refrain from using verbs like "Click" or "Select with right mouse button". This level of detail is hardly ever needed and also invalidates a procedure if other devices are used. For example, for a tablet you'd say "Tap on".
Use italics when you refer to UI elements.
UI Element | Standard Formulation | Markdown Syntax |
---|---|---|
Button, menu path | Choose UI Element. | Choose *UI Element*. |
Menu path, context menu, navigation path | Choose System > User Profile > Own Data. | Choose *System* \> *User Profile* \> *Own Data*. |
Entry fields | Enter your password. | Enter your password. |
Checkbox, radio button | Select Filter. | Select *Filter*. |
Expandable screen elements | Expand User Settings. Collapse User Settings. |
Expand *User Settings* .Collapse *User Settings*. |
Use bold to emphasize something or to introduce a new term.
Do | Don't |
---|---|
A cluster is a set of nodes ... | A "cluster" is a set of nodes ... |
The system does not delete your objects. | The system does not(!) delete your objects. |
Use code style (using backticks) for filenames, technical componentes, directories, and paths.
Do | Don't |
---|---|
Open file envars.yaml . |
Open the envars.yaml file. |
Go to directory /docs/tutorials . |
Go to the /docs/tutorials directory. |
Open file /_data/concepts.yaml . |
Open the /_data/concepts.yaml file. |
Use backticks (`) for inline code.
Do | Don't |
---|---|
Use cf marketplace to list all services. |
Use "cf marketplace" to list all services. |
For declarative management, use kubectl apply . |
For declarative management, use "kubectl apply". |
Use backticks (`) for field names, and field values.
Do | Don't |
---|---|
Set the value of the replicas field in the configuration file. |
Set the value of the "replicas" field in the configuration file. |
The value of the exec field is an ExecAction object. |
The value of the "exec" field is an ExecAction object. |
Set the value of imagePullPolicy to Always . |
Set the value of imagePullPolicy to "Always". |
Set the value of image to nginx:1.8 . |
the value of image to nginx:1.8. |
Do | Don't |
---|---|
cf marketplace |
$ cf marketplace |
Update the XSUAA service.
cf update-service myuaa -c xs-security.json
Open a browser window and enter your application’s URL.
Standard Markdown supports blockquotes, often used to highlight additional information. In SAP documentation you'd refer to them as note types. In the list below, you can find additional note types commonly used in SAP documentation, and how to introduce them in Markdown so that they are displayed properly on SAP Help Portal.
Overusing notes, tips, and so on diminishes their importance. As a general rule, do not use more than 2 items of advisory information per page. Also, do not put them directly after one another.
Standard Note
Point out important or unusual information to the user. Something that they need to understand or that is not obvious. No direct action involved.
Example:
> The pricing-relevant data needs to correspond to the data specified for the Web shop in the shop management tool.
Result:
The pricing-relevant data needs to correspond to the data specified for the Web shop in the shop management tool.
Example
Give small examples to illustrate your point.
Example:
> ### Example
> This is an example that I want to be set off from body text. It has an icon and a signal word. And this is the third sentence but there may be more sentences. 3–5 sentences are a rough guideline.
Result:
This is an example that I want to be set off from body text. It has an icon and a signal word. And this is the third sentence but there may be more sentences. 3–5 sentences are a rough guideline.
Tip
Tips are usually optional. Advise the user to take an action (or refrain from it) to solve or avoid unwanted, minor issues. No risk of harm. The issues are relatively easy to repair.
Example:
> ### Tip
> If your system is running slowly, verify that memory configuration parameters are set to the recommended values.
Result:
If your system is running slowly, verify that memory configuration parameters are set to the recommended values.
Caution
Caution the user to avoid severe or dangerous hazards. Potential harm may range from damaged files over data loss and data inconsistency to system failure. The issues are not easy to repair.
Example:
> ### Caution
> Do not manually alter localization files. Doing so may cause unpredictable results, including data loss.
Result:
Do not manually alter localization files. Doing so may cause unpredictable results, including data loss.
We run checks on Markdown content when it is added or changed using the DavidAnson/markdownlint tool. This checking process, known as linting, runs automatically when pull requests are created, and help keep the use of markup consistent. The linting process is directed by rules that are used to check the Markdown. There are standard and custom rules.
The standard rules used are described in the following table; the rule names refer to the technical identifiers used in the configuration.
Rule Description | Rule Name |
---|---|
Heading levels should only increment by one level at a time | heading-increment |
The syntax for links should be the right way round | no-reversed-links |
There must be a space after the hash or hashes on a heading | no-missing-space-atx |
There must be only a single space after the hash or hashes on a heading | no-multiple-space-atx |
For more information on these rules, refer to the Markdown linting rules documentation.
There are custom rules that can be used; these rules are implemented with custom extensions used with the linting tool. Currently there is only a single custom rule in use:
- Headings should be written using title case (via the markdownlint-rule-titlecase package).