Skip to content

Commit 9274b3e

Browse files
committed
vale, shortcodes migration
1 parent 9e40a2d commit 9274b3e

File tree

18 files changed

+83
-1094
lines changed

18 files changed

+83
-1094
lines changed

.vale.ini

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
StylesPath = styles
22
MinAlertLevel = error # suggestion, warning, error
3-
Packages = Microsoft, write-good
3+
Packages = Microsoft, write-good, Hugo
44
Vocab = milo-docs
55

66
[*.{md,txt}]
77
BasedOnStyles = Vale, Microsoft, write-good
88

9-
10-
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
11-
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
12-
(\[.+\]\({{< .+ >}}\)), \
13-
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
14-
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s
15-
16-
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
17-
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
18-
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
19-
20-
# Ignore = myshortcode, repo, config, Algolia
9+
# Blockignores =

exampleSite/.vale.ini

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
StylesPath = styles
22
MinAlertLevel = error # suggestion, warning, error
3-
Packages = Microsoft, write-good
3+
Packages = Microsoft, write-good, Hugo
44
Vocab = milo-docs
55

66
[*.{md,txt}]
77
BasedOnStyles = Vale, Microsoft, write-good
88

9-
10-
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
11-
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
12-
(\[.+\]\({{< .+ >}}\)), \
13-
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
14-
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s
15-
16-
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
17-
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
18-
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
19-
20-
# Ignore = myshortcode, repo, config, Algolia
9+
# Blockignores =
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[*.md]
2+
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
3+
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
4+
(\[.+\]\({{< .+ >}}\)), \
5+
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
6+
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s
7+
8+
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
9+
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
10+
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})

exampleSite/styles/Microsoft/Quotes 2.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

exampleSite/styles/Microsoft/Terms 2.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

exampleSite/styles/Microsoft/URLFormat 2.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

exampleSite/styles/Microsoft/Units 2.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

exampleSite/styles/config/vocabularies/milo-docs/accept.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ Algolia
1515
Vercel
1616
AWS
1717
GCP
18-
JSON
19-
HTML
20-
html
21-
(?i)golang
18+
Pinecone
19+
(?i)json
20+
(?i)html
21+
(?i)golang
22+
(?i)baseof
23+
(?i)js
24+
(?i)yaml
25+
(?i)toml
26+
(?i)css

0 commit comments

Comments
 (0)