Skip to content

docs: fix the website after the move to Starlight - #1377

Merged
dangreen merged 10 commits into
masterfrom
docs/website-audit-fixes
Nov 30, 2026
Merged

dangreen merged 10 commits into
masterfrom
docs/website-audit-fixes

Conversation

@dangreen

Copy link
Copy Markdown
Collaborator

Fixes found by comparing the Starlight website of #1367 with the old Docusaurus one page by page.

Changes

  • Ad. 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 narrower than 1152px, where Starlight has no right sidebar. Only the block that fits the screen stays in the page, so a single ad loads. The blocks keep neutral class names and ids, which ad blockers do not hide. The 404 page has no ad.
  • Table of contents. 30 pages without headings showed "On this page" with "Overview" alone. It is gone, and the right sidebar stays in place, so the content does not move between pages.
  • Previous and next links stay within a section, as on the old website with a sidebar per section. The first page of a section names the section instead of "Overview". Long FAQ questions fit the links in a smaller font.
  • External links open in a new tab, as on the old website. This includes the "See more" links of the props.
  • Props. ref shows ForwardedRef<Chart<...>> again instead of the internal ChartJSOrUndefined alias.
  • Texts:
    • straight quotes: smartypants turned "... is not a registered element" into curly quotes with a closing quote first;
    • the FAQ list names questions as their pages do;
    • "Get Chart Ref" has its old title back;
    • the tree-shaking link is relative;
    • typos are fixed in the guides for Chart.js v2 and v3.
  • Examples link to their component, which the old tags did. A gap separates the intro from the tabs.
  • GitHub Discussions is linked from the header and the FAQ, in place of the old Stack Overflow link.
  • Dev server. It serves the previews of the examples: Vite returned a 404 for the sandbox directories.

Checked locally

  • In Chrome on the dev server:
    • widths: 1440×900 in light and dark themes, 1280×660, 1152×800, 1000×800 and 390×844;
    • the position of the ad, and that exactly one ad request is made per page;
    • the table of contents, the previous and next links, the FAQ, the examples and the props of Bar.
  • pnpm build in website with astro check: 0 errors. In the output, every docs page has both ad blocks and a single loader script, and the 404 page has none.
  • The pre-push hook: lint, unit tests and types.
  • Not checked: Firefox and Safari.

🤖 Generated with Claude Code

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

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.97%. Comparing base (6b6c188) to head (6f3cf24).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dangreen
dangreen marked this pull request as ready for review November 30, 2026 21:09
@dangreen
dangreen merged commit c65365d into master Nov 30, 2026
11 checks passed
@dangreen
dangreen deleted the docs/website-audit-fixes branch November 30, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant