Repository navigation
docs(site): redesign the docs site and demo pages - #742
Merged
Merged
Conversation
Add a DemoPage layout (game with fullscreen and focus, a controls card, a short 'how it works' list linked to the code, and a code explorer with an always-visible, grouped file tree), use it for the car demo, and trim the car demo's source comments. Share the back link and fullscreen button with the existing Demo component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Label each file's type (setup, component, system, shader) with a colored icon, a filter chip and a badge on the open file, add a file-name search, and remove the empty space under the game by keeping the game and its sidebar the same height and moving the docs links into the header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Break the demo page into DemoHeader, DemoGame, DemoPanel, DemoControls, DemoHighlights, DemoLegend and CodeExplorer, take each page's title and summary from the demo catalogue, add a panels slot and mouse/gamepad inputs, and describe the new page in the add-feature-demo skill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…os to DemoPage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Move the game, ECS and state demos to DemoPage, delete Demo and its code selector, key and interaction components, tighten the catalogue descriptions that are now each page's summary, and replace the nine-slice legend with highlights that say which panel is which. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Replace the text demo's stacked showcase sections, most of which were below the visible canvas, with one block of text whose wrap column and anchor line are drawn, and a tidy settings panel built from new reusable DemoSlider, DemoToggle, DemoChoice and DemoTextField controls. Show Enter and Space as key symbols, size the controls' key column to its keys, clarify the visibility demo's controls, and cap the game at 3:2 so a tall sidebar scrolls instead of squeezing the canvas. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Remove the text and ui-anchors React settings panels from their code explorers, make DemoPage reject .tsx/.jsx files, and document the rule in AGENTS.md and the add-feature-demo skill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Self-host Exo 2, Inter and JetBrains Mono, retheme the site around a navy gradient with a brighter teal and amber accents, keep the navbar navy in both themes, and rebuild the homepage with a hero, a 'What Forge is' grid of the engine's modules with line icons, and featured demos. Restyle the demo catalogue cards, search and landing pages to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…e grid Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…mple Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…he homepage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…age-4156mb' of github.com:Forge-Game-Engine/Forge into claude/quirky-babbage-4156mb
Put the hero text and a framed, looping gameplay clip of Galactic Journey side by side on desktop (stacked on phones), in WebM and MP4, replacing the blurred 25 MB background video with two ~1.1 MB clips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…to claude/quirky-babbage-4156mb # Conflicts: # documentation-site/src/pages/index.tsx
Replace the pastel category illustrations with the homepage's teal line icons on a tinted tile, show each category's demo count, tighten the category descriptions, and share ModuleIcon between the homepage and the demo catalogue. Update AGENTS.md to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Replace the scripted 8.5-second clip with a 60-second recording of real play, at its native 852x480 with the audio stripped (2.4 MB WebM, 3.6 MB MP4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
…exture Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This restyles the whole docs site in the Forge brand and moves every demo page to one new layout,
DemoPage.Site look and feel
@fontsource. Exo 2 for headings, Inter for body text, and JetBrains Mono for code and small letter-spaced labels.npm installcommand.Demo pages
src/data/demos.ts.DemoPagethrows if a.tsx/.jsxfile is listed.documentation-site/src/components/demo-page/holds the parts above, plus theDemoSlider,DemoToggle,DemoChoiceandDemoTextFieldsetting controls.DemoPage, and the oldDemocomponent and its helpers are deleted.AGENTS.mdand theadd-feature-demoskill describeDemoPage.Follow-ups, not in this PR
KeyboardInputSourcelistens on the whole page and never callspreventDefault. Scoping it to the game's container is an engine API change.Related issue(s)
None.
Verification checklist
npm run check-typespasses with 0 errorsnpm testpasses (not run; no/srcchanges)npm run lintpasses with 0 errorsnpm run cspellpasses with 0 errorsnpm run check-exportspasses (not run; no/srcchanges)index.ts(no engine API changes)/documentation-site/docs/docsis updated if this change affects documented behavior (no engine behavior changed)documentation-site:npm run typecheckandnpm run buildpass. The build fails on broken links, so every module anddocLinksroute resolves.Changelog
docschange.🤖 Generated with Claude Code
https://claude.ai/code/session_01TJaAau36yMnVzEdEhG6VpB