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
9 changes: 8 additions & 1 deletion website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { execSync } from 'node:child_process';
import remarkGfm from 'remark-gfm';
import remarkBasePath from './src/plugins/remark-base-path.mjs';
import remarkHttpSnippets from './src/plugins/remark-http-snippets.mjs';

Expand Down Expand Up @@ -56,7 +57,13 @@ export default defineConfig({
output: 'static',
server: { port: docPort },
markdown: {
remarkPlugins: [[remarkBasePath, { base }], remarkHttpSnippets],
// remarkGfm is listed explicitly because Astro applies its built-in GFM
// support to .md only. MDX inherits `remarkPlugins` but not that built-in,
// so without this every table in a .mdx page renders as literal pipe
// characters. Splitting content between the two extensions is not an
// option here: the HTTP snippet plugin below emits JSX, which only .mdx
// renders, and several guides need both tables and snippets.
remarkPlugins: [remarkGfm, [remarkBasePath, { base }], remarkHttpSnippets],
},
integrations: [
starlight({
Expand Down
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"devDependencies": {
"acorn": "^8.16.0",
"httpsnippet-lite": "^3.0.5",
"remark-gfm": "^4.0.1",
"starlight-openapi": "^0.25.1",
"unist-util-visit": "^5.1.0",
"worktree-env": "^0.1.0"
}
}
}
3 changes: 3 additions & 0 deletions website/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading