Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions styles/Canonical/000-US-spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends: spelling
message: "The word '%s' seems to be misspelled."
level: error
scope:
- summary
- sentence
- list
- table.header
- table.cell
Expand All @@ -12,5 +12,4 @@ dictionaries:
- en_US
# - en_GB
filters:
- '\.\. (code-block|code|sourcecode)::.*(\n {3,}:\w+:( .+)?\n)*(\n {3,}.*|\n)*(\n^\S)'
- ^```[^\n\{\}]*\n(([^\n`].*\n|\n))*```
- '\w*_+\w*'
2 changes: 1 addition & 1 deletion styles/Canonical/004-Canonical-product-names.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ link: https://docs.ubuntu.com/styleguide/en/#other-canonical-products
ignorecase: true
level: error
scope:
- summary & ~blockquote
- sentence & ~blockquote
- list
- heading
- table.header
Expand Down
11 changes: 7 additions & 4 deletions vale.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
StylesPath = styles
MinAlertLevel = warning
Vocab = Canonical
IgnoredScopes =
IgnoredClasses = woke-ignore, vale-ignore

[*.{md,txt,rst,html}]

[*.{md,txt,html}]
BasedOnStyles = Canonical

# this enumerates all of the current rules with their suggested
Expand Down Expand Up @@ -48,5 +46,10 @@ TokenIgnores = (:program:`.+?`), (:literal:`.+?`), (:kbd:`.+?`), (:math:`.+?`),
TokenIgnores = (:token:`.+?`), (:regexp:`.+?`), (:command:`.+?`), (:option:`.+?`), (:envvar:`.+?`)
TokenIgnores = (:vale-ignore:`.+?`), (:woke-ignore:`.+?`)

# Directive names
TokenIgnores = (.. \w+::)
# Directive options
TokenIgnores = (:\w+: \w+), (:\w+:)

# links defined elsewhere
TokenIgnores = (\`\w+\`_)
TokenIgnores = (\`\w+\`_)