Skip to content

Commit

Permalink
maintenance(docs): Add retext-spell to check spelling (#24372)
Browse files Browse the repository at this point in the history
* try to get spelling to work

* more stuff

* try again

* this was a mustako

* this was a mistake

* make a dictionary

* revert old docs

* updated dictionary

* fix some spelling errors

* fix some spelling errors

* update dictionary

* fix some more typos

* more stuff

* more stuff

* more stuff

* more stuff

* go through entire list

* michals name

* update script

* fix yaml

* fix API

* no-brainer

* SaaS

* CSS

* ssl and ssr

* more stuff

* weird stuff

* fix some graphql inconsistencies

* css-in-js

* misc

* deduplicate

* get rid of apostrophes

* get rid of apostrophes

* whoops

* netlify

* more american english

* Capitalize SCSS

* add retext-emoji and fix new things

* add remaining words/names to the dictionary

* fix some brand names

* some more fixes

* some more fixes

* make more things consistent

* make more things consistent

* fixes

* nodejs

* nodejs

* traceID

* more consistency stuff

* more consistency stuff

* WebPagetest

* more stuff

* lkjasdfjlkj

* lkjasdfjlkj

* more stuff

* fix

* update yarn.lock

* whoops

* fix llint

Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>
  • Loading branch information
tesseralis and Aisha Blake committed Jun 24, 2020
1 parent 8365a6d commit 9b3faa2
Show file tree
Hide file tree
Showing 181 changed files with 2,640 additions and 309 deletions.
12 changes: 11 additions & 1 deletion .remarkrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
const fs = require("fs")
const unified = require("unified")

const dictionary = fs.readFileSync("./dictionary.txt")

module.exports = {
plugins: [
["remark-frontmatter", "yaml"],
[
"remark-retext",
unified()
.use(require("retext-english"))
.use(require("retext-syntax-urls"))
.use(require("retext-syntax-mentions"))
.use(require("retext-emoji"))
.use(require("retext-spell"), {
dictionary: require("dictionary-en"),
personal: dictionary,
})
.use(require("retext-diacritics"))
.use(require("retext-indefinite-article"))
.use(require("retext-redundant-acronyms"))
Expand Down Expand Up @@ -45,6 +55,6 @@ module.exports = {
["remark-lint-no-shortcut-reference-link", false],
// We use brackets in a lot of places as argument lists and do not want to escape them.
["remark-lint-no-undefined-references", false],
["remark-lint-first-heading-level", 2]
["remark-lint-first-heading-level", 2],
],
}
Loading

0 comments on commit 9b3faa2

Please sign in to comment.