Skip to content

feat(site): add the SDKs section with a page for each SDK - #20

Draft
pimlock wants to merge 31 commits into
mainfrom
feat/sdk-stubs/pimlock
Draft

pimlock wants to merge 31 commits into
mainfrom
feat/sdk-stubs/pimlock

Conversation

@pimlock

@pimlock pimlock commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Brings the SDKs section back with every SDK in it, so we can see how it looks before moving the SDK docs out of the core docs. Stacked on #19 (which drops the SDKs for the first release). Draft: this is a preview of the direction, not for the first release. Part of #21.

Changes

  • sources.yml: the SDKs topic lists the Go, Python, TypeScript, and Rust SDKs. Go uses its own published docs (ai-openshell/sdk-go, as before feat(site): publish only the core docs for now #19). Python, TypeScript, and Rust get a placeholder page each.
  • stubs/sdk-*/: one-page native docsets. Each says the SDK's docs will move here, links its page in the core docs (core://sdk/<lang>), and names its repository and package.
  • Assembler: a version can set local: <dir> instead of a ref; it's built from that directory in this repo without fetching, recorded as the site repo with sha working-tree, and its broken links fail the build (like --local). The placeholders use version name preview.
  • topics/sdks.mdx: the SDKs overview intro, restored.
  • README and CONTRIBUTING: the Go SDK row, the placeholders, and local: versions.

Testing

  • mise run lint, mise run test (30 of 30, including two new tests for local: versions), and mise run typecheck pass.
  • mise run website builds: /docs/sdks/ lists the four SDKs as cards with sub-tabs (Overview, Go SDK, Python SDK, TypeScript SDK, Rust SDK); /docs/sdks/python/ shows the placeholder with a working link to /docs/sdk/python/.

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>
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>
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>
…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 <pmlocek@nvidia.com>
The Go SDK is the only SDK that publishes its own docs, so an SDKs section that lists only Go is confusing. The site now builds only the core docs: sources.yml drops the SDKs topic and the sdk-go source, and topics/sdks.mdx goes. The header shows the topic tabs only when there are several topics, so with one topic the docs have just the site bar.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
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 <pmlocek@nvidia.com>
…imlock

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
The SDKs topic comes back with the Go SDK's own docs and a placeholder page for the Python, TypeScript, and Rust SDKs, so the section shows every SDK before their docs move out of the core docs. Each placeholder points to the SDK's page in the core docs and its repository.

The placeholders live in stubs/ in this repo. A version in sources.yml can now set local: <dir> instead of a ref, and the assembler builds it from that directory without fetching; it's recorded as this repo with sha working-tree, and its broken links fail the build.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock marked this pull request as ready for review November 24, 2026 00:20
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 <pmlocek@nvidia.com>
…imlock

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock marked this pull request as draft November 24, 2026 00:21
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 <pmlocek@nvidia.com>
…imlock

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

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

# Conflicts:
#	README.md
#	netlify.toml
…imlock

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

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

# Conflicts:
#	CONTRIBUTING.md
#	README.md
#	site/src/components/overrides/Header.astro
#	site/src/styles/theme.css
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Base automatically changed from feat/core-only-docs/pimlock to main November 24, 2026 01:06

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