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
10 changes: 10 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ export default withMermaid(
base: "/temporal-contract/",
lang: "en-US",

// `@btravstack/theme` re-exports VitePress's default theme, which imports
// `.css`. Externalizing it during SSR makes Node try to `import` those
// stylesheets and throw `ERR_UNKNOWN_FILE_EXTENSION`. Transform the theme
// package through Vite instead so the CSS imports are handled.
vite: {
ssr: {
noExternal: ["@btravstack/theme"],
},
},

ignoreDeadLinks: [
// Ignore localhost links as they're for development examples
/^http:\/\/localhost/,
Expand Down
9 changes: 0 additions & 9 deletions docs/.vitepress/theme/custom.css

This file was deleted.

5 changes: 2 additions & 3 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DefaultTheme from "vitepress/theme";
import "./custom.css";
import Theme from "@btravstack/theme";

export default DefaultTheme;
export default Theme;
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@temporal-contract/worker": "workspace:*"
},
"devDependencies": {
"@btravstack/theme": "catalog:",
"@temporal-contract/tsconfig": "workspace:*",
Comment thread
btravers marked this conversation as resolved.
"@types/node": "catalog:",
"mermaid": "11.15.0",
Expand Down
Loading
Loading