Skip to content

feat(site): add a community page and share one header with the docs - #18

Open
pimlock wants to merge 15 commits into
mainfrom
feat/community-page/pimlock
Open

pimlock wants to merge 15 commits into
mainfrom
feat/community-page/pimlock

Conversation

@pimlock

@pimlock pimlock commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a /community/ page, written in Markdown, and a few smaller site fixes.

Changes

  • Version picker: the label names the docset, such as "OpenShell version" or "Go SDK version", instead of "Version".
  • GitHub link: the GitHub icon in the docs header and the landing header points to the ai-openshell organization instead of the docs repository. The landing hero's "GitHub" button still points to the core repository.
  • Markdown pages: scripts/website.mjs renders each www/<name>.md (with title and description front matter) into the landing page's header and footer at /<name>/, and publishes its Markdown copy at /<name>.md. The landing page stays hand-written HTML. Adds remark-rehype and rehype-stringify, alongside the unified and remark packages the repo already uses.
  • Community page: /community/ links the #openshell-dev channel in the CNCF Slack (with slack.cncf.io for invites) and the GitHub organization, the contributing guide, and issues. The landing header links to it.
  • One header: the landing page and the docs share the same site bar: wordmark, Docs and Community links, then search (docs only), GitHub, and a theme toggle. Both read their links and the GitHub URL from theme/nav.json. The docs wordmark links to /.
  • Theme toggle: theme/theme-toggle.html and .js are one auto/light/dark toggle used by both headers, with the same icons. It stores the choice where Starlight does, so it carries across the site and the docs mobile menu's select stays in sync.
  • Divider: a line under the site bar separates it from the docs tabs (Core, SDKs).
  • Search everywhere: scripts/website.mjs indexes the website pages with Pagefind into /pagefind-www/. The docs search merges it when built with WEBSITE=1 (Netlify, mise run website), and the landing and community pages get a search button and dialog (www/search.js) over the same two indexes, with Starlight's ranking. Website pages count half so the short community page doesn't outrank the docs on common terms. Adds pagefind as a direct dependency (Starlight already pulled it in).
  • Shared site bar: theme/site-bar.mjs renders the bar (wordmark, links, search, GitHub, theme toggle) and the search dialog for every page, with one stylesheet (theme/site-bar.css) and one search script (theme/search.js). The docs header and scripts/website.mjs both use it, and the docs use this search instead of Starlight's search box (Starlight still builds the index).
  • Search UX: whole rows are clickable; each result shows its section (Core, Go SDK, SDKs, Community) from Pagefind metadata; page icons, tighter spacing, arrow-key navigation, link-style Clear, X and Esc to close; the site's type scale.
  • Community page: organized like OpenTelemetry's "Develop and contribute" with GitHub and Slack icons (:github:/:slack: shortcodes, www/icons/); the title matches docs page titles.
  • README: new sections on website pages, Markdown for agents (.md copies, llms.txt, page actions, <llms-only>/<llms-ignore>), and hosting (Netlify under the CNCF account, GitHub Pages workflow).

The Accept: text/markdown negotiation from #16 isn't described here; whichever of the two merges second should move #16's README line into the new "Markdown for agents" section.

Testing

  • mise run lint and mise run test (28 of 28) pass.
  • mise run website builds; served locally, /community/ renders in the landing shell with the Community nav link marked current, /community.md holds the Markdown copy, and the picker shows "Go SDK version" on /docs/sdks/go/introduction/.
  • Screenshots of the header at 1280px and 390px on /, /community/, and a docs page: same bar, links and icons in the same positions.
  • mise run typecheck passes.
  • Headless Chromium: the site bar's elements measure identical on /, /community/, and two docs pages at 1280px and 800px; search on landing and docs: ↓/↑ through results, Enter opens, Esc and X close, Ctrl+K opens, section labels shown, clicks anywhere on a row open it.
  • Search in headless Chromium: "slack" returns Community first from the landing page (button), the community page (Ctrl+K), and a docs page; "sandbox" returns docs pages first from both the community page and the docs. No console errors.
  • Clicked the theme toggle in headless Chromium on / and a docs page: it cycles auto → light → dark → auto, shows the same icon on both, and the choice survives a reload.

