Using Vale with Hugo - configuration not loading #789
-
Hi everyone, I'm using Vale as part of the tool chain for a new website project using Hugo. I believe I have enabled the Hugo package, my StylesPath = "ci/vale/styles"
MinAlertLevel = suggestion
Packages = alex, proselint, Hugo, techxplorer
Vocab = techxplorer
[*.{md,txt}]
BasedOnStyles = Vale, alex, proselint, techxplorer
Vale.Spelling = NO I've added my own custom package to enable an Australian dictionary. All is working well except text in Hugo shortcodes is being processed by Vale. For example if I call the shortcode like this:
I get the following error from Vale
Any thoughts on what I am doing wrong are greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
What is the output of |
Beta Was this translation helpful? Give feedback.
-
Thanks for such a prompt reply. That's a good question, apologies I should have included that in my question. The output is below: {
"BlockIgnores": {
"*.md": [
"(?sm)^({{[%\u003c] [^{]*? [%\u003e]}})\\n$",
"(?s) *({{\u003c highlight [^\u003e]* ?\u003e}}.*?{{\u003c ?/ ?highlight \u003e}})",
"({{[%\u003c] .+ [%\u003e]}})"
]
},
"Checks": [
"Vale.Spelling",
"Vale.Spelling"
],
"Formats": {},
"Asciidoctor": {},
"FormatToLang": {},
"GBaseStyles": null,
"GChecks": {},
"IgnoredClasses": null,
"IgnoredScopes": null,
"MinAlertLevel": 0,
"Vocab": [
"techxplorer"
],
"RuleToLevel": {},
"SBaseStyles": {
"*.{md,txt}": [
"Vale",
"alex",
"proselint",
"techxplorer"
]
},
"SChecks": {
"*.md": {},
"*.{md,txt}": {
"Vale.Spelling": false
}
},
"SkippedScopes": null,
"Stylesheets": {},
"TokenIgnores": {
"*.md": [
"({{[%\u003c] .* [%\u003e]}}.*?{{[%\u003c] ?/.* [%\u003e]}})",
"(\\[.+\\]\\({{\u003c .+ \u003e}}\\))",
"({{[%\u003c] .+ [%\u003e]}})"
]
},
"WordTemplate": "",
"RootINI": "/Users/techxplorer/websites/project/.vale.ini",
"Paths": [
"/Users/techxplorer/Library/Application Support/vale/styles",
"/Users/techxplorer/websites/project/ci/vale/styles"
],
"ConfigFiles": [
"/Users/techxplorer/websites/project/.vale.ini"
],
"NLPEndpoint": ""
} I've installed Vale version 3.2.2 on my Mac using Homebrew. |
Beta Was this translation helpful? Give feedback.
This should be fixed now.