Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
33c10e7
docs: rewrite and restructure the documentation
ovflowd Oct 27, 2026
3261124
feat(www): redesign doc-kit.nodejs.org
ovflowd Oct 27, 2026
a404412
fix(react): replay the press that hydrates an island
ovflowd Oct 27, 2026
7a853ec
refactor(www): skip comments instead of stripping them when inlining …
ovflowd Oct 27, 2026
0bdd6bb
refactor(react): keep the press events with the other UI constants
ovflowd Oct 27, 2026
6835ddf
chore(www): make the site its own workspace package
ovflowd Oct 27, 2026
4c571b6
chore(www): add the source of the social preview image
ovflowd Oct 27, 2026
b76d1bc
feat(www): make the benchmarks reproducible
ovflowd Oct 27, 2026
b7992df
docs: give every generator its own page again
ovflowd Oct 27, 2026
42d666a
feat(www): write the home page in MDX on doc-kit's own code blocks
ovflowd Oct 27, 2026
32fef69
docs: link to one place instead of repeating it
ovflowd Oct 29, 2026
16c9eda
fix(react): scope the heading layout and mark the selected code tab
ovflowd Oct 29, 2026
965c875
refactor(www): drop the workarounds doc-kit no longer needs
ovflowd Oct 29, 2026
cc27b62
feat(www): build the all page and take more from the configuration
ovflowd Oct 29, 2026
81e70af
docs(react): shorten the comment on held presses
ovflowd Oct 29, 2026
a2ff6b2
refactor: move the benchmark to scripts/ and slim it down
ovflowd Oct 29, 2026
22bce64
docs: make the diagrams self-contained and play them once
ovflowd Oct 29, 2026
ea0b9f9
feat(www): draw the home page's animations as SVGs
ovflowd Oct 29, 2026
22c3b2c
refactor(www): keep the home page's main landmark on a div
ovflowd Oct 29, 2026
b968eab
feat(www): polish Kit's head
ovflowd Oct 29, 2026
607ac4e
chore(www): format the social card's source
ovflowd Oct 29, 2026
70fc4db
fix(www): bring back the site and search previews
ovflowd Oct 29, 2026
0bf2a4e
docs: format the guides with oxfmt 0.74
ovflowd Nov 6, 2026
a713a85
fix(react): replay the press that starts an island loading
ovflowd Nov 6, 2026
caa2360
docs: measure the benchmarks again now that #1179 has landed
ovflowd Nov 6, 2026
66d05c4
test: add versioned pageURL tests for canonical function
bmuenzenmeyer Nov 7, 2026
e487647
fix(react): link the release line and the index's directory as canonical
ovflowd Nov 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(www): draw the home page's animations as SVGs
The hero and the pipeline are exported SVGs now, with a narrower drawing
of each for phones, and the canvas engine that drew them at runtime, with
its two islands, is gone. They're drawn from the same build simulation
and layout the canvas used, so they show the same run, and like the
guides' diagrams they carry their own styles and fonts and follow the
color scheme.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
  • Loading branch information
ovflowd committed Nov 17, 2026
commit ea0b9f9a900db7f74247000724d80cc8f320cbae
54 changes: 17 additions & 37 deletions www/doc-kit.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ const guideItems = [
{ label: 'Creating generators', link: '/creating-generators' },
];

// The home page's animations. They hydrate on the client, so they must be
// listed in `components` for doc-kit to register their islands.
const ISLANDS = {
HeroFlow: 'components/HeroFlow.jsx',
PipelineFlow: 'components/PipelineFlow.jsx',
};

// The components `www/pages/index.mdx` lays out its sections with: every
// export of these modules
const HOME = Object.fromEntries(
Expand All @@ -82,37 +75,24 @@ const HOME = Object.fromEntries(
])
);

const componentAliases = {
...Object.fromEntries(
Object.entries(ISLANDS).map(([name, file]) => [
`#theme/${name}`,
join(THEME, file),
])
),
...Object.fromEntries(
Object.keys(HOME).map(file => [
`#theme/${file.replace(/\.jsx$/, '')}`,
join(THEME, file),
])
),
};
const componentAliases = Object.fromEntries(
Object.keys(HOME).map(file => [
`#theme/${file.replace(/\.jsx$/, '')}`,
join(THEME, file),
])
);

const components = {
...Object.fromEntries(
Object.keys(ISLANDS).map(name => [name, `#theme/${name}`])
),
...Object.fromEntries(
Object.entries(HOME).flatMap(([file, names]) =>
names.map(name => [
name,
{
source: `#theme/${file.replace(/\.jsx$/, '')}`,
isDefaultExport: false,
},
])
)
),
};
const components = Object.fromEntries(
Object.entries(HOME).flatMap(([file, names]) =>
names.map(name => [
name,
{
source: `#theme/${file.replace(/\.jsx$/, '')}`,
isDefaultExport: false,
},
])
)
);

// Build-time facts for the theme, as the `#theme/site` module
const site = {
Expand Down
232 changes: 232 additions & 0 deletions www/public/home/hero-narrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
242 changes: 242 additions & 0 deletions www/public/home/hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
800 changes: 800 additions & 0 deletions www/public/home/pipeline-narrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
800 changes: 800 additions & 0 deletions www/public/home/pipeline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading