Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
72f56d2
feat(site): name the docset in the version picker label
pimlock Nov 23, 2026
f0a33ee
fix(site): link the GitHub icon to the ai-openshell organization
pimlock Nov 23, 2026
5703c65
feat(site): add a community page written in Markdown
pimlock Nov 23, 2026
1e39425
docs: describe website pages, Markdown for agents, and hosting
pimlock Nov 23, 2026
1c62a3e
feat(site): share one header between the landing page and the docs
pimlock Nov 23, 2026
ec0ff88
docs: drop release numbers from the README
pimlock Nov 23, 2026
bf5781a
feat(site): link the docs wordmark home and set the site links apart
pimlock Nov 23, 2026
1e120a6
fix(site): link the #openshell-dev Slack channel
pimlock Nov 23, 2026
da2acad
feat(site): share an auto/light/dark theme toggle between the landing…
pimlock Nov 23, 2026
fc98fb1
feat(site): separate the site bar from the docs tabs with a line
pimlock Nov 23, 2026
42584e5
feat(site): search the docs and the website pages from every page
pimlock Nov 23, 2026
9630aea
feat(site): organize the community page like OpenTelemetry's, with icons
pimlock Nov 23, 2026
e13d949
fix(site): keep the header from shifting between the landing page and…
pimlock Nov 23, 2026
a920e1d
feat(site): drop the arrow from the landing page's Documentation button
pimlock Nov 23, 2026
2e73920
feat(site): share one site bar and search between the docs and the we…
pimlock Nov 23, 2026
c864d94
docs: keep the README to an overview and move build details to CONTRI…
pimlock Nov 24, 2026
9e176f4
feat(site): publish only the core docs for now
pimlock Nov 24, 2026
1c2fd2d
feat(site): open links to other sites in a new tab on the website pages
pimlock Nov 24, 2026
c94f167
Merge branch 'feat/community-page/pimlock' into feat/core-only-docs/p…
pimlock Nov 24, 2026
94b9a9f
feat(site): add the SDKs section with a page for each SDK
pimlock Nov 24, 2026
03fddba
refactor(site): rename www/ to website/
pimlock Nov 24, 2026
81394ec
Merge branch 'feat/community-page/pimlock' into feat/core-only-docs/p…
pimlock Nov 24, 2026
e11064e
Merge branch 'feat/core-only-docs/pimlock' into feat/sdk-stubs/pimlock
pimlock Nov 24, 2026
e54417f
feat(site): underline the current site link
pimlock Nov 24, 2026
29fe9ea
Merge branch 'feat/community-page/pimlock' into feat/core-only-docs/p…
pimlock Nov 24, 2026
46dcdbd
Merge branch 'feat/core-only-docs/pimlock' into feat/sdk-stubs/pimlock
pimlock Nov 24, 2026
4432a41
Merge remote-tracking branch 'origin/main' into feat/community-page/p…
pimlock Nov 24, 2026
c77f6ee
Merge branch 'feat/community-page/pimlock' into feat/core-only-docs/p…
pimlock Nov 24, 2026
0b29c0e
Merge branch 'feat/core-only-docs/pimlock' into feat/sdk-stubs/pimlock
pimlock Nov 24, 2026
7d67306
Merge remote-tracking branch 'origin/main' into feat/core-only-docs/p…
pimlock Nov 24, 2026
d91a083
Merge branch 'feat/core-only-docs/pimlock' into feat/sdk-stubs/pimlock
pimlock Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ mise run install

[`sources.yml`](sources.yml) lists each source repository, where it's mounted,
and which tags to publish; `dev` is a branch built as an extra, unreleased
version. The assembler ([`assembler/`](assembler/)) fetches only the docs
version. A version with `local: <dir>` instead of a `ref` is built from that
directory in this repo; the SDK placeholders in [`stubs/`](stubs/) use it. The assembler ([`assembler/`](assembler/)) fetches only the docs
directory at each ref, reads it in its own format (Fern `index.yml`, mdBook
`SUMMARY.md`, or `docset.yml`), and writes the Starlight content, navigation,
and Markdown copies. The commits it used are recorded in
Expand Down Expand Up @@ -81,7 +82,7 @@ latest release of each docset only), and `scripts/website.mjs` indexes the
website pages into `/pagefind-website/`. 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
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ 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
Markdown copy for agents at its URL plus `.md`. The site is hosted on Netlify
under the CNCF's account.

The Python, TypeScript, and Rust SDKs have placeholder pages from
[`stubs/`](stubs/) until their docs move out of the core docs.

To publish a new release, add its tag to `sources.yml`.