The picker label reads "OpenShell version" or "Go SDK version" instead of "Version", so it's clear which docset the picker switches.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
The docs header linked to the docs repository. The GitHub organization covers the core repository, the SDKs, and the docs.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Pages outside the docs can now be Markdown files in www/. scripts/website.mjs renders each www/<name>.md into the landing page's header and footer at /<name>/ and publishes its Markdown copy at /<name>.md. The landing page stays hand-written HTML.

The first page, /community/, links the CNCF Slack channel and the GitHub organization. The landing header links to it, and its GitHub icon now points to the organization.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Covers adding Markdown pages, the .md copies and llms.txt the site publishes for agents, and hosting on Netlify under the CNCF account.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ai-openshell-docs ready!

Name Link
🔨 Latest commit 2e73920
🔍 Latest deploy log https://app.netlify.com/projects/ai-openshell-docs/deploys/6b04cd6d8379cd8fb384d023
😎 Deploy Preview https://deploy-preview-18--ai-openshell-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The docs header now has the same site bar as the landing page: the wordmark and the Docs and Community links on the left, then search (docs only), GitHub, and a light/dark toggle. Both read their links and the GitHub URL from theme/nav.json, so a new page needs one entry. The docs toggle replaces Starlight's theme select in the header and keeps the mobile menu's select in sync.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock pimlock changed the title feat(site): add a community page and name the docset in the version picker feat(site): add a community page and share one header with the docs Nov 23, 2026
The docset table listed each published release and went stale with every release. It now names each docset's dev branch; sources.yml is the list of releases.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
The OpenShell wordmark in the docs header now goes to the landing page at / instead of the docs home. The Docs and Community links use the body text color at a slightly larger size, sit after a divider further from the wordmark, and turn the accent color on hover and for the current section.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
The community page now links the channel directly and keeps slack.cncf.io for people without a CNCF Slack account.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
… page and the docs

theme/theme-toggle.html and theme-toggle.js hold one toggle that both headers use. Each click cycles auto, light, dark; auto follows the system setting. The choice is stored where Starlight keeps it, so it carries between the landing page and the docs and the docs mobile menu's theme select stays in sync. Both headers now show the same icons, including one for auto.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
scripts/website.mjs indexes the Markdown pages with Pagefind into /pagefind-www/. The docs search merges that index when built with WEBSITE=1 (set on Netlify and by mise run website), and the landing and community pages get a search button and dialog (www/search.js) that use the docs index plus the same merged index, with Starlight's ranking. Website pages count half so a short page doesn't outrank the docs on a common term.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
The Chat section becomes a Develop and contribute section: the contributing guide, then GitHub and the #openshell-dev Slack channel, with a pointer to the #openshell-* subproject channels and slack.cncf.io. Markdown pages can now use :name: shortcodes for icons in www/icons/; the GitHub and Slack logos come from Starlight's icon set and are excluded from the SPDX check as third-party artwork.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
… the docs

The docs header's site bar shrank by a fraction of a pixel to fit Starlight's header border, so the wordmark sat slightly higher than on the landing page. It now keeps its full height. The landing header also uses the docs' side padding, link spacing, and search breakpoints, so the wordmark, links, and search stay in place at every width.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
…bsite

theme/site-bar.mjs renders the site bar (wordmark, site links, search, GitHub, theme toggle) and the search dialog for every page, with one stylesheet (theme/site-bar.css) and one search script (theme/search.js). The docs header and scripts/website.mjs both use it, so the bar can no longer drift between the docs and the landing and community pages. The docs now use this search instead of Starlight's search box; Starlight still builds the Pagefind index.

Search changes:
- Whole result rows are clickable, with one row per page and per section, all the same width.
- Each result shows where it comes from (Core, Go SDK, SDKs, Community), from Pagefind metadata set on every page.
- Page icons, tighter spacing, arrow-key navigation, a link-style Clear, and an X that closes the dialog (Esc too).
- The dialog uses the site's type scale: a regular-weight query, semibold titles, and 14px excerpts.

The community page title now matches docs page titles.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>

This branch has not been deployed

No deployments
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.

1 participant