docs: replace node-markdown-spellcheck with cspell#2015
Conversation
✅ Deploy Preview for cert-manager ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Friendly ping — would appreciate a review when anyone has a chance. Happy to address any feedback. Thanks! |
|
@hawksight, friendly ping. Could I please get a review on this PR? Thank you! |
|
Hey @IstvanCsVarga thanks for taking the time upgrade this component. Front end isn't my forte, so let me verify I can run this locally with the same results as well just for some added confidence. I'll do my best to review it this week. |
hawksight
left a comment
There was a problem hiding this comment.
Could you also update the readme to reflect the change please?
I ran make check locally and everything seemed to work well.
There was one other release-note change in content/docs/releases/release-notes/release-notes-1.0.md, it seemed fine to change, but also in line with excluding of docs versions, perhaps the release note should be excluded too?
Updated the README to reference cspell. |
61f8c8c to
36abba5
Compare
hawksight
left a comment
There was a problem hiding this comment.
/lgtm
Thanks you for making those changes. I think this looks good.
I would like to get another maintainer just to check the change too. I'll see if I can find one with 10 minutes who isn't at kubecon!
|
It looks like (unfortunately) a new page was added after this was raised, and the new spell checker correctly flags several issues on it: https://github.com/cert-manager/website/actions/runs/23504004282/job/68544921205?pr=2015#step:5:33 |
There was a problem hiding this comment.
Pull request overview
This PR replaces the unmaintained markdown-spellcheck/mdspell workflow with cspell, adds repository spellchecking configuration, updates the project dictionary for cspell, fixes several documentation typos, and promotes lodash to a direct dependency (used by site code).
Changes:
- Replace
mdspellwithcspellforcheck:spellingand addcspell.jsonconfiguration. - Extend
.spellingto serve as acspellcustom dictionary and apply typo fixes across docs. - Add
lodashas a direct dependency (used inlib/serialize.js).
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Switch check:spelling to cspell, add cspell, add lodash, remove markdown-spellcheck. |
| package-lock.json | Lockfile updates for cspell and dependency graph changes; lodash becomes non-dev. |
| cspell.json | New cspell configuration: locale, ignore paths, regex ignores, dictionary definition. |
| .spelling | Expanded allowlist to be used as a cspell dictionary. |
| README.md | Update contributor docs to reference cspell instead of mdspell. |
| content/docs/usage/certificaterequest.md | Fix typo (“namespaced”). |
| content/docs/usage/certificate.md | Fix typo (“overwritten”). |
| content/docs/tutorials/zerossl/zerossl.md | Fix typo (“credentials”). |
| content/docs/tutorials/acme/dns-validation.md | Fix typo (“tutorials”). |
| content/docs/releases/release-notes/release-notes-1.4.md | Fix typo (“conversion”). |
| content/docs/releases/release-notes/release-notes-1.0.md | Fix typo (“clouddns-account”). |
| content/docs/faq/README.md | Fix typo (“CertificateRequest”). |
| content/docs/devops-tips/backup.md | Fix typo (“cert-manager”). |
| content/docs/contributing/e2e.md | Fix typo (“contributing”). |
| content/docs/contributing/crds.md | Fix typo (“definitions”). |
| content/docs/configuration/venafi.md | Fix typo (“Environment”). |
| content/docs/configuration/acme/dns01/azuredns.md | Fix typo (“identities”). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replace the unmaintained markdown-spellcheck (mdspell) package with cspell, an actively maintained spell checker. The old tool has not been updated in over 6 years and is generating security alerts. Changes: - Swap markdown-spellcheck for cspell in devDependencies - Add cspell.json configuration with US English locale - Ignore historical versioned docs (content/v*-docs/**) - Ignore auto-generated API reference docs - Extend .spelling dictionary for cspell compatibility - Fix 14 genuine typos in current docs caught by cspell Closes cert-manager#1985 Signed-off-by: Istvan Csaba Varga <istvan.csaba.varga@accenture.com>
lodash/cloneDeep is used in lib/serialize.js but was previously only available as a transitive dependency of markdown-spellcheck. Adding it as a direct dependency so the build succeeds after the spellcheck tool swap. Signed-off-by: Istvan Csaba Varga <istvan.csaba.varga@accenture.com>
Signed-off-by: Istvan Csaba Varga <istvan.csaba.varga@accenture.com>
The release note documents a deprecation of the misspelled util.UsageContentCommittment in favor of util.UsageContentCommitment. The misspelling must be preserved as it refers to the actual config option name. Add Committment to the spelling allowlist instead. Signed-off-by: Istvan Csaba Varga <istvan.csaba.varga@accenture.com>
Add --no-must-find-files to cspell command so html globs do not cause failures when no html files are present. Add dictionary words for the newly added contribfest-kubecon-eu-2026 pages. Signed-off-by: Istvan Csaba Varga <istvan.csaba.varga@accenture.com>
267b23a to
e69388b
Compare
|
Rebased on latest master and addressed both comments:
All checks and full build pass locally with Node 20. |
hawksight
left a comment
There was a problem hiding this comment.
/lgtm
@SgtCoDFish looks like @IstvanCsVarga has resolved all those already. Nice work Istvan!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawksight The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Replaces the unmaintained node-markdown-spellcheck (mdspell) with cspell, an actively maintained spell checker. The old tool has not been updated in 6+ years and is generating security alerts (#1985).
Notes
Closes #1985