@stacksjs/bunpress 0.1.10 → 0.1.12
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-tq2kjbdt.js → chunk-b99gqcxe.js} +1 -1
- package/dist/{chunk-m2sfy11z.js → chunk-e5q66hsy.js} +23 -3
- package/dist/{chunk-grmd2vh0.js → chunk-jxdbykx2.js} +14 -14
- package/dist/chunk-mch0qmg4.js +688 -0
- package/dist/{chunk-m80bkzqg.js → chunk-w17epehd.js} +108 -68
- package/dist/{chunk-hk0kwwga.js → chunk-z0v4c8zz.js} +1 -1
- 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} +11 -0
- package/dist/templates/layout-doc.stx +1 -1
- package/dist/templates/layout-home.stx +1 -1
- package/dist/templates/layout-page.stx +1 -1
- package/dist/templates/sidebar-section.stx +1 -1
- package/dist/themes/vitepress/index.ts +20 -0
- package/package.json +4 -4
- package/dist/chunk-rfaz4x5j.js +0 -658
- package/dist/themes/vitepress/index.d.ts +0 -670
- /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
|
@@ -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;
|
|
@@ -2,6 +2,7 @@ export declare interface BunPressConfig {
|
|
|
2
2
|
verbose: boolean
|
|
3
3
|
title?: string
|
|
4
4
|
description?: string
|
|
5
|
+
darkMode?: boolean | 'auto' | 'dark' | 'light'
|
|
5
6
|
themeConfig?: ThemeConfig & {
|
|
6
7
|
sidebar?: SidebarItem[] | Record<string, SidebarItem[]>
|
|
7
8
|
nav?: NavItem[]
|
|
@@ -93,6 +94,7 @@ export declare interface SidebarItem {
|
|
|
93
94
|
text: string
|
|
94
95
|
link?: string
|
|
95
96
|
items?: SidebarItem[]
|
|
97
|
+
collapsed?: boolean
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
98
100
|
* Navigation bar item
|
|
@@ -245,6 +247,15 @@ export declare interface SearchResult {
|
|
|
245
247
|
* Theme configuration
|
|
246
248
|
*/
|
|
247
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
|
+
}>
|
|
248
259
|
colors?: {
|
|
249
260
|
primary?: string
|
|
250
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">
|
|
@@ -2381,6 +2381,26 @@ export const layoutCSS = `/**
|
|
|
2381
2381
|
color: var(--bp-c-text-2);
|
|
2382
2382
|
}
|
|
2383
2383
|
|
|
2384
|
+
/**
|
|
2385
|
+
* Home page markdown body — rendered below the hero + features grid.
|
|
2386
|
+
* Wrapped as .BPHome-content > .bp-doc.vp-doc.container by markdownToHtml.
|
|
2387
|
+
* -------------------------------------------------------------------------- */
|
|
2388
|
+
|
|
2389
|
+
.BPHome-content {
|
|
2390
|
+
padding: 48px 24px 96px;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
.BPHome-content .container {
|
|
2394
|
+
margin: 0 auto;
|
|
2395
|
+
max-width: 1152px;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
@media (min-width: 960px) {
|
|
2399
|
+
.BPHome-content {
|
|
2400
|
+
padding: 64px 32px 128px;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2384
2404
|
/**
|
|
2385
2405
|
* Inline content — badges, external link icons
|
|
2386
2406
|
* -------------------------------------------------------------------------- */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/bunpress",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"description": "Modern documentation engine. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"typecheck": "bun --bun tsc --noEmit"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@stacksjs/stx": "^0.2.
|
|
55
|
+
"@stacksjs/stx": "^0.2.82",
|
|
56
56
|
"@stacksjs/ts-md": "^0.1.1",
|
|
57
|
-
"@stacksjs/ts-cloud": "^0.
|
|
57
|
+
"@stacksjs/ts-cloud": "^0.7.10",
|
|
58
58
|
"bunfig": "^0.15.6"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@stacksjs/clapp": "^0.2.0",
|
|
62
62
|
"ts-syntax-highlighter": "^0.2.1",
|
|
63
|
-
"typescript": "^
|
|
63
|
+
"typescript": "^7.0.2"
|
|
64
64
|
}
|
|
65
65
|
}
|