Skip to content

Docs reorg and updates - #939

Merged
theoephraim merged 14 commits into
mainfrom
docs/ia-improvements
Jul 28, 2026
Merged

Docs reorg and updates#939
theoephraim merged 14 commits into
mainfrom
docs/ia-improvements

Conversation

@philmillman

@philmillman philmillman commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Restructure docs nav into tabbed sidebar groups (Getting Started / Guides / Reference / Ecosystem) with nested subgroups and first-level groups expanded by default
  • Split long mega-pages into hubs + child pages: CLI, MCP, proxy, Kubernetes, and per-tool AI guides (Claude, Codex, Kimi, Opencode, Antigravity, Aider, Crush, Goose)
  • Sandboxing splits by audience: the concept guide becomes a proxy subpage at /guides/proxy/sandboxing, while the per-tool recipes move to a new Sandboxes group under Ecosystem at /sandboxes/* with a short overview. They are integration-shaped, and some may get published packages later
  • Move Docker under Integrations, rebuild integrations/plugins overview hubs, prune stale new badges, and keep old section hashes working via early client redirects on hub pages
  • Sidebar styling: group headings drop to the same size as their links so weight and indentation carry the hierarchy, and the mobile nav gets smaller text, tighter rows, and a more compact tab switcher

Also

  • Prompt builder: updated tile URLs, richer generated prompt (core docs, monorepo/plugins, Docs MCP, proxy/sandboxing when AI tools are selected), fixed typo
  • CLI: fix stray backtick on local-encryption docs URL in varlock init --agent guidance
  • Sidebar persistence: include collapsed in the Starlight sidebar state hash so default-expanded groups actually stick
  • Restore four integrations/vite sections (vite.config.*, HTML templates, other scripts, type-safety) that Static/dynamic config controls #750 dropped without replacing
  • Fix a handful of pre-existing broken doc links found while checking the moves: #plugin-installation, /guides/type-generation/, #regex-literals, #scanning-for-leaked-secrets, and the two #encrypting-the-env-blob anchors (those asides are now real headings)

Test plan

  • Open docs locally and click through each sidebar tab; confirm nested groups and expanded first-level sections look right
  • Spot-check split hubs and their children (CLI, MCP, proxy, sandboxing, Kubernetes, AI tools)
  • Hit old hash URLs (e.g. /guides/mcp#docs-mcp, /reference/cli-commands#load, /plugins/kubernetes#loading-values) and confirm they redirect to the new pages
  • Confirm /guides/docker redirects to /integrations/docker/
  • Confirm /guides/sandboxing redirects to /guides/proxy/sandboxing/, and each /guides/sandboxing/<tool> to /sandboxes/<tool>/
  • Check the sidebar at desktop and mobile widths (group headings, row heights, and that nested rules line up with their parent label)
  • Open /prompt-builder/, pick a few tiles (incl. monorepo + AI tool + plugin), copy the prompt, and check links resolve
  • bun run --filter @varlock/website build

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • varlock 1.14.0 → 1.14.1

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@pkg-pr-new

pkg-pr-new Bot commented Jul 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/varlock@939

commit: 6ba6c07

@theoephraim
theoephraim marked this pull request as ready for review July 24, 2026 16:54
@theoephraim

Copy link
Copy Markdown
Member

unmarked as draft so it will deploy

@philmillman

Copy link
Copy Markdown
Member Author

@pullfrog review this

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Several navigation paths introduced by the page splits are broken, and the new Codex guide does not authenticate the interactive CLI as described.

Reviewed changes: This PR reorganizes the documentation into tabbed navigation, splits large hubs into child pages, preserves selected legacy URLs, expands the prompt builder, and fixes the varlock init --agent documentation URL.

  • Add a tabbed Starlight sidebar: Introduces topic tabs, nested navigation groups, and sidebar state persistence that includes default collapsed state.
  • Split major documentation hubs: Moves CLI, MCP, proxy, sandboxing, Kubernetes, and AI tool content into overview and child pages.
  • Update navigation and discovery surfaces: Reworks integrations and plugins hubs, homepage tiles, page icons, prompt-builder links, and the Docker route.
  • Preserve selected legacy links: Adds route redirects and synchronous hash redirects for moved hub sections.
  • Fix agent initialization guidance: Removes the stray backtick from the local-encryption URL emitted by varlock init --agent.

⚠️ Legacy deep links are only partially preserved

The redirect table covers the top-level examples in the test plan, but many headings moved from the old hubs have no mapping. Existing links such as /guides/proxy/#placeholders, /plugins/kubernetes/#authentication-options, and /reference/cli-commands/#output-formats-for-scripts--agents now open a hub with no matching anchor.

Technical details
# Legacy deep links are only partially preserved

## Affected sites
- `packages/varlock-website/src/components/CustomHead.astro:12-61``HASH_REDIRECTS` lists only selected moved headings.
- `/guides/proxy/#placeholders` — content moved to `/guides/proxy/rules/#placeholders` without a redirect.
- `/plugins/kubernetes/#authentication-options` — content moved to `/plugins/kubernetes/setup/#authentication-options` without a redirect.
- `/reference/cli-commands/#output-formats-for-scripts--agents` — content moved to `/reference/cli/load-and-run/#output-formats-for-scripts--agents` without a redirect.

## Required outcome
- Every heading removed from a retained hub URL continues to resolve to the corresponding child-page heading.
- Legacy links work for both trailing-slash and non-trailing-slash hub URLs.

## Suggested approach
Derive or complete each hub's redirect map from all headings moved into its child pages, rather than maintaining only the first-level section anchors used in the manual test plan.

Pullfrog  | Fix all ➔Fix 👍s ➔View workflow run | Using azure/gpt-5.6-sol𝕏

Comment thread packages/varlock-website/src/content/docs/guides/ai-tools/codex.mdx Outdated
Comment thread packages/varlock-website/src/content/docs/guides/proxy.mdx
Comment thread packages/varlock-website/src/content/docs/guides/proxy/rules.mdx Outdated
Comment thread packages/varlock-website/src/content/docs/reference/cli/encryption.mdx Outdated
Comment thread packages/varlock-website/src/content/docs/reference/cli/cache-and-codegen.mdx Outdated
Comment thread packages/varlock-website/src/content/docs/guides/ai-tools.mdx Outdated
@pullfrog

pullfrog Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Pushed commit 59859752 with all six review fixes, complete moved-heading redirects, and corrected Codex authentication guidance. Lint passes; the docs build parsed the changes and reached prerendering, then failed because astro-icon could not fetch simple-icons:cursor in the restricted environment. All six review threads were replied to and resolved.

Task list (5/5 completed)
  • Checkout PR 939 and inspect review 4799378351
  • Verify and address every review comment
  • Run targeted tests and review the resulting diff
  • Commit and push the fixes to the PR branch
  • Reply to and resolve each addressed review thread

Pullfrog  | View workflow run | via Pullfrog | Using azure/gpt-5.6-sol𝕏

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 28, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
varlock-website 6ba6c07 Commit Preview URL

Branch Preview URL
Jul 28 2026, 11:11 PM

philmillman and others added 13 commits July 28, 2026 12:11
- flatten command reference into reference/cli/project
- substitution surface + client compatibility into the split proxy pages
- restore vite sections dropped on main
- fix links broken by the moves, plus a few pre-existing ones
… under proxy

Individual sandbox recipes are integration-shaped (some may get published
packages), so they get their own Ecosystem heading at /sandboxes/*. The
sandboxing concept guide is proxy-specific, so it becomes /guides/proxy/sandboxing.
Old URLs redirect.
Group labels drop to the same size as their links, and bold is reserved for
open groups so closed ones read as plain list items. On mobile everything
steps down a size with tighter padding, and the tab switcher shrinks.
Every other tab is groups-of-pages; Getting Started was a bare page list, which
Starlight styles as top-level headings. Wrapping the pages in a group makes the
structure uniform and drops the CSS that was compensating for it.
@theoephraim
theoephraim force-pushed the docs/ia-improvements branch from 5985975 to 7318279 Compare July 28, 2026 22:49
@github-actions

Copy link
Copy Markdown
Contributor

📦 Bundle size

✅ shrinks the bundle by 0.0 KB (−0.0%)

Metric main This PR Δ
Total dist 4790.7 KB 4790.6 KB −0.0 KB (−0.0%)
JS 1656.3 KB 1656.3 KB −0.0 KB (−0.0%)
Sourcemaps 3058.3 KB 3058.3 KB −0.0 KB (−0.0%)
Type defs 76.0 KB 76.0 KB

dist/ only; native binaries are versioned separately and not counted here.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The new sandbox overview overstates the network containment provided by the listed recipes.

Reviewed changes: Reviewed the documentation and sidebar updates added after the prior Pullfrog fix.

  • Ported current documentation updates into the reorganized structure: Updated moved anchors, restored Vite sections, and aligned links with the split CLI and proxy pages.
  • Moved sandbox documentation into its final navigation locations: Placed proxy-specific concepts under /guides/proxy/sandboxing/, moved individual recipes under /sandboxes/, and added redirects for the old routes.
  • Added the Sandboxes overview: Added an Ecosystem landing page and linked it from the proxy sandboxing guide and sidebar.
  • Refined the sidebar hierarchy and mobile presentation: Renamed groups, compacted mobile spacing, kept group headings bold, and grouped Getting Started pages under Start here.

Pullfrog  | Fix all ➔Fix 👍s ➔View workflow run | Using azure/gpt-5.6-sol𝕏

Comment thread packages/varlock-website/src/content/docs/sandboxes/overview.mdx Outdated
@pullfrog

pullfrog Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Updated the sandbox overview to make clear that filesystem, process, and network isolation varies by tool, then pushed commit 6ba6c079. The website build passes, and the review thread has been replied to and resolved.

Task list (5/5 completed)
  • Check out PR 939 and load review 4802460711 comments
  • Verify each review finding and implement minimal fixes
  • Run relevant tests and inspect the final diff
  • Commit and push the fixes to the PR branch
  • Reply to and resolve each addressed review thread

Pullfrog  | View workflow run | via Pullfrog | Using azure/gpt-5.6-sol𝕏

@theoephraim
theoephraim merged commit b12be18 into main Jul 28, 2026
27 checks passed
@pullfrog pullfrog Bot mentioned this pull request Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants