Skip to content

Commit a829028

Browse files
committed
add retext-spelling
1 parent 085b5e2 commit a829028

File tree

8 files changed

+217
-6
lines changed

8 files changed

+217
-6
lines changed

.remarkrc.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import retext from "remark-retext"
22
import { Parser } from "retext-english"
3+
import dictionary from "dictionary-en"
4+
import {readFileSync} from 'node:fs'
35
export default {
46
plugins: [
57
"remark-lint",
@@ -20,5 +22,9 @@ export default {
2022
[retext, Parser],
2123
"retext-indefinite-article",
2224
["retext-readability", { threshold: 6 / 7 }],
25+
["retext-spell", {
26+
dictionary,
27+
ignore: readFileSync('.spelling', 'utf-8').split('\n').filter(l => !l.startsWith('#'))
28+
}],
2329
],
2430
}

.spelling

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,15 @@ templating
126126
TootEmbedElement
127127
web.dev
128128
Vue
129+
JSON
130+
DOM
131+
cancelable
132+
instantiation
133+
enddemo
134+
endtip
135+
V0
136+
ES6
137+
V1
138+
localhost:8080
139+
UI
140+
http

learn/components/autonomous-vs-customized-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ into issues with code that isn't expecting to see the newly added logic.
115115

116116
_Customized Built-ins_ have very good accessibility information built right into them. Most have an _implicit role_
117117
which means that assistive technologies know how to interpret them. For example using a _screen reader_, it is possible
118-
to navigate through all of the headings in a webpage, and the purpose of form controls is explained as each one is
118+
to navigate through all of the headings in a web page, and the purpose of form controls is explained as each one is
119119
focused (e.g. buttons are read out not only by their label but also referred to as "buttons").
120120

121121
_Autonomous Custom Elements_, on the other hand, do not have any accessibility information built into them. Assistive

learn/components/rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ supports _partials_ or some other system to avoid manually repeating this each t
107107

108108
{% endtip %}
109109

110-
### Advanced: Adding _declarative ShadowDOM_ fallbacks
110+
### Advanced: Adding _declarative ShadowDOM_ fallback
111111

112112
Given that a _declarative ShadowDOM_ might not always be available, it can be a good idea to fall back to defining it in
113113
JavaScript instead. You can do this by checking if `.shadowRoot` is not null before calling

learn/set-up-your-environment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ To test your applications, it can be useful to install all four browsers. Runnin
1818
browsers can uncover cross browser bugs, or missing features. Getting comfortable with using the devtools in each is a
1919
good idea.
2020

21-
### Web Browser Devtools
21+
### Web Browser devtools
2222

2323
A good set of browser developer tools which will enable you to inspect your web applications under the hood and see how
2424
it all operates. They can be quite intimidating at first, but there are some great resources out there to learn how to
2525
make the most of them.
2626

27-
If you're using Google Chrome, check out the [Chrome Developers documentation on the Chrome Devtools][chrome-devtools].
27+
If you're using Google Chrome, check out the [Chrome Developers documentation on the Chrome devtools][chrome-devtools].
2828
It's a great resource for learning exactly how the developer tools inside Google Chrome work. Mozilla has a similar
2929
[guide on Firefox Developer Tools][firefox-devtools]. Microsoft have a smaller but still useful [guide on the Edge
3030
developer tools][edge-devtools]. Apple's Safari has a useful [five minute walk through of their Web
@@ -46,7 +46,7 @@ While the built-in web developer tools offer excellent features that make it eas
4646
some extra functionality you can make use of some excellent browser extensions which add even more tools to help develop
4747
Web Components:
4848

49-
- [Web Component DevTools by Matsuuu][matsuu]
49+
- [Web Component devtools by Matsuuu][matsuu]
5050

5151
## Development Environment
5252

package-lock.json

Lines changed: 191 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"construct-style-sheets-polyfill": "^3.1.0",
4949
"cssnano": "5.1.14",
5050
"dedent": "^0.7.0",
51+
"dictionary-en": "^3.2.0",
5152
"eleventy-postcss-extension": "1.0.0",
5253
"eslint-plugin-custom-elements": "^0.0.7",
5354
"glob": "^8.0.3",
@@ -76,6 +77,7 @@
7677
"retext-english": "^4.1.0",
7778
"retext-indefinite-article": "^4.2.0",
7879
"retext-readability": "^7.2.0",
80+
"retext-spell": "^5.3.0",
7981
"stylelint": "^14.16.0",
8082
"stylelint-config-standard": "^29.0.0"
8183
}

tutorials/mastodon-toot-embed/rendering-the-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ class TootEmbedElement extends HTMLElement {
148148
TootEmbedElement.define()
149149
```
150150

151-
![A browser screenshot showing the toot-embed component at it's current stage. The example page reads: "Here's an example toot: " followed by a display of the Mastodon toot data including the avatar image, display name, and toot content. The component has been given some rudamentary layouting.](/images/tutorials/mastodon-toot-embed/fig4.png)
151+
![A browser screenshot showing the toot-embed component at it's current stage. The example page reads: "Here's an example toot: " followed by a display of the Mastodon toot data including the avatar image, display name, and toot content. The component has been given a rudimentary layout.](/images/tutorials/mastodon-toot-embed/fig4.png)
152152

153153
In the next chapter, we will add styling to the component to make it look even better.

0 commit comments

Comments
 (0)