Add a dark theme, a two level outline and a writing guide - #204
Conversation
- dark token set in goravel.css, following the system setting, with a toggle in the nav bar - dark palette for code highlighting, and code grounds darker than the page - warning and error code lines, callout code, keys and badges use the theme tokens - homepage grid markers follow the real column count - file name headers also accept dotfiles such as .env
- read methods named in a section's text and called in its code, method tables that link to anchors, and one-word headings the section's code calls - a methods attribute on a heading lists exactly those names and always wins - the outline and the Methods list scroll separately, so their titles and the filter stay visible
- prologue/writing-docs in English and Chinese, not listed in the sidebar or search - a fence opened as md demo shows its source and renders it, so an example is written once - CONTRIBUTING.md, AGENTS.md and CLAUDE.md point to the guide, and are kept out of the site build with README.md
- tabs stay on one row that scrolls, and keep the active tab in view - the pane label stays on one line with the file path under it on phones - the rule between the two rows of join cells reaches both screen edges
- the outline lists ## and ### headings, the way the Laravel docs do, at every screen width - remove the method index component, its detection rules, its strings and the methods heading attribute - the outline title stays pinned while a long list scrolls - the writing guide no longer teaches the method index
- the active outline marker sits inside its link, so the link no longer crops it - remove the spacing left under the outline by the old Methods list - scope the Brand styles, which leaked an 8px margin onto the nav brand and kept the nav rule from reaching the sidebar border - align the On this page label with the content - stop Tailwind generating its outline utility, which drew a border on the dropdown list
There was a problem hiding this comment.
Claude has supported the AGENTS.md file, so it's unnecessary.
There was a problem hiding this comment.
This file can be merged into README.
🤖 Automated reviewThis is an AI-generated code review. Please double-check each finding before acting. SummaryThis PR adds a system-following dark theme with a nav toggle, replaces the Verdict
FindingsMust FixNone. Should Fix
Nits
Automated Checks
|
- headings rendered by a demo block are kept out of the outline - light grey token matches the code palette, and the homepage grey is a token in both themes - the 404 button uses the darker cyan, so its text clears 4.5:1 in light mode - the mark reads its ground and outline colours from the theme tokens - shadows and the Laravel red are tokens - the guide documents the demo block, and its search flag is dropped since Algolia ignores it
- Claude reads AGENTS.md, so CLAUDE.md is not needed - the README carries the pointer to the writing guide
|
Hey @krishankumar01 I'm optimizing the auto review structure and flows, welcome any suggestions. |
|
I'm thinking of building a goravel-coder github app to review prs, implement features remotely. |
🤖 Automated reviewThis is an AI-generated code review. Please double-check each finding before acting. You don't need to address every issue if they are inaccurate, but please point them out if any exist. SummaryThis round reviews the dark-theme/outline/writing-guide branch at Verdict
FindingsShould Fix
Nits
Round reconciliation notes: Round 1's six Should-Fix items are resolved — verified in the current tree, not just the "address review" commit message: demo headings now carry Round 1 items: addressed or declined — see Resolution below. Comment context (step 4): The two inline review comments ( ResolutionAddressed in Fixed (9 of 10): both Should Fix items and Nits 1, 3, 4, 5, 6, 7, 8.
Declined (1): Nit 2 — Round 1 items: the tab-watcher layout read is addressed by the strip-only scroll above. The other six are declined: the two-level outline is this PR's stated feature; the dual Shiki theme is how dark code highlighting works; a test runner is project infrastructure beyond this PR's scope; the browser-check wording lives only in the PR description; the code-line colour transition animates the tour's highlight and is intentional. |
- a link inside a `md demo` no longer joins the page's dead-link check - srcExclude matches nested README/AGENTS files - keep a demo heading's own class attribute - note that the Shiki palette mirrors the theme tokens - the mark reads its grey from the home scope and seeds the matching fallback - liftFileNames skips demo fences - US spelling in the writing guide - scroll the tab strip only, without moving the page
Dark theme
Outline
##and###headings, the way the Laravel docs do. It works at every screen width, including the "On this page" dropdown on phonesHomepage
Fixes
Brandcomponent's global styles had leaked a margin onto the nav's brand cell, so its styles are scopedoutlineutility, which matched a VitePress class and drew a border inside the "On this page" dropdownWriting guide
prologue/writing-docsin English and Chinese: how to write a good page, and every theme feature shown as source and as rendered. It is not listed in the sidebar or searchmd demo ```` shows its source and renders it from the same text, so each example is written onceREADME.mdandAGENTS.mdpoint to that one guide. Both are excluded from the site build, which removes the accidental/README.htmlpageChecked
pnpm docs:buildpasses in CI