Skip to content

Commit 6ba986a

Browse files
committed
tweak docs style
1 parent 93dd4ae commit 6ba986a

7 files changed

Lines changed: 22 additions & 8 deletions

File tree

‎CLAUDE.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Full-stack framework for Cloudflare Workers, powered by Vite.
66

77
- **Important**: The source of truth for agent instructions is `CLAUDE.md` (this file). `AGENTS.md` is a symlink to this file. `README.md` is a separate public-facing file. When asked to update agent instructions, always update `CLAUDE.md`.
88
- Documentation source lives in `docs/`.
9+
- Docs is a Vitepress project using our custom theme. When asked to "link the theme", temporarily edit `docs/package.json` so that `@voidzero-dev/vitepress-theme` point to `link:../../../theme`. Rerun `pnpm install` to link it. Revert these when asked to "unlink the theme".
910

1011
## Important Note for Release Workflows
1112

@@ -33,9 +34,9 @@ The `void` package on npm has these previous versions: '0.0.1', '0.1.0', '0.1.2'
3334

3435
```
3536
pnpm -r build # Build all packages
36-
pnpm -C packages/void build # Build only the core plugin
37+
pnpm -C packages/void build # Build only the core plugin
3738
pnpm test # Run vitest (unit + integration tests)
38-
pnpm test packages/void # Only test the core plugin
39+
pnpm test packages/void # Only test the core plugin
3940
pnpm lint # oxlint
4041
pnpm fmt # oxfmt --write .
4142
pnpm check # Typecheck all packages (tsc --noEmit)

‎docs/.vitepress/config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const socialLinks = [
107107
const platformLinks = {
108108
text: "Platform",
109109
items: [
110+
{ text: "Company", link: "https://voidzero.dev" },
110111
{ text: "Features", link: "/platform/features" },
111112
{ text: "Pricing", link: "/platform/pricing" },
112113
{ text: "Enterprise", link: "/platform/enterprise" },

‎docs/.vitepress/theme/FileTree.vue‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,12 @@ const TreeNode = defineComponent({
328328
color: var(--vp-c-brand-1);
329329
}
330330
331+
/* Adapter tabs */
331332
/* Adapter tabs */
332333
.adapter-tabs {
333334
display: flex;
334335
gap: 0;
336+
overflow-x: auto;
335337
border: 1px solid var(--vp-c-divider);
336338
border-bottom: none;
337339
border-radius: 8px 8px 0 0;

‎docs/.vitepress/theme/Home.vue‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ const tree = (ext) => [
5555
<style scoped>
5656
.hero-file-tree {
5757
margin-top: 2rem;
58+
max-width: calc(100vw - 80px);
5859
}
5960
6061
@media (min-width: 768px) {
6162
.hero-file-tree {
6263
margin-top: 0;
64+
max-width: none;
6365
}
6466
}
6567

‎docs/.vitepress/theme/styles.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@
1414
:root[data-theme="light"] {
1515
--color-brand: #4f30e8;
1616
}
17+
18+
.dark .aside-credit-logo-dark {
19+
display: none !important;
20+
}
21+
22+
.dark .aside-credit-logo-light {
23+
display: inline !important;
24+
}

‎docs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"@iconify/vue": "5.0.0",
13-
"@voidzero-dev/vitepress-theme": "^4.7.0",
13+
"@voidzero-dev/vitepress-theme": "^4.7.1",
1414
"oxc-minify": "^0.114.0",
1515
"reka-ui": "2.8.2",
1616
"vitepress": "2.0.0-alpha.16",

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)