From 9e176f481924b7cf6f08c6940cb245569d6d4ab9 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Mon, 23 Nov 2026 16:11:03 -0800 Subject: [PATCH] feat(site): publish only the core docs for now 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 --- CONTRIBUTING.md | 2 +- README.md | 3 +-- site/src/components/overrides/Header.astro | 15 +++++++++------ site/src/styles/theme.css | 6 +++++- sources.yml | 19 +------------------ topics/sdks.mdx | 6 ------ 6 files changed, 17 insertions(+), 34 deletions(-) delete mode 100644 topics/sdks.mdx diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ac0ce72..9666163 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -79,7 +79,7 @@ latest release of each docset only), and `scripts/website.mjs` indexes the website pages into `/pagefind-www/`. When built with `WEBSITE=1`, as Netlify and `mise run website` do, search merges the two, with the website pages at half weight so they don't outrank the docs. Each page records its section -(Core, Go SDK, Community) as Pagefind metadata, which the results show as a +(such as Core or Community) as Pagefind metadata, which the results show as a label. ## Markdown for agents diff --git a/README.md b/README.md index 889f1f9..489a9d5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ the docs, such as the landing page. | Docset | Repository | Path | Dev branch | | --------- | ------------------------------------------------------------------- | ----------- | ---------- | | OpenShell | [ai-openshell/openshell](https://github.com/ai-openshell/openshell) | `docs/` | `main` | -| Go SDK | [ai-openshell/sdk-go](https://github.com/ai-openshell/sdk-go) | `docs/src/` | `main` | ## How it works @@ -21,7 +20,7 @@ branch, checks every link, and builds the docs with [Starlight](https://starlight.astro.build/). The newest release of each repository is published without a version in the URL, such as `/docs/about/overview/`; other versions have their own path, such as -`/docs/0.1.8/about/overview/` or `/docs/sdks/go/dev/`. +`/docs/0.1.8/about/overview/` or `/docs/dev/about/overview/`. The website serves the landing page and the community page at `/` and the docs at `/docs/`, all with one site bar and one search. Every page also has a diff --git a/site/src/components/overrides/Header.astro b/site/src/components/overrides/Header.astro index 62593ca..6390bf2 100644 --- a/site/src/components/overrides/Header.astro +++ b/site/src/components/overrides/Header.astro @@ -1,6 +1,7 @@ --- // SPDX-License-Identifier: Apache-2.0 -// Header: the site bar, then topic tabs, then (in topics with an overview page) +// Header: the site bar, then topic tabs (when there are several topics), then +// (in topics with an overview page) // sub-tabs for the overview and each docset. The site bar (wordmark, site // links, search, GitHub, theme) is theme/site-bar.mjs, shared with the website // pages, so it is the same markup, styles, and scripts everywhere. @@ -33,11 +34,13 @@ const subtabs = ds
- + {topics.length > 1 && ( + + )} {ds?.topic.landing && (