From f8a744ee6cb264fc72d06407337b83a20084d373 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Fri, 20 Nov 2026 13:17:26 -0800 Subject: [PATCH 1/6] feat(site): serve a landing page at / and the docs at /docs/ Netlify now builds the docs with BASE_PATH=/docs/ and publishes build/website, which scripts/website.mjs assembles from the static landing page in landing/ and the docs build. The GitHub Pages workflow is unchanged. Signed-off-by: Piotr Mlocek --- CONTRIBUTING.md | 2 + README.md | 4 + landing/index.html | 112 ++++++++++++++++++++++++++ landing/landing.css | 188 ++++++++++++++++++++++++++++++++++++++++++++ mise.toml | 9 +++ netlify.toml | 12 +-- package.json | 1 + scripts/website.mjs | 28 +++++++ 8 files changed, 351 insertions(+), 5 deletions(-) create mode 100644 landing/index.html create mode 100644 landing/landing.css create mode 100644 scripts/website.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1a9111b..309c2b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,6 +20,8 @@ mise run install | ------------------- | -------------------------------------------------------- | | `mise run build` | Fetch every source and build the site into `site/dist` | | `mise run serve` | Serve the built site at | +| `mise run website` | Build the site and add the landing page into `build/website` | +| `mise run serve-website` | Serve the website at | | `mise run assemble` | Fetch and assemble the sources without building the site | | `mise run test` | Run the assembler's unit tests | | `mise run lint` | Check formatting and lint with [Biome](https://biomejs.dev/) | diff --git a/README.md b/README.md index 30e0145..ee7fb9d 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ previews for source repositories are tracked in To publish a new release, add its tag to `sources.yml`. +The published website serves a small landing page from [`landing/`](landing/) +at `/` and the docs at `/docs/`. [`scripts/website.mjs`](scripts/website.mjs) +combines the two after the docs build. + ## Run it locally ```shell diff --git a/landing/index.html b/landing/index.html new file mode 100644 index 0000000..6dd8532 --- /dev/null +++ b/landing/index.html @@ -0,0 +1,112 @@ + + + + + + + + OpenShell + + + + + + + + + + + +
+ + + OpenShell + + +
+ +
+
+

The safe, private runtime for autonomous AI agents

+

+ Agents are most useful when they can read files, install packages, call APIs, and use credentials. OpenShell + gives them that without unrestricted access to your data, secrets, or network. You declare what each agent can + touch in a policy, and OpenShell enforces it. +

+ +
+ +
+

Get started

+
$ curl -LsSf https://raw.githubusercontent.com/ai-openshell/openshell/main/install.sh | sh
+$ openshell sandbox create --name demo
+

+ The installer sets up the CLI and a local gateway. You need Linux, macOS on Apple Silicon, or Windows with WSL 2, + plus Docker, Podman, or host virtualization. +

+
+ +
+
+

Kernel-level enforcement

+

+ Each agent runs in an isolated sandbox. Kernel controls confine which files it can access and which system + calls it can make. +

+
+
+

Policy on every connection

+

+ Every network connection passes a policy check before it leaves the sandbox. Agents never see real + credentials; OpenShell adds them only to requests bound for approved endpoints. +

+
+
+

Verified policy changes

+

+ Before a policy change is approved, formal verification flags risky new access it would grant, so those + changes wait for human review. +

