Skip to content

Commit

Permalink
Merge branch 'main' into jdb/2023-10-data-source-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbaldry authored Oct 25, 2023
2 parents 7751b52 + f57cf8e commit f16b4d9
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 6 deletions.
1 change: 1 addition & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Packages = Google, https://github.com/jdbaldry/Hugo/releases/download/v0.2.0-rc.
StylesPath = vale
[*.md]
BasedOnStyles = Google, Grafana
Google.Headings = NO
Google.Quotes = NO
Google.Units = NO
Google.WordList = NO
Expand Down
2 changes: 1 addition & 1 deletion docs/make-docs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ PATHS_mimir='docs/sources/mimir'
PATHS_plugins_grafana_jira_datasource='docs/sources'
PATHS_plugins_grafana_mongodb_datasource='docs/sources'
PATHS_plugins_grafana_splunk_datasource='docs/sources'
Paths_tempo='docs/sources/tempo'
PATHS_tempo='docs/sources/tempo'
PATHS_website='content'

# identifier STR
Expand Down
28 changes: 26 additions & 2 deletions docs/sources/write/markdown-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,32 @@ Use repetitive list numbering, to avoid inconsistent list numbering:
The preceding list displays as:

1. First
2. Second
3. Third
1. Second
1. Third

When writing paragraphs as list entries, you must use proper indentation.
Each line in the entry must have three spaces before the first word.
Each new paragraph must have an empty line before it.

For example:

```markdown
1. First paragraph in first entry.
Second sentence in first paragraph.

Second paragraph in first entry.

1. First paragraph in second entry.
```

The example displays as follows:

1. First paragraph in first entry.
Second sentence in first paragraph.

Second paragraph in first entry.

1. First paragraph in second entry.

## Unordered lists

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Use all-caps capitalization exclusively for abbreviations, such as `API`, `HTTP`

The names of people, places, and products take initial capitals because they are proper nouns.

If you're not sure of whether something is a product or not, consult the product manager, or if there isn't one, the responsible squad.

### Grafana-specific capitalization guidelines

- Menu and submenu titles always use sentence case: capitalize the first word, and lowercase the rest.
Expand Down
4 changes: 4 additions & 0 deletions docs/sources/write/style-guide/ux-writing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ Use active voice to make clear who is performing the action.

Capitalize only the first word in the title, the first word in a subheading after a colon, and any proper nouns (people, places, products).

{{% admonition %}}
If you're not sure of whether something is a product or not, consult the product manager, or if there isn't one, the responsible squad.
{{% /admonition %}}

**Use:**

> Create and manage dashboards to visualize your data.
Expand Down
1 change: 1 addition & 0 deletions vale/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Packages = https://github.com/jdbaldry/Hugo/releases/download/v0.2.0-rc.1/Hugo.z
StylesPath = /etc/vale/styles
[*.md]
BasedOnStyles = Google, Grafana
Google.Headings = NO
Google.Quotes = NO
Google.Units = NO
Google.WordList = NO
Expand Down
3 changes: 2 additions & 1 deletion vale/.vale.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
'*.md': {
BasedOnStyles: 'Google, Grafana',

// More often than not, we need to be consistent with Prometheus units or units used Grafana UI which are not represented in the form encouraged by SI.
'Google.Headings': 'NO',
'Google.Quotes': 'NO',
// More often than not, we need to be consistent with Prometheus units or units used Grafana UI which are not represented in the form encouraged by SI.
'Google.Units': 'NO',
'Google.WordList': 'NO',

Expand Down
1 change: 0 additions & 1 deletion vale/Google/Headings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ indicators:
exceptions:
- Azure
- CLI
- Code
- Cosmos
- Docker
- Emmet
Expand Down
5 changes: 4 additions & 1 deletion vale/dictionaries/en_US-grafana.dic
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
29
32
API/S po:noun
Datadog/ po:noun
ESLint/ po:noun
Goldmark/ po:noun
Grafana/M po:noun
OnCall/ po:noun
Expand All @@ -11,6 +13,7 @@ SLO/S po:noun
Splunk/ po:noun
UI/S po:noun
URI/S po:noun
Webpack/ po:noun
allowlist/S po:noun
backport/DGS po:verb
blockquote/S po:noun
Expand Down
3 changes: 3 additions & 0 deletions vale/dictionaries/wordlist
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
API/S po:noun
Datadog/ po:noun
ESLint/ po:noun
Goldmark/ po:noun
Grafana/M po:noun
OnCall/ po:noun
Expand All @@ -10,6 +12,7 @@ SLO/S po:noun
Splunk/ po:noun
UI/S po:noun
URI/S po:noun
Webpack/ po:noun
allowlist/S po:noun
backport/DGS po:verb
blockquote/S po:noun
Expand Down

0 comments on commit f16b4d9

Please sign in to comment.