A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.umbraco.com/contributing/documentation/style-guide below:

Style Guide | Contributing

Style Guide | Contributing
  1. Documentation
Style Guide

Keep the Umbraco documentation accessible, consistent, and readable by following the style guide defined in this article.

To ensure that the documentation is readable and has a similar style throughout, follow the guidelines outlined in this article. A GitHub bot will check PRs for broken rules and advise you on what to change.

Below you will find a description of each rule the Umbraco Documentation follows.

Avoid Punctuation in Headings

Don't use punctuation in headings and headlines. These should act as titles, and no punctuation is necessary.

For consistency, this rule will give a warning if you end headings with either of these punctuation symbols:

To ensure readability and consistency, this rule will warn you if you have more than one space in a row in your text.

Use Lists when Listing more than 2 Items/Steps

There are two types of commonly used lists in the Umbraco documentation: ordered lists and unordered lists.

To keep ordered lists short and to the point, follow these guidelines:

Write in the second person

Address the reader directly using "you".

⛔ The user should add the Document Type by clicking the Add button.

✅ You can add the Document Type by clicking…

Use the present tense and active voice

Use the present tense for statements that describe general behavior that's not associated with a particular time.

⛔ The Document Type was added…

✅ The Document Type is added...

The words in the list below will cause a warning when included in your contribution.

Avoid using the following words, as they are often opinionated. What may be 'easy' for you might not be easy for another user reading the article.

In most cases, these words can be removed entirely, whereas a rephrasing might be necessary in other cases.

This rule flags any sentence longer than 25 words. Shorter sentences improve clarity and readability.

The rule is added to improve the readability of the documentation. When a sentence is longer than 25 words, the readability is degraded. This is especially true for technical content that is meant to be instructional.

Avoid using "it" or "this" as references

To avoid confusion, don't use "it" or "this" to refer to an action or item referenced at an earlier point. The only exception to this rule is when used within the same sentence.

⛔ This can now be configured.

✅ The Document Type can now be configured.

This rule flags any use of discouraged terms in the Umbraco Documentation.

Example: The term blacklist must be avoided and replaced with deny list.

For a full list of terms, please check the style rule .

This rule is added to ensure that Umbraco-specific terms and names are spelled and used consistently throughout the documentation.

The list of Umbraco Terms includes, but is not limited to Umbraco, backoffice, Document Type, and Umbraco Forms.

All first-time uses of an acronym in an article need to be accompanied by a definition of that acronym. If an acronym is not defined on its first use in an article, the checker will give a warning.

Acronyms are defined using either a parenthesis or a colon followed by the definition.

Examples of the use of acronyms:

Members will only have access to CDN endpoints.

Members will only have access to Content Delivery Network (CDN) endpoints.

YSOD (.Net error page)

YSOD: Yellow Screen of Death, .NET error page

To ensure that markup languages and other names are capitalized correctly, a rule has been added to check for this.

The rule will ensure that instances of HTML and CSS are always written using only capital letters. It will also check whether JavaScript is written in full.

In some cases, throughout the documentation, other software providers or brands are referenced. This rule is added to ensure that the most commonly used brand names are spelled and capitalized correctly.

The rule will, as an example, ensure that the names Microsoft and Slack are always capitalized.

Test the documentation yourself

One of the big strengths of Vale is that it is possible for a contributor to run the tests locally before creating a PR. Below are a couple of options on how to test the documentation.

Visual Studio Code extension

There is an extension for Visual Studio Code that allows you to use Vale as you are writing documentation. It can also be used to run checks on existing articles and find where potential changes are needed.

The extension is called vale-vscode and can be downloaded via the Visual Studio Code Marketplace in your editor.

To use it, you will still have to install a Vale Server on your computer. For more information, see the official Vale installation article.

Once the tools have been installed, a check of the complete repository of articles can be done using the terminal within Visual Studio Code.

Run the following command:

vale --glob='*.md' .

The Vale extension will also run automatically when you are viewing Markdown files. It will present warnings directly in the document as you write, based on the style rules set for the project. It will look similar to this:

Example of the extension Use Vale locally

The first step to running Vale locally is to install it following Vale's Installation documentation .

Next, you can open a command line tool in the documentation repository and run the following command:

vale --glob='*.md' .

This tells Vale to test all markdown files (.md) in the current directory (.). The output will look something like this:

Vale Output

It will show you what file has issues. In the case above the v8documentation.md the article broke the HeadingsPunctuation rule, and it did so in the following places:

When the check has run you will get the total amount of errors, warnings, and suggestions including how many files have been checked.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4