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
1 change: 1 addition & 0 deletions docs/app/global.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import 'tailwindcss';
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
@import 'fumadocs-twoslash/twoslash.css';

html {
scrollbar-gutter: stable;
Expand Down
2 changes: 2 additions & 0 deletions docs/components/mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AutoTypeTable } from 'fumadocs-typescript/ui';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { TypeTable } from 'fumadocs-ui/components/type-table';
import defaultMdxComponents from 'fumadocs-ui/mdx';
import * as Twoslash from 'fumadocs-twoslash/ui';
import type { MDXComponents } from 'mdx/types';
import { CodeCompare } from './code-compare';

Expand All @@ -18,6 +19,7 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
Tab,
Tabs,
TypeTable,
...Twoslash,
...components,
};
}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ discovery won't reach, like alongside your sources). Supported formats:
`actio.config.ts`, `.mts`, `.cts`, `.js`, `.mjs`, `.cjs`, `.json` (TS/ESM are
loaded at runtime via [jiti](https://github.com/unjs/jiti) — no build step).

```ts title="actio.config.ts"
```ts twoslash title="actio.config.ts"
import { defineConfig } from "actio-core"; // also re-exported from "actio-cli/config"

export default defineConfig({
Expand Down
3 changes: 3 additions & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const basePath = process.env.PAGES_BASE_PATH ?? '';
const config = {
output: 'export',
reactStrictMode: true,
// Twoslash runs the TypeScript compiler at build time; keep these heavy,
// Node-only deps out of the bundler (per the Fumadocs Twoslash guide).
serverExternalPackages: ['typescript', 'twoslash'],
// actio-core ships as ESM built for node20; let Next transpile it for the browser.
transpilePackages: ['actio-core'],
trailingSlash: true,
Expand Down
79 changes: 78 additions & 1 deletion docs/package-lock.json

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

2 changes: 2 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"actio-core": "file:../packages/core",
"fumadocs-core": "16.10.4",
"fumadocs-mdx": "15.0.12",
"fumadocs-twoslash": "^3.2.0",
"fumadocs-typescript": "^5.2.6",
"fumadocs-ui": "16.10.4",
"lucide-react": "^1.20.0",
Expand All @@ -28,6 +29,7 @@
"react": "^19.2.7",
"react-dom": "^19.2.7",
"tailwind-merge": "^3.6.0",
"twoslash": "^0.3.9",
"yaml": "^2.9.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions docs/source.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
import { rehypeCodeDefaultOptions } from 'fumadocs-core/mdx-plugins';
import { transformerTwoslash } from 'fumadocs-twoslash';
import { transformerActioKeywords } from './lib/shiki-actio';

// You can customize Zod schemas for frontmatter and `meta.json` here
Expand All @@ -25,6 +26,7 @@ export default defineConfig({
transformers: [
...(rehypeCodeDefaultOptions.transformers ?? []),
transformerActioKeywords(),
transformerTwoslash(),
],
},
},
Expand Down
Loading