Skip to content

Add ziti-cni to the product picker (standalone, draft docs) - #152

Open
loganlipscomb wants to merge 5 commits into
mainfrom
add-cni-draft
Open

Add ziti-cni to the product picker (standalone, draft docs)#152
loganlipscomb wants to merge 5 commits into
mainfrom
add-cni-draft

Conversation

@loganlipscomb

@loganlipscomb loganlipscomb commented Aug 27, 2026

Copy link
Copy Markdown

Summary

  • Registers ziti-cni as a new standalone product in packages/docusaurus-theme/src/products.ts, grouped under "Self-Hosted Open Source" alongside OpenZiti and zrok
  • Uses the generic NetFoundry icon (NF_LOGO) since ziti-cni doesn't have its own logo yet — matches the existing @netfoundry/docusaurus-theme styling already in use on the ziti-cni docs site itself
  • Picker link now follows the same linkFor()/DOCS_BASE pattern as every other product (/docs/ziti-cni/intro) — the earlier draft-branch override has been removed now that the build wiring below exists
  • Registers ziti-cni as a full unified-doc build spoke, following the same pattern used for zlan/data-connector/customer-connect:
    • build-docs.mjs: --ziti-cni-branch flag, cloneOrUpdate call, authUrl entry (reuses GH_ZITI_CI_REPO_ACCESS_PAT, same credential already shared by ziti-doc/zlan, no new secret needed), lint target
    • docusaurus.config.ts: BUILD_FLAGS.ZITICNI, remark mapping, webpack alias, static-asset exclusion, pages/docs-plugin blocks via ziti-cni's own docusaurus-plugin-ziti-cni-docs.ts
    • Default DOCUSAURUS_BUILD_MASK bumped 0x3FF0x7FF to include the new bit
  • Fixes scripts/vercel-ignore.sh to also always watch packages/docusaurus-theme, regardless of which single path a given Vercel project is configured to check — unified-doc-preview only watches unified-doc/, so a theme-only change (like the picker entry itself) was being silently skipped and never showing up in preview

Corresponding ziti-cni content: https://github.com/netfoundry/ziti-cni/pull/8 (draft, branch lipscomb-cni-docs-draft)

Status

Verified working end-to-end in a local build (picker entry renders, ziti-cni content builds and serves correctly at /docs/ziti-cni/...). The one remaining blocker for the live Vercel preview specifically: unified-doc-preview's build needs read access to the private ziti-cni repo to clone it, and since Vercel builds run outside GitHub Actions, that has to be a credential entered as a Vercel Environment Variable on that project — not a GitHub secret. Requested from the team; not yet added.

Test plan

  • Vercel preview builds successfully and the product picker shows the new "ziti-cni" entry under Self-Hosted Open Source (confirmed locally; pending on live preview until the vercel-ignore.sh fix lands and rebuilds)
  • Once the ziti-cni repo credential is added to unified-doc-preview, confirm the live preview clones and renders ziti-cni's actual docs content at /docs/ziti-cni/...
  • Share the working preview link with Edward and Dave for review

🤖 Generated with Claude Code

Adds ziti-cni to the product registry and both picker column arrays
(unified + subsite), grouped under "Self-Hosted Open Source" alongside
OpenZiti and zrok, using the generic NetFoundry icon since ziti-cni
doesn't have its own logo yet.

ziti-cni's docs aren't cloned into unified-doc's build (build-docs.mjs)
yet, so the picker link points at the draft docs branch directly
(https://github.com/netfoundry/ziti-cni/tree/lipscomb-cni-docs-draft/docusaurus,
PR https://github.com/netfoundry/ziti-cni/pull/8) rather than a
/docs/ziti-cni/... path that would 404. Wiring the actual build
pipeline is a follow-up.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@docpreview-dovholuknf-test

docpreview-dovholuknf-test Bot commented Aug 27, 2026

Copy link
Copy Markdown

Documentation preview

Project Status Preview Commit Updated (UTC)
netfoundry/docusaurus-shared ✅ Ready · 3m12s Preview a19090d Aug 28, 2026 4:23pm

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nf-theme-sandbox Ready Ready Preview Sep 8, 2026 7:30pm UTC
unified-doc-preview Error Error Sep 8, 2026 7:30pm UTC

Request Review

Per nf-style-guide.md's "Avoid em dashes" rule.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
build-docs.mjs / docusaurus.config.ts: add ziti-cni following the same
pattern as data-connector and customer-connect (branch flag, cloneOrUpdate,
BUILD_FLAGS bit, remark mapping, webpack alias, docs-plugin block via the
product's own docusaurus-plugin-ziti-cni-docs.ts). Reuses the existing
GH_ZITI_CI_REPO_ACCESS_PAT token, same as ziti-doc and zlan, rather than
introducing a new credential.

scripts/vercel-ignore.sh: also always check packages/docusaurus-theme,
regardless of which single path a given Vercel project was told to watch.
unified-doc-preview only watches unified-doc/, so a theme-only change (like
the product-picker entry in this same branch) was being silently skipped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants