File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { defineConfig } from 'vitepress' ;
22import * as path from 'node:path' ;
3+ import * as fs from 'node:fs' ;
34import { groupIconMdPlugin , groupIconVitePlugin } from 'vitepress-plugin-group-icons' ;
45import llmstxt from 'vitepress-plugin-llms' ;
5- import { withMermaid } from 'vitepress-plugin-mermaid' ;
6- import { createRequire } from 'node:module' ;
76import 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+ } ) ;
Original file line number Diff line number Diff 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-
36271 . ** Claude Code generates JSONL files** containing usage data
37282 . ** ccusage reads these files** from your local machine
38293 . ** Analyzes and aggregates** the data by date, session, or time blocks
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments