Repository navigation
docs: fix the website after the move to Starlight - #1377
Merged
Merged
Conversation
Starlight starts every table of contents with the page title, so 30 pages without headings showed "On this page" with "Overview" alone. The right sidebar stays in place, so the content does not move between pages.
At the end of the left sidebar the ad stood after 46 links, out of view. It sits under the table of contents now, and under the text of the page on screens without the right sidebar. Only the block that fits the screen stays in the page, so a single ad loads. The blocks keep neutral names, which ad blockers do not hide, as on the old website.
The old website had a sidebar per section, and its previous and next links stayed inside the section. The first page of a section links back to the section by its name instead of an ambiguous "Overview", and the long questions of the FAQ fit the links in a smaller font.
As the Docusaurus website did, also for the "See more" links of the props. The trailing slash now reaches internal links inside the JSX of MDX files too.
The props of the components showed ChartJSOrUndefined, an alias of the sources that the package does not export.
Smartypants turned the quotes of error messages into curly ones, with a closing quote before "... is not a registered element". The FAQ list names a question as its page does, the Chart Ref example gets its old title back, the tree-shaking link of the home page stays on the site it is opened from, and the guides for old Chart.js versions lose their typos.
The tags of the old website led from an example to the page of its component.
The header of the old website linked the questions on Stack Overflow.
The custom element of the example was inline, so the margin of content blocks did not apply and the tabs stuck to the intro.
Unlike GitHub Pages, Vite does not answer a directory of public with its index.html, so every preview showed a 404 page in development.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1377 +/- ##
=======================================
Coverage 93.97% 93.97%
=======================================
Files 3 3
Lines 83 83
Branches 20 20
=======================================
Hits 78 78
Misses 3 3
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Fixes found by comparing the Starlight website of #1367 with the old Docusaurus one page by page.
Changes
refshowsForwardedRef<Chart<...>>again instead of the internalChartJSOrUndefinedalias."... is not a registered element"into curly quotes with a closing quote first;Checked locally
Bar.pnpm buildinwebsitewithastro check: 0 errors. In the output, every docs page has both ad blocks and a single loader script, and the 404 page has none.🤖 Generated with Claude Code