## Run it locally
Expand Down
9 changes: 6 additions & 3 deletions assembler/assemble.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@ for (const [id, src] of Object.entries(manifest.sources)) {
src,
name: v.name ?? v.ref.replace(/^v/, ''),
dev: false,
repo: v.repo ?? src.repo,
ref: v.ref,
subdir: v.path ?? src.path,
// A version can come from a directory in this repo (`local`) instead of
// a fetched ref, such as a placeholder for a docset with no docs yet.
repo: v.local ? manifest.site.repo : (v.repo ?? src.repo),
ref: v.local ? 'local' : v.ref,
subdir: v.local ? '' : (v.path ?? src.path),
local: v.local && path.join(root, v.local),
});
const own = wanted.filter((w) => w.id === id);
(own.find((w) => !w.dev) ?? own[0]).latest = true;
Expand Down
15 changes: 9 additions & 6 deletions site/src/components/overrides/Header.astro
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -37,11 +38,13 @@ const subtabs = ds

<div class="os-header">
<Fragment set:html={bar} />
<nav class="os-tabs print:hidden" aria-label="Topics">
{topics.map((t) => (
<a href={t.href} class="os-tab" aria-current={t.isCurrent ? 'true' : undefined}>{t.label}</a>
))}
</nav>
{topics.length > 1 && (
<nav class="os-tabs print:hidden" aria-label="Topics">
{topics.map((t) => (
<a href={t.href} class="os-tab" aria-current={t.isCurrent ? 'true' : undefined}>{t.label}</a>
))}
</nav>
)}
{ds?.topic.landing && (
<div class="os-subtabs print:hidden">
<nav class="os-subtabs__links" aria-label={ds.topic.label}>
Expand Down
6 changes: 5 additions & 1 deletion site/src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

/* layout */
--os-tabs-h: 2.75rem;
--sl-nav-height: calc(var(--os-header-h) + var(--os-tabs-h));
--sl-nav-height: var(--os-header-h);
--sl-nav-pad-x: 1.25rem;
--sl-sidebar-width: 17rem;
--sl-content-width: var(--os-content-w);
Expand Down Expand Up @@ -207,6 +207,10 @@ body {
color: var(--os-muted);
}

/* Topic tabs show only when there are several topics (Header.astro) */
html:has(.os-tabs) {
--sl-nav-height: calc(var(--os-header-h) + var(--os-tabs-h));
}
.os-tabs {
display: flex;
gap: 1.5rem;
Expand Down
32 changes: 29 additions & 3 deletions sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
# records the commit in build/sources.lock.json.
#
# Every source has its own versions, newest first. The first one is "latest".
# `dev` (optional) is a branch built as an extra, unreleased version.
# `dev` (optional) is a branch built as an extra, unreleased version. A version
# with `local: <dir>` instead of a `ref` is built from that directory in this
# repo.
#
# The newest release is published at /<mount>/<page>, with no version in the
# URL; every other version at /<mount>/<version>/<page>. /<mount>/latest/<page>
Expand All @@ -18,7 +20,7 @@
# The format of each checkout is detected: docs/docset.yml (native),
# docs/index.yml (Fern) or SUMMARY.md (mdBook). Old tags build as they are.
#
# Topics are the header tabs. A topic with a `description` or several sources
# Topics are the header tabs, shown when there are several. A topic with a `description` or several sources
# gets an overview page at /<id>/ (with an optional `intro` from this repo) and
# sub-tabs for the overview and each source. Otherwise its tab opens its only
# source.
Expand All @@ -35,7 +37,7 @@ topics:
label: SDKs
description: Client libraries for the OpenShell gateway API.
intro: topics/sdks.mdx
sources: [sdk-go]
sources: [sdk-go, sdk-python, sdk-typescript, sdk-rust]

sources:
core:
Expand All @@ -61,3 +63,27 @@ sources:
- { name: "0.1.9", ref: v0.1.9 }
- { name: "0.1.8", ref: v0.1.8 }
- { name: "0.1.7", ref: v0.1.7 }

# The other SDKs don't publish docs yet: each has a placeholder page from
# stubs/ in this repo (a version with `local:` instead of a ref) until its
# docs move out of the core docs.
sdk-python:
title: Python SDK
description: Python client for the OpenShell gateway API.
mount: sdks/python
versions:
- { name: preview, local: stubs/sdk-python }

sdk-typescript:
title: TypeScript SDK
description: TypeScript client for the OpenShell gateway API.
mount: sdks/typescript
versions:
- { name: preview, local: stubs/sdk-typescript }

sdk-rust:
title: Rust SDK
description: Rust client for the OpenShell gateway API.
mount: sdks/rust
versions:
- { name: preview, local: stubs/sdk-rust }
6 changes: 6 additions & 0 deletions stubs/sdk-python/docset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# Placeholder until the Python SDK publishes its own docs (see sources.yml).

title: Python SDK
nav:
- page: index.mdx
11 changes: 11 additions & 0 deletions stubs/sdk-python/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# SPDX-License-Identifier: Apache-2.0
title: Python SDK
description: Python client for the OpenShell gateway API.
---

<Note>
The Python SDK docs will move here from the core docs. Until then, see the [Python SDK page](core://sdk/python) in the core docs.
</Note>

The SDK lives in [ai-openshell/sdk-python](https://github.com/ai-openshell/sdk-python) and is published to PyPI as `openshell`.
6 changes: 6 additions & 0 deletions stubs/sdk-rust/docset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# Placeholder until the Rust SDK publishes its own docs (see sources.yml).

title: Rust SDK
nav:
- page: index.mdx
11 changes: 11 additions & 0 deletions stubs/sdk-rust/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# SPDX-License-Identifier: Apache-2.0
title: Rust SDK
description: Rust client for the OpenShell gateway API.
---

<Note>
The Rust SDK docs will move here from the core docs. Until then, see the [Rust SDK page](core://sdk/rust) in the core docs.
</Note>

The SDK is the `openshell-sdk` crate in [ai-openshell/openshell](https://github.com/ai-openshell/openshell/tree/main/crates/openshell-sdk).
6 changes: 6 additions & 0 deletions stubs/sdk-typescript/docset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# Placeholder until the TypeScript SDK publishes its own docs (see sources.yml).

title: TypeScript SDK
nav:
- page: index.mdx
11 changes: 11 additions & 0 deletions stubs/sdk-typescript/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# SPDX-License-Identifier: Apache-2.0
title: TypeScript SDK
description: TypeScript client for the OpenShell gateway API.
---

<Note>
The TypeScript SDK docs will move here from the core docs. Until then, see the [TypeScript SDK page](core://sdk/typescript) in the core docs.
</Note>

The SDK lives in [ai-openshell/sdk-typescript](https://github.com/ai-openshell/sdk-typescript) and is published to npm as `@ai-openshell/sdk`.
41 changes: 29 additions & 12 deletions test/assemble.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,14 @@ function sourcesYml() {
}

function assemble(name, ...extra) {
return assembleWith(sourcesYml(), name, ...extra);
}

function assembleWith(sources, name, ...extra) {
const out = path.join(tmp, name);
const r = spawnSync(
process.execPath,
[
assembler,
'--base',
'/docs/',
'--sources',
sourcesYml(),
'--out',
out,
'--cache',
path.join(tmp, 'cache'),
...extra,
],
[assembler, '--base', '/docs/', '--sources', sources, '--out', out, '--cache', path.join(tmp, 'cache'), ...extra],
{ encoding: 'utf8', env: { ...process.env, GITHUB_ACTIONS: '' } },
);
const read = (f) => fs.readFileSync(path.join(out, f), 'utf8');
Expand Down Expand Up @@ -165,3 +158,27 @@ describe('build with a --local checkout', () => {
assert.equal(build.json('sources.lock.json')['beta@dev'].sha, 'working-tree');
});
});

describe('a version from a directory in this repo', () => {
let build;
before(() => {
const file = path.join(tmp, 'stub-sources.yml');
fs.writeFileSync(
file,
`site:\n title: Test\n repo: example/docs\ntopics:\n - id: core\n label: Core\n sources: [alpha, stub]\nsources:\n alpha:\n mount: ""\n repo: ${repo('alpha')}\n path: docs\n versions:\n - { name: "1.0", ref: v1.0 }\n stub:\n mount: stub\n versions:\n - { name: preview, local: test/fixtures/stub }\n`,
);
build = assembleWith(file, 'stub');
});

test('builds without fetching and is recorded as this repo', () => {
assert.equal(build.status, 0, build.log);
const lock = build.json('sources.lock.json');
assert.equal(lock['stub@preview'].sha, 'working-tree');
assert.equal(lock['stub@preview'].repo, 'example/docs');
assert.equal(build.json('nav.json').docsets.stub.latest, 'preview');
});

test('is published at its mount and links to other docsets', () => {
assert.match(build.read('content/stub/index.mdx'), /\]\(\/docs\/guide\/\)/);
});
});
5 changes: 5 additions & 0 deletions test/fixtures/stub/docset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

title: Stub
nav:
- page: index.mdx
6 changes: 6 additions & 0 deletions test/fixtures/stub/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# SPDX-License-Identifier: Apache-2.0
title: Stub
---

Coming soon. Until then, see the [guide](alpha://guide).
Loading