Skip to content

feat(site): add a community page and a shared site bar and search - #18

Merged
pimlock merged 20 commits into
mainfrom
feat/community-page/pimlock
Nov 24, 2026
Merged

pimlock merged 20 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 and gives every page, docs included, the same site bar and search.

Changes

  • Site bar: theme/site-bar.mjs renders the bar for the docs and the website pages: wordmark (links to /), Docs and Community links (the current one underlined), search, the GitHub organization, and an auto/light/dark theme toggle. One stylesheet (theme/site-bar.css) and script (theme/search.js), so the two can't drift. Links come from theme/nav.json.
  • Search: a Pagefind dialog on every page, replacing Starlight's search box. It searches the docs and, on the full website (WEBSITE=1), the website pages, indexed by scripts/website.mjs into /pagefind-website/. Results show their section (Core, Community), whole rows are clickable, and arrow keys, Enter, Esc, and Ctrl+K work.
  • Website pages: www/ is now website/. Besides the hand-written landing page, pages can be Markdown (website/<name>.md), rendered into the landing page's shell with a Markdown copy at /<name>.md. :github:-style shortcodes insert icons from website/icons/.
  • Community page: /community/ links the contributing guide, the GitHub organization, and the #openshell-dev CNCF Slack channel, opening them in a new tab.
  • Docs: the version picker names its docset ("OpenShell version"), and a line separates the site bar from the docs tabs.
  • README and CONTRIBUTING: the README is a short overview; build, website, search, Markdown-for-agents, and hosting details are in CONTRIBUTING.

Testing

  • mise run lint, mise run test, and mise run typecheck pass; mise run website builds.
  • In headless Chromium, the site bar measures the same on the landing page, the community page, and docs pages at desktop widths, and search, the keyboard shortcuts, and the theme toggle behave the same on all of them.

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ai-openshell-docs ready!

Name Link
🔨 Latest commit 4432a41
🔍 Latest deploy log https://app.netlify.com/projects/ai-openshell-docs/deploys/6b04e12544881e24db8eb7f3
😎 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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
… 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
… 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 <[email protected]>
…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 <[email protected]>
…BUTING

The README now covers what the repository builds, how it works in brief, publishing a release, and running the website locally. CONTRIBUTING.md gains the build, website pages, site bar and search, Markdown for agents, and hosting details.

Signed-off-by: Piotr Mlocek <[email protected]>
On the Markdown pages, such as /community/, links to other sites (GitHub, Slack, the CNCF) get target="_blank" rel="noopener".

Signed-off-by: Piotr Mlocek <[email protected]>
website/ says what the folder holds: the website's own pages outside the docs (the landing page, the community page, their styles and icons). It matches scripts/website.mjs and the website tasks. The website pages' search index moves from /pagefind-www/ to /pagefind-website/ to match, and README and CONTRIBUTING say what website/ holds next to site/.

Signed-off-by: Piotr Mlocek <[email protected]>
Hover and the current section looked the same. Hover now only changes the link color; the current section (Docs or Community) also gets an accent underline.

Signed-off-by: Piotr Mlocek <[email protected]>
@pimlock pimlock changed the title feat(site): add a community page and share one header with the docs feat(site): add a community page and a shared site bar and search Nov 24, 2026
TaylorMutch
TaylorMutch previously approved these changes Nov 24, 2026
…imlock

Signed-off-by: Piotr Mlocek <[email protected]>

# Conflicts:
#	README.md
#	netlify.toml
@pimlock
pimlock merged commit 58ea8a3 into main Nov 24, 2026
8 checks passed
@pimlock
pimlock deleted the feat/community-page/pimlock branch November 24, 2026 01:00
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