Skip to content

Commit d808d87

Browse files
committed
chore: remove mermaid
1 parent bdacc38 commit d808d87

4 files changed

Lines changed: 7 additions & 917 deletions

File tree

‎docs/.vitepress/config.ts‎

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
import { defineConfig } from 'vitepress';
22
import * as path from 'node:path';
3+
import * as fs from 'node:fs';
34
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons';
45
import llmstxt from 'vitepress-plugin-llms';
5-
import { withMermaid } from 'vitepress-plugin-mermaid';
6-
import { createRequire } from 'node:module';
76
import type { DefaultTheme } from 'vitepress';
8-
import { cloudflareRedirect } from '@ryoppippi/vite-plugin-cloudflare-redirect'
7+
import { cloudflareRedirect } from '@ryoppippi/vite-plugin-cloudflare-redirect';
98

10-
const require = createRequire(import.meta.url);
11-
const typedocSidebar = (() => {
12-
try {
13-
return require('../api/typedoc-sidebar.json') as DefaultTheme.SidebarItem[];
14-
} catch {
15-
return [] satisfies DefaultTheme.SidebarItem[];
16-
}
17-
})();
189

19-
export default withMermaid(defineConfig({
10+
const typedocSidebarJson = fs.readFileSync(path.join(import.meta.dirname, '../api/typedoc-sidebar.json'))
11+
const typedocSidebar = JSON.parse(typedocSidebarJson.toString()) as DefaultTheme.SidebarItem[];
12+
13+
export default defineConfig({
2014
title: 'ccusage',
2115
description: 'Usage analysis tool for Claude Code',
2216
base: '/',
@@ -167,7 +161,4 @@ export default withMermaid(defineConfig({
167161
md.use(groupIconMdPlugin);
168162
},
169163
},
170-
mermaid: {
171-
// Optional mermaid configuration
172-
},
173-
}));
164+
});

‎docs/guide/index.md‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ ccusage analyzes the local JSONL files that Claude Code automatically generates
2424

2525
## How It Works
2626

27-
```mermaid
28-
graph LR
29-
A[Claude Code] --> B[Local JSONL Files]
30-
B --> C[ccusage]
31-
C --> D[Usage Reports]
32-
C --> E[Cost Analysis]
33-
C --> F[Live Monitoring]
34-
```
35-
3627
1. **Claude Code generates JSONL files** containing usage data
3728
2. **ccusage reads these files** from your local machine
3829
3. **Analyzes and aggregates** the data by date, session, or time blocks

‎docs/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"vitepress": "^1.6.4",
2424
"vitepress-plugin-group-icons": "^1.6.3",
2525
"vitepress-plugin-llms": "^1.7.3",
26-
"vitepress-plugin-mermaid": "^2.0.17",
2726
"wrangler": "^4.32.0"
2827
},
2928
"devEngines": {

0 commit comments

Comments
 (0)