docs: expand details for global CLI anchor links - #2715
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Cloudflare documentation preview: https://pr-2715-viteplus-dev.voidzero-docs.workers.dev Commit: 2e0ad30 |
The Global CLI page lists environment-variable headings in its outline even when the enclosing details block is collapsed. Clicking those links leaves the content hidden and scrolls to the wrong position.
Add a page-local script that opens enclosing details blocks and scrolls to the heading with VitePress's configured offset. It handles direct links, hash changes, and clicking the current outline link again after collapsing the block, and removes its listeners when leaving the page.
This adapts VitePress maintainer brc-dd's suggested script to headings inside details blocks.
🤖 Generated with Codex