Skip to content

Commit 1ba10a8

Browse files
authored
Update style guide with Goldmark, Markdown, Emoji details; and fix NPM scripts (#8523)
1 parent 181d240 commit 1ba10a8

File tree

5 files changed

+46
-4
lines changed

5 files changed

+46
-4
lines changed

.cspell.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ dictionaries:
7272
- companies
7373
words: # Valid words across all locales
7474
- Docsy
75+
- errorf
76+
- Goldmark
7577
- htmltest
7678
- jsonify
7779
- nvmrc

.markdownlint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trim-code-blank-lines: true
2121
unindent-code-blocks: true
2222
validate-links:
2323
patterns:
24-
- regex: "https://github\\.(?!com|blog|io)"
24+
- regex: "https://github\\.(?!com|blog|io|github.com)"
2525
message: >-
2626
GitHub URLs should use `github.(com|blog|io)` domains to avoid
2727
typosquatting. For details, see

content/en/docs/contributing/style-guide.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,29 @@ are properly written and use the original capitalization. For example, write
4747
[`.textlintrc.yml`](https://github.com/open-telemetry/opentelemetry.io/blob/main/.textlintrc.yml)
4848
file.
4949

50-
## Markdown standards
50+
## Markdown
51+
52+
Site pages are written in the Markdown syntax supported by the [Goldmark]
53+
Markdown renderer. For the full list of supported Markdown extensions, see
54+
[Goldmark].
55+
56+
You can also use the following extensions:
57+
58+
- [GitHub-flavored Markdown][GFM] (GFM) [alerts][gfm-alerts]
59+
- [Emojis]. For the complete list of available emojis, see [Emojis] from the
60+
Hugo docs.
61+
62+
[Emojis]: https://gohugo.io/quick-reference/emojis/
63+
[gfm-alerts]:
64+
https://docs.github.com/en/contributing/style-guide-and-content-model/style-guide#alerts
65+
[GFM]: https://github.github.com/gfm/
66+
[Goldmark]: https://gohugo.io/configuration/markup/#goldmark
67+
68+
### Markdown checks {#markdown-standards}
5169

5270
To enforce standards and consistency for Markdown files, all files should follow
5371
certain rules, enforced by [markdownlint]. For a full list, check the
54-
[.markdownlint.yaml] file.
72+
[.markdownlint.yaml] and [.markdownlint-cli2.yaml] files.
5573

5674
We also enforce Markdown [file format](#file-format) and strip files of trailing
5775
whitespace. This precludes the [line break syntax] of 2+ spaces; use `<br>`
@@ -107,6 +125,8 @@ To learn how to fix validation issues, see [Pull request checks](../pr-checks).
107125

108126
[.markdownlint.yaml]:
109127
https://github.com/open-telemetry/opentelemetry.io/blob/main/.markdownlint.yaml
128+
[.markdownlint-cli2.yaml]:
129+
https://github.com/open-telemetry/opentelemetry.io/blob/main/.markdownlint-cli2.yaml
110130
[line break syntax]: https://www.markdownguide.org/basic-syntax/#line-breaks
111131
[markdownlint]: https://github.com/DavidAnson/markdownlint
112132
[Prettier]: https://prettier.io

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"fix:i18n:status": "scripts/check-i18n.sh -D",
8181
"fix:i18n:new": "scripts/check-i18n.sh -n -c HEAD",
8282
"fix:i18n": "npm run seq -- fix:i18n:new fix:i18n:status",
83-
"fix:markdown": "npm run check:markdown -- --fix; echo '\nTrimming trailing whitespace'; npm run _fix:trailing-spaces",
83+
"fix:markdown": "npm run check:markdown -- --fix && echo '\nTrimming trailing whitespace' && npm run _fix:trailing-spaces",
8484
"fix:refcache:refresh": "npm run _refcache:prune -- -n ${PRUNE_N:-128}",
8585
"fix:refcache": "npm run _refcache:prune; npm run check:links",
8686
"fix:submodule": "npm run pin:submodule",

static/refcache.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,10 @@
17591759
"StatusCode": 206,
17601760
"LastSeen": "2025-11-15T09:38:59.707307006Z"
17611761
},
1762+
"https://docs.github.com/en/contributing/style-guide-and-content-model/style-guide#alerts": {
1763+
"StatusCode": 206,
1764+
"LastSeen": "2025-11-26T17:51:15.834945-05:00"
1765+
},
17621766
"https://docs.github.com/en/get-started/learning-about-github/github-glossary#pull-request": {
17631767
"StatusCode": 206,
17641768
"LastSeen": "2025-11-21T09:40:42.11255134Z"
@@ -12619,6 +12623,10 @@
1261912623
"StatusCode": 206,
1262012624
"LastSeen": "2025-11-17T14:57:41.126995104Z"
1262112625
},
12626+
"https://github.com/open-telemetry/opentelemetry.io/blob/main/.markdownlint-cli2.yaml": {
12627+
"StatusCode": 206,
12628+
"LastSeen": "2025-11-26T17:51:17.325572-05:00"
12629+
},
1262212630
"https://github.com/open-telemetry/opentelemetry.io/blob/main/.markdownlint.yaml": {
1262312631
"StatusCode": 206,
1262412632
"LastSeen": "2025-11-20T09:40:48.538191812Z"
@@ -14651,6 +14659,10 @@
1465114659
"StatusCode": 206,
1465214660
"LastSeen": "2025-11-18T09:47:56.758345602Z"
1465314661
},
14662+
"https://github.github.com/gfm/": {
14663+
"StatusCode": 206,
14664+
"LastSeen": "2025-11-26T17:51:14.400324-05:00"
14665+
},
1465414666
"https://gitlab.com": {
1465514667
"StatusCode": 206,
1465614668
"LastSeen": "2025-11-18T09:44:51.977083492Z"
@@ -14755,6 +14767,10 @@
1475514767
"StatusCode": 206,
1475614768
"LastSeen": "2025-11-14T09:41:08.91819301Z"
1475714769
},
14770+
"https://gohugo.io/configuration/markup/#goldmark": {
14771+
"StatusCode": 206,
14772+
"LastSeen": "2025-11-26T17:51:14.205176-05:00"
14773+
},
1475814774
"https://gohugo.io/content-management/front-matter/": {
1475914775
"StatusCode": 206,
1476014776
"LastSeen": "2025-11-24T00:03:50.700120752Z"
@@ -14771,6 +14787,10 @@
1477114787
"StatusCode": 206,
1477214788
"LastSeen": "2025-11-21T09:40:39.773052521Z"
1477314789
},
14790+
"https://gohugo.io/quick-reference/emojis/": {
14791+
"StatusCode": 206,
14792+
"LastSeen": "2025-11-26T17:51:16.784399-05:00"
14793+
},
1477414794
"https://google.aip.dev/122#full-resource-names": {
1477514795
"StatusCode": 206,
1477614796
"LastSeen": "2025-11-16T09:42:34.40017975Z"

0 commit comments

Comments
 (0)