Repository navigation
fix: table of contents on interactive sites, border layer, llms.txt groups - #49
Merged
Merged
Conversation
Under <Routes @rendermode="InteractiveServer" /> the circuit replaced the prerendered TOC and headings, so the scroll-spy watched detached elements and the highlight stopped moving. TOC links were bare #id, which resolves against <base href> to the home page. - TOC links carry the page's base-relative path (docs/setup#install) - the scroll-spy re-attaches when a render replaces the list or headings, or changes data-toc-ids on navigation - same-page links (#id in content too) scroll in place and keep the path - at the bottom of the page the last heading on screen is active
Top-level pages on both sides of a folder gave two "## Pages" groups; groups are now listed once, in first-seen order. The page menu's chat prompts used the visitor's origin, so an export previewed on localhost named a localhost URL; with SiteUrl set they name the published page.
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.
Table of contents on interactive sites
With
<Routes @rendermode="InteractiveServer" />(shellui.dev, shelldocs.shellui.dev, shellicons.shellui.dev), the "On this page" highlight stopped moving once the circuit started, and clicking an entry went to the home page.shelldocs.jsnow re-attaches it when a render replaces the list or headings, or whendata-toc-idschanges on navigation.#id, which resolves against<base href>to the home page. They now carry the page's base-relative path (docs/theming#dark-mode), which also works under--base-href.[x](#id)links in content scroll in place and keep the full path in the address bar, before Blazor's router sees the click. A trailing slash (static hosts serve/docs/x/) doesn't count as another page.Sites with their own
toc.jsworkaround can drop it after upgrading.Also
border-color: var(--border)rule inshelldocs-theme.csswas unlayered, so it beat Tailwind'sborder-*utilities in previews and home pages. It's in@layer basenow.SiteUrlset, the Claude / ChatGPT prompts name the published page, also when an export is previewed locally.Checked
TableOfContentsTests,ThemeCssTests, two inLlmsTxtTests.#idlink stay on the page--base-href /sub/, served under/sub/:/sub/docs/theming/#dark-modeborder-destructiveutility now wins over the base rule, and plain elements keep--border.