Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance(docs): Add retext-spell to check spelling #24372

Merged
merged 67 commits into from
Jun 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
d383058
try to get spelling to work
tesseralis May 19, 2020
f51d289
more stuff
tesseralis May 19, 2020
4ac7276
try again
tesseralis May 19, 2020
5050756
this was a mustako
tesseralis May 19, 2020
18f1340
Merge branch 'master' into retext-spell
tesseralis May 22, 2020
d10b463
this was a mistake
tesseralis May 22, 2020
cda72c8
make a dictionary
tesseralis May 22, 2020
c9a646d
revert old docs
tesseralis May 22, 2020
eacb23a
updated dictionary
tesseralis May 22, 2020
c0eeb79
fix some spelling errors
tesseralis May 23, 2020
bcf5f75
fix some spelling errors
tesseralis May 23, 2020
be592f5
update dictionary
tesseralis May 23, 2020
c300735
fix some more typos
tesseralis May 23, 2020
abdd873
more stuff
tesseralis May 23, 2020
bbc9ebe
more stuff
tesseralis May 23, 2020
89e8649
more stuff
tesseralis May 23, 2020
86e386f
more stuff
tesseralis May 23, 2020
f888095
go through entire list
tesseralis May 23, 2020
c663e1d
michals name
tesseralis May 23, 2020
2b8928f
update script
tesseralis May 23, 2020
97dd4a9
fix yaml
tesseralis May 23, 2020
8782d13
fix API
tesseralis May 23, 2020
233a735
no-brainer
tesseralis May 23, 2020
43ad81c
SaaS
tesseralis May 23, 2020
7ad4d94
CSS
tesseralis May 23, 2020
ea343a4
ssl and ssr
tesseralis May 23, 2020
3f588e5
more stuff
tesseralis May 23, 2020
23e877d
weird stuff
tesseralis May 23, 2020
6e7f81c
fix some graphql inconsistencies
tesseralis May 23, 2020
4e04c86
css-in-js
tesseralis May 23, 2020
0b75916
misc
tesseralis May 23, 2020
7499ad8
deduplicate
tesseralis May 23, 2020
3d4322e
get rid of apostrophes
tesseralis May 23, 2020
919dba4
get rid of apostrophes
tesseralis May 23, 2020
bff9635
whoops
tesseralis May 23, 2020
c917de8
netlify
tesseralis May 23, 2020
e888831
more american english
tesseralis May 23, 2020
4e743a4
Capitalize SCSS
May 23, 2020
b9ad9fd
Merge branch 'master' into retext-spell
tesseralis Jun 14, 2020
81a5cb0
add retext-emoji and fix new things
tesseralis Jun 14, 2020
7c84aeb
Merge branch 'retext-spell' of https://github.com/gatsbyjs/gatsby int…
tesseralis Jun 14, 2020
2388195
add remaining words/names to the dictionary
tesseralis Jun 14, 2020
c8954a3
fix some brand names
tesseralis Jun 14, 2020
8e0cf98
some more fixes
tesseralis Jun 14, 2020
4412a9d
some more fixes
tesseralis Jun 14, 2020
1e545ed
make more things consistent
tesseralis Jun 14, 2020
b444f05
make more things consistent
tesseralis Jun 14, 2020
50ce12a
fixes
tesseralis Jun 14, 2020
c4946fa
nodejs
tesseralis Jun 14, 2020
1c4defc
nodejs
tesseralis Jun 14, 2020
af03ef0
traceID
tesseralis Jun 14, 2020
652e31c
more consistency stuff
tesseralis Jun 14, 2020
fb04496
more consistency stuff
tesseralis Jun 14, 2020
73e7d77
WebPagetest
tesseralis Jun 14, 2020
5c64896
more stuff
tesseralis Jun 14, 2020
81741e3
lkjasdfjlkj
tesseralis Jun 14, 2020
17bc5b0
lkjasdfjlkj
tesseralis Jun 14, 2020
17c1fa9
more stuff
tesseralis Jun 14, 2020
4d00c3b
Merge branch 'master' into retext-spell
tesseralis Jun 15, 2020
99c2756
fix
tesseralis Jun 15, 2020
be2286e
Merge branch 'master' into retext-spell
tesseralis Jun 16, 2020
01c0431
update yarn.lock
tesseralis Jun 16, 2020
17b4ca4
Merge branch 'master' into retext-spell
tesseralis Jun 18, 2020
1c0859a
whoops
tesseralis Jun 18, 2020
1903922
Merge branch 'master' into retext-spell
tesseralis Jun 22, 2020
66eea74
Merge branch 'master' into retext-spell
tesseralis Jun 22, 2020
47d7f67
fix llint
tesseralis Jun 22, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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