Repository navigation
v0.1.14-alpha
·
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 theinittemplate. 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 aNotFoundPageor status-code re-execution.Path,HomeHrefandHomeLabeloverride the message and the link back (which defaults to where/docsleads). Existing sites replace theirelsebranch inDocsPage.razorwith<DocsNotFound />.shelldocs buildwrites404.htmlfrom the site's own not-found view, for static hosts that serve it for unknown URLs (GitHub Pages, Netlify, Cloudflare Pages).--spa-fallbackstill replaces it withindex.html.
Changed
- Desktop sidebar collapse works without a Blazor runtime. The collapse and expand buttons are
[data-sidebar-collapse-toggle]buttons handled byshelldocs.js, which flips[data-sidebar-collapsed]on the page shell and remembers the choice inlocalStorageacross pages. The page shell no longer gets adocs-sidebar-collapsedclass; style[data-sidebar-collapsed="true"]instead.SidebarCollapseStateis still registered but no longer used. shelldocs buildfails 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