Skip to content

v0.1.14-alpha

Choose a tag to compare

@github-actions github-actions released this 10 Oct 11:02
· 26 commits to main since this release

Static sites get the last piece of interactive chrome apart from search, the desktop sidebar collapse, and unknown pages finally answer 404, with a matching 404.html in static exports.

Added

  • <DocsNotFound />: the docs page's not-found view, now used by the init template. It answers HTTP 404, so search engines skip unknown pages. The status is set as the headers go out, because .NET 10 sends an empty body for a page that is already 404 unless the app has a NotFoundPage or status-code re-execution. Path, HomeHref and HomeLabel override the message and the link back (which defaults to where /docs leads). Existing sites replace their else branch in DocsPage.razor with <DocsNotFound />.
  • shelldocs build writes 404.html from the site's own not-found view, for static hosts that serve it for unknown URLs (GitHub Pages, Netlify, Cloudflare Pages). --spa-fallback still replaces it with index.html.

Changed

  • Desktop sidebar collapse works without a Blazor runtime. The collapse and expand buttons are [data-sidebar-collapse-toggle] buttons handled by shelldocs.js, which flips [data-sidebar-collapsed] on the page shell and remembers the choice in localStorage across pages. The page shell no longer gets a docs-sidebar-collapsed class; style [data-sidebar-collapsed="true"] instead. SidebarCollapseState is still registered but no longer used.
  • shelldocs build fails on a page that renders as not found, whether it answered 404 or rendered <DocsNotFound> with another status.

What's Changed

  • fix: 404 for unknown pages, 404.html in static builds, static sidebar collapse (0.1.14-alpha) by @Shewart in #36

Full Changelog: v0.1.13-alpha...v0.1.14-alpha