+
+
+
+ + + + diff --git a/landing/landing.css b/landing/landing.css new file mode 100644 index 0000000..e64959c --- /dev/null +++ b/landing/landing.css @@ -0,0 +1,188 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +/* Landing page styles. Colors and fonts come from theme/tokens.css (--os-*). */ +:root[data-theme="light"] { + color-scheme: light; +} +:root[data-theme="dark"] { + color-scheme: dark; +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; + background: var(--os-bg); + color: var(--os-fg); + font-family: var(--os-font-sans); + line-height: 1.6; +} + +a { + color: var(--os-accent-text); +} + +.top { + display: flex; + align-items: center; + justify-content: space-between; + height: var(--os-header-h); + padding: 0 1.5rem; + border-bottom: 1px solid var(--os-border); +} + +.wordmark { + display: flex; + align-items: center; + gap: 0.5rem; + color: var(--os-fg); + font-weight: 600; + font-size: 1.0625rem; + text-decoration: none; +} +.wordmark svg { + height: 1.5rem; + width: auto; +} + +.top nav { + display: flex; + gap: 1.25rem; +} +.top nav a { + color: var(--os-muted); + font-size: 0.9375rem; + text-decoration: none; +} +.top nav a:hover { + color: var(--os-fg); +} + +main { + max-width: 64rem; + margin: 0 auto; + padding: 0 1.5rem; +} + +.hero { + padding: 5rem 0 3rem; + max-width: 46rem; +} +.hero h1 { + margin: 0; + font-size: clamp(2rem, 5vw, 3rem); + line-height: 1.15; + letter-spacing: -0.02em; +} +.lede { + margin: 1.25rem 0 0; + color: var(--os-muted); + font-size: 1.125rem; +} + +.actions { + display: flex; + flex-wrap: wrap; + gap: 0.75rem; + margin-top: 2rem; +} +.button { + display: inline-block; + padding: 0.625rem 1.125rem; + border: 1px solid var(--os-border); + border-radius: var(--os-radius); + color: var(--os-fg); + font-weight: 500; + text-decoration: none; +} +.button:hover { + border-color: var(--os-muted); +} +.button.primary { + background: var(--os-accent); + border-color: var(--os-accent); + color: #0d0f0b; +} +.button.primary:hover { + filter: brightness(1.08); +} + +.install h2, +.features h2 { + margin: 0 0 0.75rem; + font-size: 1.125rem; +} +.install pre { + margin: 0; + padding: 1rem 1.25rem; + overflow-x: auto; + background: var(--os-surface); + border: 1px solid var(--os-border); + border-radius: var(--os-radius); + font-family: var(--os-font-mono); + font-size: 0.8125rem; + line-height: 1.7; +} +.prompt { + color: var(--os-muted); + user-select: none; +} +.install p { + margin: 0.75rem 0 0; + color: var(--os-muted); + font-size: 0.9375rem; +} + +.features { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); + gap: 1rem; + padding: 3rem 0 4rem; +} +.features article { + padding: 1.25rem; + background: var(--os-surface); + border: 1px solid var(--os-border); + border-top: 2px solid var(--os-accent); + border-radius: var(--os-radius); +} +.features p { + margin: 0; + color: var(--os-muted); + font-size: 0.9375rem; +} + +.cncf { + display: flex; + flex-direction: column; + align-items: center; + gap: 0.75rem; + padding: 1.5rem 1.5rem 2.5rem; + border-top: 1px solid var(--os-border); + color: var(--os-muted); + font-size: 0.8125rem; + text-align: center; +} +.cncf p { + margin: 0; +} +.cncf a { + color: inherit; +} +.cncf a:hover { + color: var(--os-fg); +} +.cncf-logo img { + display: block; + height: 2rem; + width: auto; +} +.cncf-logo .dark-only, +:root[data-theme="dark"] .cncf-logo .light-only { + display: none; +} +:root[data-theme="dark"] .cncf-logo .dark-only { + display: block; +} diff --git a/mise.toml b/mise.toml index 6e9e979..0551e4a 100644 --- a/mise.toml +++ b/mise.toml @@ -20,6 +20,15 @@ depends = ["assemble"] env = { BASE_PATH = "/docs/" } run = "npm run site" +[tasks.website] +description = "Build the site, then add the landing page at / with the docs at /docs/" +depends = ["build"] +run = "npm run website" + +[tasks.serve-website] +description = "Serve the website at http://127.0.0.1:4410/" +run = "node scripts/serve.mjs build/website 4410 /" + [tasks.test] description = "Run the unit tests for the assembler" run = "npm test" diff --git a/netlify.toml b/netlify.toml index d3cd242..34aa6cc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,12 @@ # SPDX-License-Identifier: Apache-2.0 # Netlify build settings. These override the settings in the Netlify UI. -# `npm run build` fetches the sources and assembles the pages before -# building the site; `npm run site` alone expects them to be assembled already. -# Netlify serves the site at the root, so BASE_PATH stays unset. +# `npm run build` fetches the sources and builds the docs under /docs/; +# `npm run website` then puts the landing page at / and the docs at /docs/. [build] -command = "npm run build" -publish = "site/dist" +command = "npm run build && npm run website" +publish = "build/website" + +[build.environment] +BASE_PATH = "/docs/" diff --git a/package.json b/package.json index ee37512..fb74659 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "sync": "node site/scripts/sync.mjs", "build": "npm run assemble && npm run site", "site": "npm run sync && astro build --root site && node scripts/redirects.mjs site/dist", + "website": "node scripts/website.mjs site/dist build/website", "dev": "npm run sync && astro dev --root site", "lint": "biome ci --error-on-warnings .", "format": "biome check --write .", diff --git a/scripts/website.mjs b/scripts/website.mjs new file mode 100644 index 0000000..9895bb0 --- /dev/null +++ b/scripts/website.mjs @@ -0,0 +1,28 @@ +#!/usr/bin/env node +// SPDX-License-Identifier: Apache-2.0 +// Assemble the website: the landing page at / and the docs build at /docs/. +// The docs build must use BASE_PATH=/docs/ so its links resolve under /docs/. +// Usage: node scripts/website.mjs site/dist build/website +import fs from 'node:fs'; +import path from 'node:path'; + +const MOUNT = 'docs'; +const [docs = 'site/dist', out = 'build/website'] = process.argv.slice(2).map((p) => path.resolve(p)); +const repo = path.resolve(import.meta.dirname, '..'); + +const { base } = JSON.parse(fs.readFileSync(path.join(docs, 'versions.json'), 'utf8')); +if (base !== `/${MOUNT}/`) { + console.error(`${docs} was built with base ${base}; rebuild it with BASE_PATH=/${MOUNT}/`); + process.exit(1); +} + +fs.rmSync(out, { recursive: true, force: true }); +fs.cpSync(path.join(repo, 'landing'), out, { recursive: true }); +fs.copyFileSync(path.join(repo, 'theme/tokens.css'), path.join(out, 'tokens.css')); +for (const f of ['favicon.svg', 'apple-touch-icon.png', 'cncf']) + fs.cpSync(path.join(repo, 'site/static', f), path.join(out, f), { recursive: true }); +fs.cpSync(docs, path.join(out, MOUNT), { recursive: true }); +// Hosts serve /404.html for any missing path. The docs one links its assets +// absolutely (/docs/_astro/...), so it works at the root too. +fs.copyFileSync(path.join(docs, '404.html'), path.join(out, '404.html')); +console.log(`website -> ${path.relative(process.cwd(), out)} (landing at /, docs at /${MOUNT}/)`); From 5de64729e2800fe195a5a2f595b0eb34ee19be25 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Fri, 20 Nov 2026 13:28:45 -0800 Subject: [PATCH 2/6] feat(site): match the landing page to the docs and make commands copyable Each install command gets a copy button. The terminal frame, cards, text colors, and code colors now follow the docs theme, and the header gains a GitHub link and a theme toggle shared with the docs. The feature cards link to the matching docs pages. Signed-off-by: Piotr Mlocek --- landing/index.html | 151 ++++++++++++++---- landing/landing.css | 373 +++++++++++++++++++++++++++++++++++++------- 2 files changed, 438 insertions(+), 86 deletions(-) diff --git a/landing/index.html b/landing/index.html index 6dd8532..e474a88 100644 --- a/landing/index.html +++ b/landing/index.html @@ -18,7 +18,7 @@ diff --git a/landing/landing.css b/landing/landing.css index e64959c..9bf9ae3 100644 --- a/landing/landing.css +++ b/landing/landing.css @@ -1,12 +1,31 @@ /* SPDX-License-Identifier: Apache-2.0 */ -/* Landing page styles. Colors and fonts come from theme/tokens.css (--os-*). */ +/* Landing page styles. Colors and fonts come from theme/tokens.css (--os-*); + text, card, and code colors follow site/src/styles/theme.css so the page + matches the docs. */ +:root { + --text: #d3d8cc; + --strong: var(--os-fg); + --glow: color-mix(in srgb, var(--os-accent) 14%, transparent); + /* github-dark-default, the docs code theme */ + --t-fn: #ffa657; + --t-flag: #79c0ff; + --t-str: #a5d6ff; + --t-op: #ff7b72; + --t-text: #e6edf3; + color-scheme: dark; +} :root[data-theme="light"] { + --text: #262a20; + --glow: color-mix(in srgb, var(--os-accent) 18%, transparent); + /* github-light */ + --t-fn: #6f42c1; + --t-flag: #005cc5; + --t-str: #032f62; + --t-op: #bf3441; + --t-text: #24292e; color-scheme: light; } -:root[data-theme="dark"] { - color-scheme: dark; -} * { box-sizing: border-box; @@ -14,72 +33,172 @@ body { margin: 0; - background: var(--os-bg); - color: var(--os-fg); + /* A soft accent glow behind the hero */ + background: + radial-gradient(48rem 26rem at 25% 6rem, var(--glow), transparent 70%) no-repeat, + var(--os-bg); + color: var(--text); font-family: var(--os-font-sans); - line-height: 1.6; + line-height: 1.7; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +::selection { + background: color-mix(in srgb, var(--os-accent) 35%, transparent); } a { color: var(--os-accent-text); + text-decoration-color: color-mix(in srgb, var(--os-accent-text) 40%, transparent); + text-underline-offset: 0.2em; +} +a:hover { + text-decoration-color: currentColor; +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + clip-path: inset(50%); + white-space: nowrap; } +/* ---------- header ---------- */ .top { + position: sticky; + top: 0; + z-index: 10; display: flex; align-items: center; justify-content: space-between; height: var(--os-header-h); padding: 0 1.5rem; border-bottom: 1px solid var(--os-border); + background: color-mix(in srgb, var(--os-bg) 85%, transparent); + backdrop-filter: blur(8px); } .wordmark { display: flex; align-items: center; - gap: 0.5rem; - color: var(--os-fg); + gap: 0.55rem; + color: var(--strong); font-weight: 600; - font-size: 1.0625rem; + font-size: 1rem; + letter-spacing: -0.01em; text-decoration: none; } .wordmark svg { - height: 1.5rem; + height: 1.625rem; width: auto; } .top nav { display: flex; - gap: 1.25rem; + align-items: center; + gap: 0.25rem; } -.top nav a { +.nav-link { + padding: 0.25rem 0.625rem; color: var(--os-muted); - font-size: 0.9375rem; + font-size: 0.875rem; + font-weight: 500; text-decoration: none; } -.top nav a:hover { - color: var(--os-fg); +.nav-link:hover { + color: var(--strong); +} +.icon-link { + display: grid; + place-items: center; + width: 2rem; + height: 2rem; + padding: 0; + border: 0; + border-radius: var(--os-radius); + background: none; + color: var(--os-muted); + cursor: pointer; +} +.icon-link:hover { + color: var(--strong); + background: var(--os-surface); +} +.icon-link svg { + width: 1.125rem; + height: 1.125rem; +} +:root[data-theme="dark"] .theme-toggle .moon, +:root[data-theme="light"] .theme-toggle .sun { + display: none; } +/* ---------- layout ---------- */ main { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; } +section { + padding: 2.5rem 0; +} +h1, +h2 { + color: var(--strong); + font-weight: 600; + letter-spacing: -0.02em; +} +h2 { + margin: 0; + font-size: 1.5rem; + line-height: 1.3; +} +.section-lede { + margin: 0.375rem 0 1.25rem; + color: var(--os-muted); +} +/* ---------- hero ---------- */ .hero { - padding: 5rem 0 3rem; - max-width: 46rem; + padding: 5.5rem 0 3rem; +} +.eyebrow { + display: inline-flex; + align-items: center; + gap: 0.5rem; + padding: 0.25rem 0.75rem; + border: 1px solid color-mix(in srgb, var(--os-accent) 45%, var(--os-border)); + border-radius: 999px; + background: var(--os-accent-soft); + color: var(--os-accent-text); + font-size: 0.8125rem; + font-weight: 500; + text-decoration: none; +} +.eyebrow .dot { + width: 0.4375rem; + height: 0.4375rem; + border-radius: 50%; + background: var(--os-accent); } .hero h1 { - margin: 0; - font-size: clamp(2rem, 5vw, 3rem); - line-height: 1.15; - letter-spacing: -0.02em; + max-width: 48rem; + margin: 1.25rem 0 0; + font-size: clamp(2.25rem, 5.5vw, 3.5rem); + line-height: 1.08; + letter-spacing: -0.035em; +} +.hero .accent { + color: var(--os-accent-text); } .lede { + max-width: 42rem; margin: 1.25rem 0 0; color: var(--os-muted); font-size: 1.125rem; + line-height: 1.65; } .actions { @@ -89,80 +208,214 @@ main { margin-top: 2rem; } .button { - display: inline-block; + display: inline-flex; + align-items: center; + gap: 0.4rem; padding: 0.625rem 1.125rem; border: 1px solid var(--os-border); border-radius: var(--os-radius); - color: var(--os-fg); + background: var(--os-bg); + color: var(--strong); + font-size: 0.9375rem; font-weight: 500; text-decoration: none; + transition: + border-color 120ms, + box-shadow 120ms, + filter 120ms; } .button:hover { - border-color: var(--os-muted); + border-color: color-mix(in srgb, var(--os-accent) 70%, var(--os-border)); } .button.primary { - background: var(--os-accent); border-color: var(--os-accent); + background: var(--os-accent); color: #0d0f0b; + box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--os-accent) 80%, transparent); } .button.primary:hover { - filter: brightness(1.08); + filter: brightness(1.06); } -.install h2, -.features h2 { - margin: 0 0 0.75rem; - font-size: 1.125rem; -} -.install pre { +/* ---------- terminal (matches the docs CommandTerminal) ---------- */ +.terminal { margin: 0; - padding: 1rem 1.25rem; - overflow-x: auto; - background: var(--os-surface); border: 1px solid var(--os-border); border-radius: var(--os-radius); + background: var(--os-surface); + overflow: hidden; +} +.terminal figcaption { + height: 2rem; + border-bottom: 1px solid var(--os-border); + background-image: + radial-gradient(circle, color-mix(in srgb, var(--os-muted) 45%, transparent) 0.3rem, transparent 0.32rem), + radial-gradient(circle, color-mix(in srgb, var(--os-muted) 45%, transparent) 0.3rem, transparent 0.32rem), + radial-gradient(circle, color-mix(in srgb, var(--os-muted) 45%, transparent) 0.3rem, transparent 0.32rem); + background-position: + 0.75rem center, + 1.5rem center, + 2.25rem center; + background-size: 0.75rem 0.75rem; + background-repeat: no-repeat; +} +.cmd { + display: flex; + align-items: center; + gap: 0.75rem; + padding: 0.5rem 0.5rem 0.5rem 1rem; +} +.cmd + .cmd { + border-top: 1px dashed var(--os-border); +} +.cmd code { + flex: 1; + min-width: 0; + overflow-x: auto; + color: var(--t-text); font-family: var(--os-font-mono); font-size: 0.8125rem; line-height: 1.7; + white-space: nowrap; + scrollbar-width: thin; } -.prompt { +.cmd code::before { + content: "$ "; color: var(--os-muted); user-select: none; } -.install p { - margin: 0.75rem 0 0; +.t-fn { + color: var(--t-fn); +} +.t-flag { + color: var(--t-flag); +} +.t-str { + color: var(--t-str); +} +.t-op { + color: var(--t-op); +} + +.copy { + position: relative; + flex: none; + width: 2rem; + height: 2rem; + border: 1px solid var(--os-border); + border-radius: var(--os-radius); + background: var(--os-bg); color: var(--os-muted); - font-size: 0.9375rem; + cursor: pointer; + transition: + color 120ms, + border-color 120ms; +} +.copy:hover { + color: var(--strong); + border-color: var(--os-muted); +} +.copy::before { + content: ""; + position: absolute; + inset: 0; + margin: auto; + width: 1rem; + height: 1rem; + background: currentColor; + mask: + url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E") + center / contain no-repeat; +} +.copy[data-copied] { + color: var(--os-accent-text); + border-color: color-mix(in srgb, var(--os-accent) 70%, var(--os-border)); +} +.copy[data-copied]::before { + mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); +} +.copy[data-copied]::after { + content: "Copied!"; + position: absolute; + right: calc(100% + 0.5rem); + top: 50%; + transform: translateY(-50%); + padding: 0.125rem 0.5rem; + border-radius: var(--os-radius); + background: var(--strong); + color: var(--os-bg); + font: 500 0.75rem / 1.5 var(--os-font-sans); + white-space: nowrap; } -.features { +.note { + margin: 0.875rem 0 0; + color: var(--os-muted); + font-size: 0.875rem; +} + +/* ---------- cards (match the docs .os-card) ---------- */ +.cards { display: grid; - grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); - gap: 1rem; - padding: 3rem 0 4rem; + gap: 0.875rem; + grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); + margin-top: 1.25rem; } -.features article { - padding: 1.25rem; - background: var(--os-surface); +.card { + display: flex; + flex-direction: column; + gap: 0.35rem; + padding: 1rem 1.125rem; border: 1px solid var(--os-border); - border-top: 2px solid var(--os-accent); - border-radius: var(--os-radius); + border-radius: calc(var(--os-radius) + 2px); + background: var(--os-bg); + color: var(--text); + text-decoration: none; + transition: + border-color 120ms, + box-shadow 120ms; } -.features p { - margin: 0; - color: var(--os-muted); +.card:hover { + border-color: color-mix(in srgb, var(--os-accent) 70%, var(--os-border)); + box-shadow: 0 6px 20px -12px color-mix(in srgb, var(--os-accent) 60%, transparent); +} +.card-title { + display: flex; + align-items: center; + gap: 0.4rem; + color: var(--strong); font-size: 0.9375rem; + font-weight: 600; +} +.arrow { + margin-inline-start: auto; + color: var(--os-muted); + font-size: 0.875rem; + transition: + transform 120ms, + color 120ms; +} +.card:hover .arrow { + color: var(--os-accent-text); + transform: translateX(2px); +} +.card-body { + color: var(--os-muted); + font-size: 0.875rem; + line-height: 1.55; } +/* ---------- footer (matches the docs CNCF footer) ---------- */ .cncf { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; + margin-top: 2.5rem; padding: 1.5rem 1.5rem 2.5rem; border-top: 1px solid var(--os-border); color: var(--os-muted); - font-size: 0.8125rem; + font-size: 0.75rem; text-align: center; } .cncf p { @@ -172,7 +425,7 @@ main { color: inherit; } .cncf a:hover { - color: var(--os-fg); + color: var(--strong); } .cncf-logo img { display: block; @@ -186,3 +439,15 @@ main { :root[data-theme="dark"] .cncf-logo .dark-only { display: block; } + +@media (max-width: 40rem) { + .top { + padding: 0 1rem; + } + main { + padding: 0 1rem; + } + .hero { + padding-top: 3.5rem; + } +} From 6c9f2f0b1d2eb112d665a19d1e563b6f48edb978 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Fri, 20 Nov 2026 13:29:28 -0800 Subject: [PATCH 3/6] refactor(site): move the landing page into www/ "landing" already names topic landing pages in the assembler, and "content" names the generated Astro content. www/ holds the static files served at the site root. Signed-off-by: Piotr Mlocek --- README.md | 2 +- scripts/website.mjs | 5 +++-- {landing => www}/index.html | 4 ++-- landing/landing.css => www/style.css | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) rename {landing => www}/index.html (97%) rename landing/landing.css => www/style.css (99%) diff --git a/README.md b/README.md index ee7fb9d..6e2ea3a 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ previews for source repositories are tracked in To publish a new release, add its tag to `sources.yml`. -The published website serves a small landing page from [`landing/`](landing/) +The published website serves a small landing page from [`www/`](www/) at `/` and the docs at `/docs/`. [`scripts/website.mjs`](scripts/website.mjs) combines the two after the docs build. diff --git a/scripts/website.mjs b/scripts/website.mjs index 9895bb0..2e45dbb 100644 --- a/scripts/website.mjs +++ b/scripts/website.mjs @@ -1,6 +1,7 @@ #!/usr/bin/env node // SPDX-License-Identifier: Apache-2.0 -// Assemble the website: the landing page at / and the docs build at /docs/. +// Assemble the website: the files in www/ (the landing page) at / and the +// docs build at /docs/. // The docs build must use BASE_PATH=/docs/ so its links resolve under /docs/. // Usage: node scripts/website.mjs site/dist build/website import fs from 'node:fs'; @@ -17,7 +18,7 @@ if (base !== `/${MOUNT}/`) { } fs.rmSync(out, { recursive: true, force: true }); -fs.cpSync(path.join(repo, 'landing'), out, { recursive: true }); +fs.cpSync(path.join(repo, 'www'), out, { recursive: true }); fs.copyFileSync(path.join(repo, 'theme/tokens.css'), path.join(out, 'tokens.css')); for (const f of ['favicon.svg', 'apple-touch-icon.png', 'cncf']) fs.cpSync(path.join(repo, 'site/static', f), path.join(out, f), { recursive: true }); diff --git a/landing/index.html b/www/index.html similarity index 97% rename from landing/index.html rename to www/index.html index e474a88..4c0fb5b 100644 --- a/landing/index.html +++ b/www/index.html @@ -1,6 +1,6 @@ - + @@ -16,7 +16,7 @@ href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap" /> - +