Skip to content

docs(vocab): Clarify multiple vocabulary usage#37

Closed
rpatterson wants to merge 1 commit intovale-cli:masterfrom
rpatterson:docs-claify-multi-vocab
Closed

docs(vocab): Clarify multiple vocabulary usage#37
rpatterson wants to merge 1 commit intovale-cli:masterfrom
rpatterson:docs-claify-multi-vocab

Conversation

@rpatterson
Copy link

A big point of confusion for me getting started with Vale was how to use different vocabularies for code comments than for markup and text. I ended up doing some trial and error to figure out the behavior of the Vocab setting. Hopefully this, or some other clarifying language might save others the same confusion.

This was a big point of confusion for me getting started with Vale.  I ended up doing
some trial and error to figure out the behavior of the `Vocab` setting.  Hopefully this,
or some other clarifying language might save others the same confusion.
@netlify
Copy link

netlify bot commented May 16, 2023

Deploy Preview for eclectic-semifreddo-be083c ready!

Name Link
🔨 Latest commit d5b90bc
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-semifreddo-be083c/deploys/6463415cc18fb00008e32e1c
😎 Deploy Preview https://deploy-preview-37--eclectic-semifreddo-be083c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

rpatterson added a commit to rpatterson/project-structure that referenced this pull request May 16, 2023
Because [Vale treats a script's shebang as a
comment](vale-cli/vale#631 (comment)), our only
options for workarounds are either disabling the rule altogether or adding exceptions
for the words in shebangs.  The latter is preferable because allows us to still use the
rule for the rest of that rule's word list.  [There's only one `Vocab` per
configuration](vale-cli/vale.sh#37 (comment)), however,
so to limit the exception to only code comments and to keep the word in the rule's word
list for markup, use separate Vale configurations for code and markup.
@jdkato
Copy link
Member

jdkato commented Sep 25, 2023

Closing this because my intent is to address the underlying issue: vocabularies should be supported format-specific sections.

vale-cli/vale#688

@jdkato jdkato closed this Sep 25, 2023
@jdkato jdkato mentioned this pull request Sep 25, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants