@stacksjs/bunpress 0.1.11 → 0.1.13
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/dist/bin/cli.d.ts +26 -0
- package/dist/bin/cli.js +1 -1
- package/dist/bin/commands/clean.d.ts +9 -0
- package/dist/bin/commands/config.d.ts +15 -0
- package/dist/bin/commands/doctor.d.ts +7 -0
- package/dist/bin/commands/init.d.ts +9 -0
- package/dist/bin/commands/new.d.ts +9 -0
- package/dist/bin/commands/preview.d.ts +11 -0
- package/dist/bin/commands/seo.d.ts +7 -0
- package/dist/bin/commands/stats.d.ts +8 -0
- package/dist/bin/utils.d.ts +83 -0
- package/dist/{chunk-w6byd4st.js → chunk-43fsk0jg.js} +1 -1
- package/dist/chunk-bqrr0kn9.js +688 -0
- package/dist/chunk-ejcvtq7c.js +496 -0
- package/dist/{chunk-0sfpwr5e.js → chunk-h07knheg.js} +1 -1
- package/dist/{chunk-e5q66hsy.js → chunk-pa3gwajr.js} +1 -1
- package/dist/{chunk-semwkmam.js → chunk-sd994fph.js} +1 -1
- package/dist/{chunk-zdvnysqn.js → chunk-xenbc8gk.js} +3 -3
- package/dist/src/index.js +1 -1
- package/dist/{themes → src/themes}/bun/index.d.ts +1 -0
- package/dist/{themes → src/themes}/index.d.ts +3 -6
- package/dist/src/themes/vitepress/index.d.ts +33 -0
- package/dist/{types.d.ts → src/types.d.ts} +10 -0
- package/dist/templates/sidebar-section.stx +1 -1
- package/package.json +5 -4
- package/dist/chunk-rfaz4x5j.js +0 -658
- package/dist/chunk-sregzvcv.js +0 -466
- package/dist/chunk-ss6yzy9f.js +0 -33
- package/dist/themes/vitepress/index.d.ts +0 -210
- /package/dist/{config.d.ts → src/config.d.ts} +0 -0
- /package/dist/{data-loader.d.ts → src/data-loader.d.ts} +0 -0
- /package/dist/{highlighter.d.ts → src/highlighter.d.ts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{robots.d.ts → src/robots.d.ts} +0 -0
- /package/dist/{rss.d.ts → src/rss.d.ts} +0 -0
- /package/dist/{serve.d.ts → src/serve.d.ts} +0 -0
- /package/dist/{sitemap.d.ts → src/sitemap.d.ts} +0 -0
- /package/dist/{stx-components.d.ts → src/stx-components.d.ts} +0 -0
- /package/dist/{template-loader.d.ts → src/template-loader.d.ts} +0 -0
- /package/dist/{toc.d.ts → src/toc.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import bunTheme, { getBunThemeCSS } from './bun';
|
|
2
|
-
import vitePressTheme, { getVitePressThemeCSS } from './vitepress';
|
|
1
|
+
import bunTheme, { getBunThemeCSS } from './bun/index';
|
|
2
|
+
import vitePressTheme, { getVitePressThemeCSS } from './vitepress/index';
|
|
3
3
|
/**
|
|
4
4
|
* Get theme CSS by name
|
|
5
5
|
*/
|
|
@@ -7,10 +7,7 @@ export declare function getThemeCSS(themeName?: ThemeName): string;
|
|
|
7
7
|
/**
|
|
8
8
|
* Available themes
|
|
9
9
|
*/
|
|
10
|
-
export declare const themes:
|
|
11
|
-
vitepress: unknown;
|
|
12
|
-
bun: unknown
|
|
13
|
-
};
|
|
10
|
+
export declare const themes: Record<ThemeName, Theme>;
|
|
14
11
|
/**
|
|
15
12
|
* Default theme name
|
|
16
13
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get all VitePress theme CSS combined
|
|
3
|
+
*/
|
|
4
|
+
export declare function getVitePressThemeCSS(): string;
|
|
5
|
+
/**
|
|
6
|
+
* Get VitePress theme CSS variables only
|
|
7
|
+
*/
|
|
8
|
+
export declare function getVitePressVars(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get VitePress base styles only
|
|
11
|
+
*/
|
|
12
|
+
export declare function getVitePressBase(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Get VitePress custom block styles only
|
|
15
|
+
*/
|
|
16
|
+
export declare function getVitePressCustomBlocks(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Get VitePress code group styles only
|
|
19
|
+
*/
|
|
20
|
+
export declare function getVitePressCodeGroups(): string;
|
|
21
|
+
// Layout / chrome styles — classes referenced by layout-doc.stx, layout-page.stx, layout-home.stx,
|
|
22
|
+
// and the nav/sidebar generators in serve.ts. Keeps templates declarative and dark-mode aware.
|
|
23
|
+
export declare const layoutCSS: string;
|
|
24
|
+
declare const vitePressTheme: VitePressTheme;
|
|
25
|
+
export declare interface VitePressTheme {
|
|
26
|
+
name: string
|
|
27
|
+
getCSS: () => string
|
|
28
|
+
getVars: () => string
|
|
29
|
+
getBase: () => string
|
|
30
|
+
getCustomBlocks: () => string
|
|
31
|
+
getCodeGroups: () => string
|
|
32
|
+
}
|
|
33
|
+
export default vitePressTheme;
|
|
@@ -94,6 +94,7 @@ export declare interface SidebarItem {
|
|
|
94
94
|
text: string
|
|
95
95
|
link?: string
|
|
96
96
|
items?: SidebarItem[]
|
|
97
|
+
collapsed?: boolean
|
|
97
98
|
}
|
|
98
99
|
/**
|
|
99
100
|
* Navigation bar item
|
|
@@ -246,6 +247,15 @@ export declare interface SearchResult {
|
|
|
246
247
|
* Theme configuration
|
|
247
248
|
*/
|
|
248
249
|
export declare interface ThemeConfig {
|
|
250
|
+
logo?: string
|
|
251
|
+
footer?: {
|
|
252
|
+
message?: string
|
|
253
|
+
copyright?: string
|
|
254
|
+
}
|
|
255
|
+
socialLinks?: Array<{
|
|
256
|
+
icon: string
|
|
257
|
+
link: string
|
|
258
|
+
}>
|
|
249
259
|
colors?: {
|
|
250
260
|
primary?: string
|
|
251
261
|
secondary?: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="BPSidebarItem sidebar-section">
|
|
1
|
+
<div class="BPSidebarItem sidebar-section{{ collapsedClass }}">
|
|
2
2
|
<button class="sidebar-section-toggle" onclick="toggleSection(this.parentElement)" type="button">
|
|
3
3
|
<span>{{ title }}</span>
|
|
4
4
|
<svg class="chevron" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/bunpress",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"version": "0.1.13",
|
|
5
6
|
"description": "Modern documentation engine. Powered by Bun.",
|
|
6
7
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
8
|
"license": "MIT",
|
|
@@ -52,14 +53,14 @@
|
|
|
52
53
|
"typecheck": "bun --bun tsc --noEmit"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@stacksjs/stx": "^0.2.
|
|
56
|
+
"@stacksjs/stx": "^0.2.82",
|
|
56
57
|
"@stacksjs/ts-md": "^0.1.1",
|
|
57
|
-
"@stacksjs/ts-cloud": "^0.
|
|
58
|
+
"@stacksjs/ts-cloud": "^0.7.10",
|
|
58
59
|
"bunfig": "^0.15.6"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@stacksjs/clapp": "^0.2.0",
|
|
62
63
|
"ts-syntax-highlighter": "^0.2.1",
|
|
63
|
-
"typescript": "^
|
|
64
|
+
"typescript": "^7.0.2"
|
|
64
65
|
}
|
|
65
66
|
}
|