Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,15 @@ jobs:

- name: bun audit (block on high/critical)
# Blume's image-size has no patched release yet — ignore those GHSAs until one ships.
# Blume 2.1.3 subtree is docs build-time only (no src/ or published-tarball reach):
# brace-expansion via typedoc minimatch + Blume epub-gen-memory ejs jake filelist minimatch,
# http-cache-semantics via Blume @scalar/astro, source-map-js via Blume astro unifont css-tree.
# Runtime-touching advisories (fast-uri, proxy-addr via MCP SDK; tinypool via oxfmt) are
# fixed with package.json overrides instead — never ignored.
run: |
set +e
# bun emits ANSI color even when piped — strip it or the severity grep misses it.
NO_COLOR=1 bun audit --ignore=GHSA-w3rx-r6r6-pgpr --ignore=GHSA-5p2g-fcmc-qvqq 2>&1 | sed -E 's/\x1b\[[0-9;]*m//g' > /tmp/bun-audit.log
NO_COLOR=1 bun audit --ignore=GHSA-w3rx-r6r6-pgpr --ignore=GHSA-5p2g-fcmc-qvqq --ignore=GHSA-qhr7-859c-m2p7 --ignore=GHSA-6j4f-fj2g-mc7p --ignore=GHSA-ch52-4w7c-c8xp --ignore=GHSA-68fv-2mgg-jv7q 2>&1 | sed -E 's/\x1b\[[0-9;]*m//g' > /tmp/bun-audit.log
cat /tmp/bun-audit.log
if grep -E '(^|[[:space:]])(high|critical):[[:space:]]' /tmp/bun-audit.log; then
echo "::error::high or critical vulnerabilities found — blocking"
Expand Down
43 changes: 28 additions & 15 deletions apps/docs/blume.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { defineConfig } from "blume";
import { orama } from "blume/search";
import { filesystem, githubReleases } from "blume/sources";

import { CURATED_POPULAR } from "./components/curated-popular";

Expand All @@ -16,34 +18,43 @@ export default defineConfig({

logo: { image: "/logo.svg", text: "Codemap" },

footer: {
links: [
{ label: "Changelog", href: "/changelog" },
{ label: "Website", href: "https://stainless-code.com" },
],
socials: {
github: "https://github.com/stainless-code/codemap",
},
},

github: {
owner: "stainless-code",
repo: "codemap",
branch: "main",
dir: "apps/docs",
},

lastModified: true,
lastModified: "git",

content: {
sources: [
{ type: "filesystem", root: "content" },
{
type: "github-releases",
filesystem({ root: "content" }),
githubReleases({
prefix: "changelog",
owner: "stainless-code",
repo: "codemap",
limit: 100,
},
}),
],
},

navigation: {
tabs: [
{ label: "Guides", path: "/guides", icon: "book-open" },
{ label: "Recipes", path: "/recipes", icon: "flask-conical" },
{ label: "Concepts", path: "/concepts", icon: "lightbulb" },
{ label: "Reference", path: "/reference", icon: "code" },
{ label: "Guides", path: "/guides" },
{ label: "Recipes", path: "/recipes" },
{ label: "Concepts", path: "/concepts" },
{ label: "Reference", path: "/reference" },
],
featured: [
{ label: "Changelog", href: "/changelog", icon: "sparkles" },
Expand All @@ -69,7 +80,7 @@ export default defineConfig({
},
},
search: {
provider: "orama",
provider: orama(),
// Cmd+K empty-state + shared with 404 via CURATED_POPULAR.
popular: CURATED_POPULAR.map(({ route, label }) => ({
href: route,
Expand All @@ -78,16 +89,20 @@ export default defineConfig({
},

markdown: {
code: { icons: true },
codeBlocks: { theme: { light: "github-light", dark: "github-dark" } },
externalLinks: true,
code: {
icons: true,
theme: { light: "github-light", dark: "github-dark" },
},
},

toc: { minHeadingLevel: 2, maxHeadingLevel: 3 },

export: { epub: true, pdf: true },

ai: {
agents: {
llmsTxt: true,
agentReadability: true,
},

seo: {
Expand All @@ -99,11 +114,9 @@ export default defineConfig({
sitemap: true,
robots: true,
structuredData: true,
agentReadability: true,
},

deployment: {
output: "static",
site: "https://stainless-code.com",
base: "/codemap",
},
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/components.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { defineComponents } from "blume";

import Header from "./components/blume/Header.astro";
import Pagination from "./components/blume/Pagination.astro";

export default defineComponents({
layout: {
Header,
// Footer omitted from layout — homepage-only in `pages/index.astro`.
// Theme radius (rounded-blume) instead of built-in pill corners.
Pagination,
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/components/blume/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const groups: {
];
---

<footer class="border-border border-t">
<div class="mx-auto max-w-[1400px] px-6 py-16 sm:py-20">
<footer class="landing-gutter border-border border-t">
<div class="mx-auto max-w-[1160px] py-14 sm:py-16">
<div class="grid gap-12 lg:grid-cols-[1.4fr_3fr] lg:gap-16">
<div class="lg:w-72 lg:shrink-0">
<Logo logo={logo} site={site} />
Expand Down
Loading
Loading