@staticbolt/docs 0.0.1-beta.0
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/LICENSE +22 -0
- package/README.md +148 -0
- package/lib/collapsible-plugin-Bwt7dmKE.mjs +132 -0
- package/lib/ec-config.mjs +59 -0
- package/lib/ec.config.d.mts +5 -0
- package/lib/index.d.mts +371 -0
- package/lib/plugins.mjs +0 -0
- package/package.json +113 -0
- package/sources/assets/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/sources/assets/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/sources/assets/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Main-Bold.woff +0 -0
- package/sources/assets/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/sources/assets/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Main-Italic.woff +0 -0
- package/sources/assets/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Main-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/sources/assets/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Math-Italic.woff +0 -0
- package/sources/assets/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Script-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/sources/assets/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/sources/assets/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/sources/assets/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/sources/parts/badge/badge.part.html +3 -0
- package/sources/parts/badge/badge.style.css +44 -0
- package/sources/parts/callouts/callouts.part.html +30 -0
- package/sources/parts/color-scheme-switch/color-scheme-switch.part.html +111 -0
- package/sources/parts/color-scheme-switch/color-scheme-switch.style.css +77 -0
- package/sources/parts/document/document.part.html +66 -0
- package/sources/parts/header/header.part.html +62 -0
- package/sources/parts/header/header.style.css +123 -0
- package/sources/parts/mermaid/mermaid.part.html +15 -0
- package/sources/parts/pagefind/pagefind.part.html +75 -0
- package/sources/parts/pagefind/pagefind.style.css +57 -0
- package/sources/parts/pagination-links/pagination-links.part.html +81 -0
- package/sources/parts/pagination-links/pagination-links.style.css +58 -0
- package/sources/parts/sidebar/directory.part.html +13 -0
- package/sources/parts/sidebar/item.part.html +9 -0
- package/sources/parts/sidebar/sidebar.part.html +106 -0
- package/sources/parts/sidebar/sidebar.style.css +202 -0
- package/sources/parts/table-of-content/table-of-content-desktop.part.html +122 -0
- package/sources/parts/table-of-content/table-of-content-mobile.part.html +24 -0
- package/sources/parts/table-of-content/table-of-content.style.css +189 -0
- package/sources/scripts/global.d.ts +27 -0
- package/sources/scripts/mermaid.ts +75 -0
- package/sources/styles/docs.css +9 -0
- package/sources/styles/document.css +579 -0
- package/sources/styles/global.css +149 -0
- package/sources/styles/katex.css +1445 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Hue */
|
|
3
|
+
--sb-hue-accent: 85;
|
|
4
|
+
--sb-hue-base: 305;
|
|
5
|
+
|
|
6
|
+
/* Grayscale */
|
|
7
|
+
--sb-color-gray-0: light-dark(oklch(30% 0.034 var(--sb-hue-base)), oklch(90% 0.017 var(--sb-hue-base)));
|
|
8
|
+
--sb-color-gray-1: light-dark(oklch(36% 0.038 var(--sb-hue-base)), oklch(80% 0.03 var(--sb-hue-base)));
|
|
9
|
+
--sb-color-gray-2: light-dark(oklch(36% 0.038 var(--sb-hue-base)), oklch(80% 0.03 var(--sb-hue-base)));
|
|
10
|
+
--sb-color-gray-3: light-dark(oklch(44% 0.034 var(--sb-hue-base)), oklch(65% 0.028 var(--sb-hue-base)));
|
|
11
|
+
--sb-color-gray-4: light-dark(oklch(66% 0.03 var(--sb-hue-base)), oklch(48% 0.024 var(--sb-hue-base)));
|
|
12
|
+
--sb-color-gray-5: light-dark(oklch(88% 0.023 var(--sb-hue-base)), oklch(29% 0.02 var(--sb-hue-base)));
|
|
13
|
+
--sb-color-gray-6: light-dark(oklch(93% 0.017 var(--sb-hue-base)), oklch(23% 0.017 var(--sb-hue-base)));
|
|
14
|
+
--sb-color-gray-7: light-dark(oklch(96% 0.012 var(--sb-hue-base)), oklch(20.5% 0.014 var(--sb-hue-base)));
|
|
15
|
+
--sb-color-black: light-dark(oklch(98% 0.009 var(--sb-hue-base)), oklch(18% 0.012 var(--sb-hue-base)));
|
|
16
|
+
|
|
17
|
+
/* Colors */
|
|
18
|
+
--sb-color-accent: light-dark(oklch(63% 0.1197 var(--sb-hue-accent)), oklch(63% 0.105 var(--sb-hue-accent)));
|
|
19
|
+
--sb-color-accent-high: light-dark(oklch(56% 0.104 var(--sb-hue-accent)), oklch(72% 0.1 var(--sb-hue-accent)));
|
|
20
|
+
--sb-color-accent-low: light-dark(oklch(50% 0.1 var(--sb-hue-accent)), oklch(40% 0.1 var(--sb-hue-accent)));
|
|
21
|
+
--sb-color-text: var(--sb-color-gray-2);
|
|
22
|
+
--sb-heading-color: var(--sb-color-gray-1);
|
|
23
|
+
--sb-code-background: light-dark(oklch(99% 0.008 var(--sb-hue-base)), oklch(20% 0.014 var(--sb-hue-base)));
|
|
24
|
+
--sb-code-inline-background: light-dark(var(--sb-color-gray-6), var(--sb-color-gray-5));
|
|
25
|
+
|
|
26
|
+
/* Font */
|
|
27
|
+
--sb-text-2xs: 0.75rem;
|
|
28
|
+
--sb-text-xs: 0.8125rem;
|
|
29
|
+
--sb-text-sm: 0.875rem;
|
|
30
|
+
--sb-text-base: 1rem;
|
|
31
|
+
--sb-text-lg: 1.125rem;
|
|
32
|
+
--sb-text-xl: 1.25rem;
|
|
33
|
+
--sb-text-2xl: 1.5rem;
|
|
34
|
+
--sb-text-3xl: 1.8125rem;
|
|
35
|
+
--sb-text-4xl: 2.1875rem;
|
|
36
|
+
--sb-text-5xl: 2.625rem;
|
|
37
|
+
--sb-text-6xl: 4rem;
|
|
38
|
+
--sb-md-font:
|
|
39
|
+
ui-sans-serif, system-ui, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji",
|
|
40
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
41
|
+
--sb-font-mono:
|
|
42
|
+
ui-monospace, sfmono-regular, menlo, monaco, consolas, "Liberation Mono", "Courier New", monospace, ui-monospace,
|
|
43
|
+
sfmono-regular, menlo, monaco, consolas, "Liberation Mono", "Courier New", monospace;
|
|
44
|
+
|
|
45
|
+
/* Heading */
|
|
46
|
+
--sb-text-h1: var(--sb-text-3xl);
|
|
47
|
+
--sb-text-h2: var(--sb-text-2xl);
|
|
48
|
+
--sb-text-h3: var(--sb-text-xl);
|
|
49
|
+
--sb-text-h4: var(--sb-text-lg);
|
|
50
|
+
--sb-text-h5: unset;
|
|
51
|
+
--sb-text-h6: unset;
|
|
52
|
+
|
|
53
|
+
/* Anchor Icon */
|
|
54
|
+
--sb-anchor-icon-color: var(--sb-color-accent-high);
|
|
55
|
+
--sb-anchor-icon-size: 0.8275em;
|
|
56
|
+
--sb-anchor-icon-gap: 0.5em;
|
|
57
|
+
--sb-anchor-icon-space: calc(var(--sb-anchor-icon-size) + var(--sb-anchor-icon-gap));
|
|
58
|
+
|
|
59
|
+
/* Spacing */
|
|
60
|
+
--sb-content-gap-y: 1rem;
|
|
61
|
+
--sb-line-height: 1.75;
|
|
62
|
+
--sb-line-height-headings: 1.2;
|
|
63
|
+
--sb-text-code-sm: 0.8125rem;
|
|
64
|
+
|
|
65
|
+
/* Alert Colors */
|
|
66
|
+
--sb-warning-background: light-dark(#fffbef, #211f1a);
|
|
67
|
+
--sb-warning-border: light-dark(#b8860b, #a77f23);
|
|
68
|
+
--sb-warning-text: light-dark(#6b4800, #f8e2b6);
|
|
69
|
+
--sb-caution-background: light-dark(#fff5f5, #1d1314);
|
|
70
|
+
--sb-caution-border: light-dark(#b91c3c, #931f3a);
|
|
71
|
+
--sb-caution-text: light-dark(#7b1a2e, #f3c8cb);
|
|
72
|
+
--sb-note-background: light-dark(#f0f2ff, #13151f);
|
|
73
|
+
--sb-note-border: light-dark(#4a56d0, #5765dc);
|
|
74
|
+
--sb-note-text: light-dark(#252e8a, #c5cff5);
|
|
75
|
+
--sb-important-background: light-dark(#faf0ff, #1d191f);
|
|
76
|
+
--sb-important-border: light-dark(#8b44a8, #a059c1);
|
|
77
|
+
--sb-important-text: light-dark(#572070, #dec7ea);
|
|
78
|
+
--sb-tip-background: light-dark(#f0faf8, #191f1d);
|
|
79
|
+
--sb-tip-border: light-dark(#2a9d8f, #59c1ae);
|
|
80
|
+
--sb-tip-text: light-dark(#1a5e55, #c7eae2);
|
|
81
|
+
--sb-success-background: light-dark(#eefbf3, #142019);
|
|
82
|
+
--sb-success-border: light-dark(#22a06b, #4fd19a);
|
|
83
|
+
--sb-success-text: light-dark(#146c43, #c9f5df);
|
|
84
|
+
|
|
85
|
+
/* sv-accordion (sidebar, table of contents, callouts) */
|
|
86
|
+
--sv-gray-2: var(--sb-color-gray-2);
|
|
87
|
+
--sv-gray-5: var(--sb-color-gray-5);
|
|
88
|
+
--sv-gray-6: var(--sb-color-gray-6);
|
|
89
|
+
--sv-bdr-sz-sm: 1px;
|
|
90
|
+
--sv-bdr-rad-md: 8px;
|
|
91
|
+
--sv-dir: 1;
|
|
92
|
+
|
|
93
|
+
@media print {
|
|
94
|
+
--sb-color-gray-0: #000;
|
|
95
|
+
--sb-color-gray-1: #000;
|
|
96
|
+
--sb-color-gray-2: #000;
|
|
97
|
+
--sb-color-black: #fff;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[dir="rtl"] {
|
|
102
|
+
--sv-dir: -1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@view-transition {
|
|
106
|
+
navigation: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
html {
|
|
110
|
+
scrollbar-gutter: stable;
|
|
111
|
+
scroll-behavior: smooth;
|
|
112
|
+
accent-color: var(--sb-color-accent);
|
|
113
|
+
color-scheme: dark light;
|
|
114
|
+
scroll-padding-top: calc(var(--sb-header-height) + var(--sb-toc-mobile-height) + 0.5em);
|
|
115
|
+
|
|
116
|
+
@media (prefers-color-scheme: light) {
|
|
117
|
+
color-scheme: light;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (prefers-color-scheme: dark) {
|
|
121
|
+
color-scheme: dark;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media print {
|
|
125
|
+
color-scheme: light;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
body {
|
|
130
|
+
margin: 0;
|
|
131
|
+
font-family: var(--sb-md-font);
|
|
132
|
+
color: var(--sb-color-text);
|
|
133
|
+
background-color: var(--sb-color-black);
|
|
134
|
+
|
|
135
|
+
&::selection {
|
|
136
|
+
color: var(--sb-color-black);
|
|
137
|
+
background-color: var(--sb-color-accent-high);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
button {
|
|
142
|
+
-webkit-tap-highlight-color: transparent;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
*,
|
|
146
|
+
*::before,
|
|
147
|
+
*::after {
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
}
|