Repository navigation
Commit 7316ecd
committed
Website audit: fix factual inaccuracies, relocate Too Many Cooks, add dart_node_sql_js (#63)
## TLDR
Hard audit of the docs website: stubs out the relocated Too Many Cooks,
fixes factual inaccuracies (publisher, GitHub casing, social handle,
stale versions, broken links, wrong API code examples), surfaces the
published `dart_node_sql_js`, and repairs SEO/social metadata.
## What Was Added?
- **`dart_node_sql_js`** surfaced everywhere it was missing: homepage
stack card (en/zh), homepage `ItemList` schema, docs nav (en/zh), API
index (en/zh), a generated docs page, and a new Chinese README
(`packages/dart_node_sql_js/README_zh.md`). Added to the docs-generation
and API-generation pipelines.
- **`og-image.png` (1200×630)** and **`apple-touch-icon.png` (180×180)**
— the social-card/JSON-LD image and apple-touch-icon were referenced
everywhere but the files did not exist (404). Generated branded assets.
- **nimblesite.co** copyright link in the footer.
## What Was Changed or Deleted?
- **Too Many Cooks** moved to https://tmc-mcp.dev: homepage cards
(en/zh) and the MCP & vsix READMEs now point there and state it is no
longer part of this repo. Removed from the homepage package `ItemList`
(it is not a `dart_node` package).
- **Factual corrections (sitewide):** pub.dev publisher `dartnode.dev` →
`christianfindlay.com` (verified); GitHub casing → `MelbourneDeveloper`;
X/Twitter `@dart_node` → `@cfdevelop` (the real, active handle).
- **Unpublished packages** (`dart_jsx`, `dart_node_vsix`, both
`publish_to: none`) no longer link to 404 pub.dev pages — they link to
GitHub source. The docs-generator does this automatically for any
unpublished package.
- **Broken links:** footer `/docs/examples/` (no such page) → GitHub
examples; **125 broken `/api/../…` dartdoc cross-links** fixed by
collapsing the full leading `../` run in the API link rewriter.
- **Stale versions:** install snippets `^0.11.0-beta` → `^0.13.0-beta`
(latest published); wrong `nadz: ^0.9.0` → `^0.0.7-beta` (actual
constraint).
- **Code examples** in package READMEs/blog corrected to the real
package APIs (react `text()`→string / `p()`→`pEl` /
`Document.getElementById` / `button(text:)`; react_native
`image()`→`rnImage`, `flatList` signature, `ScreenProps`; express
`req.params` access + `dart:js_interop_unsafe` import + router mount;
mcp full 5-field `ToolConfig`; better_sqlite3 `Result` handling; logging
`LogFunction` transport signature).
- **dart-to-js doc:** `-O1` is the dart2js default (was wrongly `-O2`),
removed a reference to a nonexistent build tool, fixed the `--dump-info`
reference.
- Removed a phantom `SearchAction` from the WebSite JSON-LD (no
`/search` route exists); shortened an over-long (67-char) blog
`<title>`.
- Upgraded `eleventy-plugin-techdoc` 0.1.0 → 0.2.0 and `@11ty/eleventy`
→ 3.1.6, and audited the upgraded output.
## How Do The Automated Tests Prove It Works?
- `npm run build` completes with **0 warnings / 0 errors** across all 10
packages' dartdoc + Eleventy (2424 pages), including the newly-added
`dart_node_sql_js` API docs.
- A full internal-link crawl of the generated `_site` dropped broken
targets from **177 → 52**; every remaining target is pre-existing (see
below), and a string sweep confirms **0** occurrences of the old
publisher / GitHub casing / `@dart_node` / `/docs/examples` /
`too_many_cooks` package links.
- Each code-example change was reviewed in the git diff against the
actual package `lib/` (and `test/`/`example/`) — e.g. `flatList(JSArray
data, JSFunction renderItem, props:)`, `ToolConfig` 5-field record
matching `runtime_test.dart`, `LogFunction = void Function(LogMessage,
LogLevel)` matching `log_to_console.dart`.
- Playwright (1280×720 and 375×667): homepage, `/docs/react/`,
`/docs/sql-js/` (en/zh), `/docs/getting-started/` load with **no console
errors**; `og-image.png`/`apple-touch-icon.png` return 200.
**Known pre-existing issues (not introduced here, out of scope):** 40
links on the `dart_logging` API landing page (its two-library dartdoc
layout isn't mapped to member pages by the generator), 10
hreflang/language-switcher links to untranslated zh blog pages, and 2
reflux dartdoc self-links.
## Spec / Doc Changes
This PR is primarily docs/website. Package `README.md`/`README_zh.md`
files were edited (they are the source for the generated docs pages); no
library code, pubspecs, or tests were changed.
## Breaking Changes
- [x] None1 parent 7674cac commit 7316ecd
43 files changed
Lines changed: 954 additions & 702 deletions
File tree
- packages
- dart_logging
- dart_node_better_sqlite3
- dart_node_core
- dart_node_express
- dart_node_mcp
- dart_node_react_native
- dart_node_react
- dart_node_sql_js
- dart_node_vsix
- dart_node_ws
- reflux
- website
- scripts
- src
- _data
- _includes/layouts
- assets/images
- blog
- docs
- zh
- api
- blog
- docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
100 | 109 | | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
112 | 125 | | |
113 | 126 | | |
114 | 127 | | |
| |||
124 | 137 | | |
125 | 138 | | |
126 | 139 | | |
127 | | - | |
| 140 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
204 | | - | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
210 | 224 | | |
211 | 225 | | |
212 | 226 | | |
213 | 227 | | |
214 | 228 | | |
215 | | - | |
| 229 | + | |
216 | 230 | | |
217 | 231 | | |
218 | 232 | | |
| |||
312 | 326 | | |
313 | 327 | | |
314 | 328 | | |
315 | | - | |
| 329 | + | |
316 | 330 | | |
317 | 331 | | |
318 | 332 | | |
| |||
323 | 337 | | |
324 | 338 | | |
325 | 339 | | |
326 | | - | |
| 340 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| |||
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
315 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
316 | 320 | | |
317 | 321 | | |
318 | 322 | | |
| |||
323 | 327 | | |
324 | 328 | | |
325 | 329 | | |
326 | | - | |
| 330 | + | |
0 commit comments