@doccov/fumadocs-adapter 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bunup.config.ts +10 -0
- package/dist/components/index.d.ts +160 -0
- package/dist/components/index.js +237 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +10 -0
- package/dist/server.d.ts +34 -0
- package/dist/server.js +38 -0
- package/dist/shared/chunk-pqaj3kdh.js +1488 -0
- package/package.json +33 -0
- package/src/components/api-page.tsx +90 -0
- package/src/components/class-page.tsx +165 -0
- package/src/components/code-example.tsx +40 -0
- package/src/components/collapsible-method.tsx +185 -0
- package/src/components/coverage-badge.tsx +80 -0
- package/src/components/enum-page.tsx +86 -0
- package/src/components/examples.tsx +84 -0
- package/src/components/expandable-property.tsx +240 -0
- package/src/components/function-page.tsx +93 -0
- package/src/components/index.ts +51 -0
- package/src/components/interface-page.tsx +94 -0
- package/src/components/members-section.tsx +193 -0
- package/src/components/method-section.tsx +18 -0
- package/src/components/parameter-card.tsx +53 -0
- package/src/components/signature.tsx +108 -0
- package/src/components/type-table.tsx +80 -0
- package/src/components/variable-page.tsx +78 -0
- package/src/index.ts +8 -0
- package/src/server.ts +80 -0
- package/src/styles/docskit.css +130 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docskit CSS Variables for Fumadocs
|
|
3
|
+
*
|
|
4
|
+
* This file defines the CSS variables needed for @doccov/ui docskit components
|
|
5
|
+
* to work within Fumadocs themes.
|
|
6
|
+
*
|
|
7
|
+
* Import this in your global CSS:
|
|
8
|
+
* @import '@doccov/fumadocs-adapter/css';
|
|
9
|
+
*
|
|
10
|
+
* Or add these variables to your Tailwind CSS:
|
|
11
|
+
* @import 'tailwindcss';
|
|
12
|
+
* @import 'fumadocs-ui/css/neutral.css';
|
|
13
|
+
* @import 'fumadocs-ui/css/preset.css';
|
|
14
|
+
* @import '@doccov/fumadocs-adapter/css';
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@layer base {
|
|
18
|
+
:root {
|
|
19
|
+
/* Docskit code block colors - mapped to Fumadocs variables */
|
|
20
|
+
--dk-background: var(--color-fd-card, hsl(0 0% 3%));
|
|
21
|
+
--dk-border: var(--color-fd-border, hsl(0 0% 18%));
|
|
22
|
+
--dk-tabs-background: var(--color-fd-muted, hsl(0 0% 10%));
|
|
23
|
+
--dk-tab-inactive-foreground: var(--color-fd-muted-foreground, hsl(0 0% 60%));
|
|
24
|
+
--dk-tab-active-foreground: var(--color-fd-foreground, hsl(0 0% 98%));
|
|
25
|
+
--dk-selection: var(--color-fd-primary, hsl(220 70% 50%));
|
|
26
|
+
|
|
27
|
+
/* Line highlight colors */
|
|
28
|
+
--dk-line-bg: transparent;
|
|
29
|
+
--dk-line-border: transparent;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Light mode overrides if needed */
|
|
33
|
+
.light, [data-theme="light"] {
|
|
34
|
+
--dk-background: var(--color-fd-card, hsl(0 0% 98%));
|
|
35
|
+
--dk-border: var(--color-fd-border, hsl(0 0% 85%));
|
|
36
|
+
--dk-tabs-background: var(--color-fd-muted, hsl(0 0% 95%));
|
|
37
|
+
--dk-tab-inactive-foreground: var(--color-fd-muted-foreground, hsl(0 0% 45%));
|
|
38
|
+
--dk-tab-active-foreground: var(--color-fd-foreground, hsl(0 0% 10%));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Tailwind utility classes for docskit */
|
|
43
|
+
@layer utilities {
|
|
44
|
+
.bg-dk-background {
|
|
45
|
+
background-color: var(--dk-background);
|
|
46
|
+
}
|
|
47
|
+
.bg-dk-tabs-background {
|
|
48
|
+
background-color: var(--dk-tabs-background);
|
|
49
|
+
}
|
|
50
|
+
.border-dk-border {
|
|
51
|
+
border-color: var(--dk-border);
|
|
52
|
+
}
|
|
53
|
+
.text-dk-tab-inactive-foreground {
|
|
54
|
+
color: var(--dk-tab-inactive-foreground);
|
|
55
|
+
}
|
|
56
|
+
.text-dk-tab-active-foreground {
|
|
57
|
+
color: var(--dk-tab-active-foreground);
|
|
58
|
+
}
|
|
59
|
+
.selection\:bg-dk-selection::selection,
|
|
60
|
+
.selection\:bg-dk-selection *::selection {
|
|
61
|
+
background-color: var(--dk-selection);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* CodeHike syntax highlighting theme - github-from-css */
|
|
66
|
+
/* These --ch-* variables are required for the "github-from-css" theme */
|
|
67
|
+
@layer base {
|
|
68
|
+
/* GitHub Dark theme (default) */
|
|
69
|
+
:root {
|
|
70
|
+
--ch-0: #e6edf3; /* default text */
|
|
71
|
+
--ch-1: #ff7b72; /* strings, inherited class */
|
|
72
|
+
--ch-2: #a5d6ff; /* string literals */
|
|
73
|
+
--ch-3: #79c0ff; /* keywords, function names */
|
|
74
|
+
--ch-4: #a5d6ff; /* constants */
|
|
75
|
+
--ch-5: #d2a8ff; /* entity names, types */
|
|
76
|
+
--ch-6: #ffa657; /* variables, tag names */
|
|
77
|
+
--ch-7: #8b949e; /* comments */
|
|
78
|
+
--ch-8: #79c0ff; /* support */
|
|
79
|
+
--ch-9: #e6edf3; /* punctuation */
|
|
80
|
+
--ch-10: #f0f6fc;
|
|
81
|
+
--ch-11: #490202;
|
|
82
|
+
--ch-12: #04260f;
|
|
83
|
+
--ch-13: #5a1e02;
|
|
84
|
+
--ch-14: #161b22;
|
|
85
|
+
--ch-15: #8b949e;
|
|
86
|
+
--ch-16: #0d1117;
|
|
87
|
+
--ch-17: #6e76811a;
|
|
88
|
+
--ch-18: #ffffff0b;
|
|
89
|
+
--ch-19: #3794ff;
|
|
90
|
+
--ch-20: #264f78;
|
|
91
|
+
--ch-21: #1f6feb;
|
|
92
|
+
--ch-22: #010409;
|
|
93
|
+
--ch-23: #30363d;
|
|
94
|
+
--ch-24: #6e7681;
|
|
95
|
+
--ch-25: #6e768166;
|
|
96
|
+
--ch-26: #0d1117e6;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* GitHub Light theme */
|
|
100
|
+
.light, [data-theme="light"] {
|
|
101
|
+
--ch-0: #24292f; /* default text */
|
|
102
|
+
--ch-1: #cf222e; /* strings, inherited class */
|
|
103
|
+
--ch-2: #116329; /* string literals */
|
|
104
|
+
--ch-3: #0550ae; /* keywords, function names */
|
|
105
|
+
--ch-4: #0a3069; /* constants */
|
|
106
|
+
--ch-5: #8250df; /* entity names, types */
|
|
107
|
+
--ch-6: #953800; /* variables, tag names */
|
|
108
|
+
--ch-7: #6e7781; /* comments */
|
|
109
|
+
--ch-8: #0550ae; /* support */
|
|
110
|
+
--ch-9: #24292f; /* punctuation */
|
|
111
|
+
--ch-10: #f6f8fa;
|
|
112
|
+
--ch-11: #ffebe9;
|
|
113
|
+
--ch-12: #dafbe1;
|
|
114
|
+
--ch-13: #ffd8b5;
|
|
115
|
+
--ch-14: #eaeef2;
|
|
116
|
+
--ch-15: #57606a;
|
|
117
|
+
--ch-16: #ffffff;
|
|
118
|
+
--ch-17: #eaeef280;
|
|
119
|
+
--ch-18: #fdff0033;
|
|
120
|
+
--ch-19: #1a85ff;
|
|
121
|
+
--ch-20: #add6ff;
|
|
122
|
+
--ch-21: #0969da;
|
|
123
|
+
--ch-22: #f6f8fa;
|
|
124
|
+
--ch-23: #d0d7de;
|
|
125
|
+
--ch-24: #8c959f;
|
|
126
|
+
--ch-25: #afb8c133;
|
|
127
|
+
--ch-26: #ffffffe6;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2022", "DOM"],
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"declarationMap": true,
|
|
14
|
+
"outDir": "./dist",
|
|
15
|
+
"rootDir": "./src",
|
|
16
|
+
"resolveJsonModule": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["src/**/*"],
|
|
19
|
+
"exclude": ["node_modules", "dist"]
|
|
20
|
+
}
|
|
21
|
+
|