boltdocs 1.0.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/dist/CodeBlock-37XMKCYY.mjs +7 -0
- package/dist/PackageManagerTabs-4NWXLXQO.mjs +314 -0
- package/dist/Playground-OE2OE6B6.mjs +7 -0
- package/dist/SearchDialog-FTOQZ763.mjs +187 -0
- package/dist/SearchDialog-ZAZXYIFX.css +2147 -0
- package/dist/Video-I6QY4X7J.mjs +7 -0
- package/dist/chunk-2YRDWM6O.mjs +56 -0
- package/dist/chunk-PN4GCTYG.mjs +67 -0
- package/dist/chunk-X2TDGMTR.mjs +64 -0
- package/dist/chunk-X6BYQHVC.mjs +12 -0
- package/dist/chunk-Z7JHYNAS.mjs +57 -0
- package/dist/chunk-ZFCOLEXN.mjs +1644 -0
- package/dist/client/index.css +2147 -0
- package/dist/client/index.d.mts +298 -0
- package/dist/client/index.d.ts +298 -0
- package/dist/client/index.js +2793 -0
- package/dist/client/index.mjs +63 -0
- package/dist/client/ssr.css +2147 -0
- package/dist/client/ssr.d.mts +25 -0
- package/dist/client/ssr.d.ts +25 -0
- package/dist/client/ssr.js +2727 -0
- package/dist/client/ssr.mjs +32 -0
- package/dist/config-D2XmHJYe.d.mts +122 -0
- package/dist/config-D2XmHJYe.d.ts +122 -0
- package/dist/index-CRQKWAeo.d.mts +82 -0
- package/dist/index-CRQKWAeo.d.ts +82 -0
- package/dist/node/cli/index.d.mts +1 -0
- package/dist/node/cli/index.d.ts +1 -0
- package/dist/node/cli/index.js +199 -0
- package/dist/node/cli/index.mjs +154 -0
- package/dist/node/index.d.mts +79 -0
- package/dist/node/index.d.ts +79 -0
- package/dist/node/index.js +797 -0
- package/dist/node/index.mjs +719 -0
- package/package.json +79 -0
- package/src/client/app/index.tsx +422 -0
- package/src/client/app/preload.tsx +56 -0
- package/src/client/index.ts +40 -0
- package/src/client/ssr.tsx +50 -0
- package/src/client/theme/components/CodeBlock/CodeBlock.tsx +76 -0
- package/src/client/theme/components/CodeBlock/index.ts +1 -0
- package/src/client/theme/components/PackageManagerTabs/PackageManagerTabs.tsx +154 -0
- package/src/client/theme/components/PackageManagerTabs/index.ts +1 -0
- package/src/client/theme/components/PackageManagerTabs/pkg-tabs.css +64 -0
- package/src/client/theme/components/Playground/Playground.tsx +86 -0
- package/src/client/theme/components/Playground/index.ts +1 -0
- package/src/client/theme/components/Playground/playground.css +168 -0
- package/src/client/theme/components/Video/Video.tsx +84 -0
- package/src/client/theme/components/Video/index.ts +1 -0
- package/src/client/theme/components/Video/video.css +41 -0
- package/src/client/theme/components/mdx/Admonition.tsx +80 -0
- package/src/client/theme/components/mdx/Badge.tsx +31 -0
- package/src/client/theme/components/mdx/Button.tsx +50 -0
- package/src/client/theme/components/mdx/Card.tsx +80 -0
- package/src/client/theme/components/mdx/List.tsx +57 -0
- package/src/client/theme/components/mdx/Tabs.tsx +94 -0
- package/src/client/theme/components/mdx/index.ts +18 -0
- package/src/client/theme/components/mdx/mdx-components.css +405 -0
- package/src/client/theme/icons/bun.tsx +62 -0
- package/src/client/theme/icons/deno.tsx +20 -0
- package/src/client/theme/icons/discord.tsx +12 -0
- package/src/client/theme/icons/github.tsx +15 -0
- package/src/client/theme/icons/npm.tsx +13 -0
- package/src/client/theme/icons/pnpm.tsx +72 -0
- package/src/client/theme/icons/twitter.tsx +12 -0
- package/src/client/theme/styles/home.css +60 -0
- package/src/client/theme/styles/markdown.css +343 -0
- package/src/client/theme/styles/variables.css +162 -0
- package/src/client/theme/styles.css +38 -0
- package/src/client/theme/ui/BackgroundGradient/BackgroundGradient.tsx +10 -0
- package/src/client/theme/ui/BackgroundGradient/index.ts +1 -0
- package/src/client/theme/ui/Breadcrumbs/Breadcrumbs.tsx +68 -0
- package/src/client/theme/ui/Breadcrumbs/index.ts +1 -0
- package/src/client/theme/ui/Footer/footer.css +32 -0
- package/src/client/theme/ui/Head/Head.tsx +69 -0
- package/src/client/theme/ui/Head/index.ts +1 -0
- package/src/client/theme/ui/LanguageSwitcher/LanguageSwitcher.tsx +125 -0
- package/src/client/theme/ui/LanguageSwitcher/index.ts +1 -0
- package/src/client/theme/ui/LanguageSwitcher/language-switcher.css +98 -0
- package/src/client/theme/ui/Layout/Layout.tsx +213 -0
- package/src/client/theme/ui/Layout/base.css +76 -0
- package/src/client/theme/ui/Layout/index.ts +2 -0
- package/src/client/theme/ui/Layout/pagination.css +72 -0
- package/src/client/theme/ui/Layout/responsive.css +40 -0
- package/src/client/theme/ui/Link/Link.tsx +202 -0
- package/src/client/theme/ui/Link/index.ts +2 -0
- package/src/client/theme/ui/Loading/Loading.tsx +10 -0
- package/src/client/theme/ui/Loading/index.ts +1 -0
- package/src/client/theme/ui/Loading/loading.css +30 -0
- package/src/client/theme/ui/Navbar/GithubStars.tsx +27 -0
- package/src/client/theme/ui/Navbar/Navbar.tsx +145 -0
- package/src/client/theme/ui/Navbar/index.ts +2 -0
- package/src/client/theme/ui/Navbar/navbar.css +233 -0
- package/src/client/theme/ui/NotFound/NotFound.tsx +20 -0
- package/src/client/theme/ui/NotFound/index.ts +1 -0
- package/src/client/theme/ui/NotFound/not-found.css +64 -0
- package/src/client/theme/ui/OnThisPage/OnThisPage.tsx +192 -0
- package/src/client/theme/ui/OnThisPage/index.ts +1 -0
- package/src/client/theme/ui/OnThisPage/toc.css +132 -0
- package/src/client/theme/ui/PoweredBy/PoweredBy.tsx +18 -0
- package/src/client/theme/ui/PoweredBy/index.ts +1 -0
- package/src/client/theme/ui/PoweredBy/powered-by.css +76 -0
- package/src/client/theme/ui/SearchDialog/SearchDialog.tsx +199 -0
- package/src/client/theme/ui/SearchDialog/index.ts +1 -0
- package/src/client/theme/ui/SearchDialog/search.css +152 -0
- package/src/client/theme/ui/Sidebar/Sidebar.tsx +200 -0
- package/src/client/theme/ui/Sidebar/index.ts +1 -0
- package/src/client/theme/ui/Sidebar/sidebar.css +269 -0
- package/src/client/theme/ui/ThemeToggle/ThemeToggle.tsx +69 -0
- package/src/client/theme/ui/ThemeToggle/index.ts +1 -0
- package/src/client/theme/ui/VersionSwitcher/VersionSwitcher.tsx +136 -0
- package/src/client/theme/ui/VersionSwitcher/index.ts +1 -0
- package/src/client/utils.ts +26 -0
- package/src/node/cache.ts +94 -0
- package/src/node/cli/commands/config.ts +15 -0
- package/src/node/cli/commands/generate-css.ts +24 -0
- package/src/node/cli/constants.ts +70 -0
- package/src/node/cli/index.ts +22 -0
- package/src/node/config.ts +185 -0
- package/src/node/index.ts +21 -0
- package/src/node/mdx.ts +41 -0
- package/src/node/plugin/entry.ts +58 -0
- package/src/node/plugin/html.ts +55 -0
- package/src/node/plugin/index.ts +190 -0
- package/src/node/plugin/types.ts +11 -0
- package/src/node/routes/cache.ts +24 -0
- package/src/node/routes/index.ts +152 -0
- package/src/node/routes/parser.ts +127 -0
- package/src/node/routes/sorter.ts +42 -0
- package/src/node/routes/types.ts +49 -0
- package/src/node/ssg/index.ts +110 -0
- package/src/node/ssg/meta.ts +34 -0
- package/src/node/ssg/options.ts +13 -0
- package/src/node/ssg/sitemap.ts +54 -0
- package/src/node/utils.ts +134 -0
- package/tsconfig.json +20 -0
- package/tsup.config.ts +22 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
init_config,
|
|
4
|
+
resolveConfig
|
|
5
|
+
} from "../../chunk-X2TDGMTR.mjs";
|
|
6
|
+
import {
|
|
7
|
+
__commonJS,
|
|
8
|
+
__esm
|
|
9
|
+
} from "../../chunk-X6BYQHVC.mjs";
|
|
10
|
+
|
|
11
|
+
// src/node/cli/commands/config.ts
|
|
12
|
+
import path from "path";
|
|
13
|
+
async function configAction(root) {
|
|
14
|
+
const rootDir = root ? path.resolve(root) : process.cwd();
|
|
15
|
+
const docsDir = path.resolve(rootDir, "docs");
|
|
16
|
+
try {
|
|
17
|
+
const config = await resolveConfig(docsDir);
|
|
18
|
+
process.stdout.write(JSON.stringify(config, null, 2) + "\n");
|
|
19
|
+
} catch (e) {
|
|
20
|
+
process.stderr.write("Failed to resolve configuration: " + e + "\n");
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
var init_config2 = __esm({
|
|
25
|
+
"src/node/cli/commands/config.ts"() {
|
|
26
|
+
"use strict";
|
|
27
|
+
init_config();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// src/node/cli/constants.ts
|
|
32
|
+
var DEFAULT_CSS_VARIABLES;
|
|
33
|
+
var init_constants = __esm({
|
|
34
|
+
"src/node/cli/constants.ts"() {
|
|
35
|
+
"use strict";
|
|
36
|
+
DEFAULT_CSS_VARIABLES = `:root {
|
|
37
|
+
/* \u2500 Base palette \u2500 */
|
|
38
|
+
--ld-bg-main: #0a0a0f;
|
|
39
|
+
--ld-bg-soft: #0f0f18;
|
|
40
|
+
--ld-bg-mute: #141420;
|
|
41
|
+
--ld-surface: #1a1a2e;
|
|
42
|
+
--ld-border-subtle: rgba(255, 255, 255, 0.06);
|
|
43
|
+
--ld-border-strong: rgba(255, 255, 255, 0.12);
|
|
44
|
+
|
|
45
|
+
/* \u2500 Text \u2500 */
|
|
46
|
+
--ld-text-main: #e4e4ed;
|
|
47
|
+
--ld-text-muted: #9d9db5;
|
|
48
|
+
--ld-text-dim: #6b6b85;
|
|
49
|
+
|
|
50
|
+
/* \u2500 Accent \u2500 */
|
|
51
|
+
--ld-color-primary: #ffff;
|
|
52
|
+
--ld-color-primary-hover: #f8f8f8;
|
|
53
|
+
--ld-color-primary-muted: rgba(255, 255, 255, 0.05);
|
|
54
|
+
--ld-color-primary-glow: rgba(255, 255, 255, 0.15);
|
|
55
|
+
--ld-color-primary-text: #010101;
|
|
56
|
+
--ld-color-accent: #ffff; /* Yellow accent for TOC */
|
|
57
|
+
|
|
58
|
+
/* \u2500 Code \u2500 */
|
|
59
|
+
--ld-code-bg: #0d0d14;
|
|
60
|
+
--ld-code-header: #111119;
|
|
61
|
+
--ld-code-text: #d4d4d4;
|
|
62
|
+
|
|
63
|
+
/* \u2500 Typography \u2500 */
|
|
64
|
+
--ld-font-sans: "Inter", system-ui, -apple-system, sans-serif;
|
|
65
|
+
--ld-font-mono:
|
|
66
|
+
"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
67
|
+
monospace;
|
|
68
|
+
|
|
69
|
+
/* \u2500 Dimensions \u2500 */
|
|
70
|
+
--ld-navbar-height: 3.5rem;
|
|
71
|
+
--ld-sidebar-width: 14.5rem;
|
|
72
|
+
--ld-toc-width: 13rem;
|
|
73
|
+
--ld-content-max-width: 820px;
|
|
74
|
+
--ld-radius-sm: 4px;
|
|
75
|
+
--ld-radius-md: 8px;
|
|
76
|
+
--ld-radius-lg: 12px;
|
|
77
|
+
--ld-radius-full: 9999px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-theme="light"],
|
|
81
|
+
.theme-light {
|
|
82
|
+
--ld-bg-main: #ffffff;
|
|
83
|
+
--ld-bg-soft: #f9fafb;
|
|
84
|
+
--ld-bg-mute: #f3f4f6;
|
|
85
|
+
|
|
86
|
+
--ld-surface: #ffffff;
|
|
87
|
+
|
|
88
|
+
--ld-border-subtle: #e5e7eb;
|
|
89
|
+
--ld-border-strong: #d1d5db;
|
|
90
|
+
|
|
91
|
+
--ld-text-main: #111827;
|
|
92
|
+
--ld-text-muted: #4b5563;
|
|
93
|
+
--ld-text-dim: #6b7280;
|
|
94
|
+
|
|
95
|
+
--ld-color-primary: #010101;
|
|
96
|
+
--ld-color-primary-hover: #010101;
|
|
97
|
+
--ld-color-primary-muted: rgba(127, 19, 236, 0.1);
|
|
98
|
+
--ld-color-primary-glow: rgba(127, 19, 236, 0.25);
|
|
99
|
+
--ld-color-primary-text: #010101;
|
|
100
|
+
|
|
101
|
+
--ld-code-bg: #f3f4f6;
|
|
102
|
+
--ld-code-header: #e5e7eb;
|
|
103
|
+
--ld-code-text: #1f2937;
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// src/node/cli/commands/generate-css.ts
|
|
110
|
+
import path2 from "path";
|
|
111
|
+
import fs from "fs";
|
|
112
|
+
function generateCssAction(outputPath) {
|
|
113
|
+
try {
|
|
114
|
+
const target = process.cwd();
|
|
115
|
+
const filename = outputPath || "custom.css";
|
|
116
|
+
const filepath = path2.resolve(target, filename);
|
|
117
|
+
if (fs.existsSync(filepath)) {
|
|
118
|
+
process.stderr.write(
|
|
119
|
+
"Error: File " + filename + " already exists in " + target + ".\n"
|
|
120
|
+
);
|
|
121
|
+
process.exit(1);
|
|
122
|
+
}
|
|
123
|
+
fs.writeFileSync(filepath, DEFAULT_CSS_VARIABLES);
|
|
124
|
+
process.stdout.write("Success! Generated " + filename + "\n");
|
|
125
|
+
} catch (e) {
|
|
126
|
+
process.stderr.write("Failed to generate CSS: " + e + "\n");
|
|
127
|
+
process.exit(1);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
var init_generate_css = __esm({
|
|
131
|
+
"src/node/cli/commands/generate-css.ts"() {
|
|
132
|
+
"use strict";
|
|
133
|
+
init_constants();
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// src/node/cli/index.ts
|
|
138
|
+
import cac from "cac";
|
|
139
|
+
var require_cli = __commonJS({
|
|
140
|
+
"src/node/cli/index.ts"() {
|
|
141
|
+
init_config2();
|
|
142
|
+
init_generate_css();
|
|
143
|
+
var cli = cac("boltdocs");
|
|
144
|
+
cli.command("config [root]", "Output the resolved boltdocs configuration").action(configAction);
|
|
145
|
+
cli.command(
|
|
146
|
+
"generate:css [path]",
|
|
147
|
+
"Generate a custom.css file with default Boltdocs CSS variables"
|
|
148
|
+
).action(generateCssAction);
|
|
149
|
+
cli.help();
|
|
150
|
+
cli.version("1.0.0");
|
|
151
|
+
cli.parse();
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
export default require_cli();
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
import { B as BoltdocsConfig } from '../config-D2XmHJYe.mjs';
|
|
3
|
+
export { a as BoltdocsThemeConfig } from '../config-D2XmHJYe.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Configuration options specifically for the Boltdocs Vite plugin.
|
|
7
|
+
*/
|
|
8
|
+
interface BoltdocsPluginOptions {
|
|
9
|
+
/** The root directory containing markdown files (default: 'docs') */
|
|
10
|
+
docsDir?: string;
|
|
11
|
+
/** Path to a custom home page component (relative to project root) to render at '/' */
|
|
12
|
+
homePage?: string;
|
|
13
|
+
/** Path to a custom CSS file to override theme variables. Can also be set in boltdocs.config.js */
|
|
14
|
+
customCss?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Options for the Static Site Generation process.
|
|
19
|
+
*/
|
|
20
|
+
interface SSGOptions {
|
|
21
|
+
/** The root directory containing markdown documentation files */
|
|
22
|
+
docsDir: string;
|
|
23
|
+
/** The output directory where Vite placed the compiled `index.html` and assets */
|
|
24
|
+
outDir: string;
|
|
25
|
+
/** Pre-resolved config (avoids re-resolving during the SSG phase) */
|
|
26
|
+
config?: BoltdocsConfig;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Generates static HTML files and a \`sitemap.xml\` for all documentation routes.
|
|
31
|
+
* Called automatically in the \`closeBundle\` hook of the Vite plugin during a production build.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Configuration for paths and site metadata
|
|
34
|
+
*/
|
|
35
|
+
declare function generateStaticPages(options: SSGOptions): Promise<void>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Metadata representing a single documentation route.
|
|
39
|
+
* This information is used to build the client-side router and the sidebar navigation.
|
|
40
|
+
*/
|
|
41
|
+
interface RouteMeta {
|
|
42
|
+
/** The final URL path for the route (e.g., '/docs/guide/start') */
|
|
43
|
+
path: string;
|
|
44
|
+
/** The absolute filesystem path to the source markdown/mdx file */
|
|
45
|
+
componentPath: string;
|
|
46
|
+
/** The title of the page, usually extracted from frontmatter or the filename */
|
|
47
|
+
title: string;
|
|
48
|
+
/** The relative path from the docs directory, used for edit links */
|
|
49
|
+
filePath: string;
|
|
50
|
+
/** Optional description of the page (for SEO/meta tags) */
|
|
51
|
+
description?: string;
|
|
52
|
+
/** Optional explicit position for ordering in the sidebar */
|
|
53
|
+
sidebarPosition?: number;
|
|
54
|
+
/** The group (directory) this route belongs to */
|
|
55
|
+
group?: string;
|
|
56
|
+
/** The display title for the route's group */
|
|
57
|
+
groupTitle?: string;
|
|
58
|
+
/** Optional explicit position for ordering the group itself */
|
|
59
|
+
groupPosition?: number;
|
|
60
|
+
/** Extracted markdown headings for search indexing */
|
|
61
|
+
headings?: {
|
|
62
|
+
level: number;
|
|
63
|
+
text: string;
|
|
64
|
+
id: string;
|
|
65
|
+
}[];
|
|
66
|
+
/** The locale this route belongs to, if i18n is configured */
|
|
67
|
+
locale?: string;
|
|
68
|
+
/** The version this route belongs to, if versioning is configured */
|
|
69
|
+
version?: string;
|
|
70
|
+
/** Optional badge to display next to the sidebar item (e.g., 'New', 'Experimental') */
|
|
71
|
+
badge?: string | {
|
|
72
|
+
text: string;
|
|
73
|
+
expires?: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare function boltdocs(options?: BoltdocsPluginOptions): Promise<Plugin[]>;
|
|
78
|
+
|
|
79
|
+
export { BoltdocsConfig, type BoltdocsPluginOptions, type RouteMeta, type SSGOptions, boltdocs as default, generateStaticPages };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
import { B as BoltdocsConfig } from '../config-D2XmHJYe.js';
|
|
3
|
+
export { a as BoltdocsThemeConfig } from '../config-D2XmHJYe.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Configuration options specifically for the Boltdocs Vite plugin.
|
|
7
|
+
*/
|
|
8
|
+
interface BoltdocsPluginOptions {
|
|
9
|
+
/** The root directory containing markdown files (default: 'docs') */
|
|
10
|
+
docsDir?: string;
|
|
11
|
+
/** Path to a custom home page component (relative to project root) to render at '/' */
|
|
12
|
+
homePage?: string;
|
|
13
|
+
/** Path to a custom CSS file to override theme variables. Can also be set in boltdocs.config.js */
|
|
14
|
+
customCss?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Options for the Static Site Generation process.
|
|
19
|
+
*/
|
|
20
|
+
interface SSGOptions {
|
|
21
|
+
/** The root directory containing markdown documentation files */
|
|
22
|
+
docsDir: string;
|
|
23
|
+
/** The output directory where Vite placed the compiled `index.html` and assets */
|
|
24
|
+
outDir: string;
|
|
25
|
+
/** Pre-resolved config (avoids re-resolving during the SSG phase) */
|
|
26
|
+
config?: BoltdocsConfig;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Generates static HTML files and a \`sitemap.xml\` for all documentation routes.
|
|
31
|
+
* Called automatically in the \`closeBundle\` hook of the Vite plugin during a production build.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Configuration for paths and site metadata
|
|
34
|
+
*/
|
|
35
|
+
declare function generateStaticPages(options: SSGOptions): Promise<void>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Metadata representing a single documentation route.
|
|
39
|
+
* This information is used to build the client-side router and the sidebar navigation.
|
|
40
|
+
*/
|
|
41
|
+
interface RouteMeta {
|
|
42
|
+
/** The final URL path for the route (e.g., '/docs/guide/start') */
|
|
43
|
+
path: string;
|
|
44
|
+
/** The absolute filesystem path to the source markdown/mdx file */
|
|
45
|
+
componentPath: string;
|
|
46
|
+
/** The title of the page, usually extracted from frontmatter or the filename */
|
|
47
|
+
title: string;
|
|
48
|
+
/** The relative path from the docs directory, used for edit links */
|
|
49
|
+
filePath: string;
|
|
50
|
+
/** Optional description of the page (for SEO/meta tags) */
|
|
51
|
+
description?: string;
|
|
52
|
+
/** Optional explicit position for ordering in the sidebar */
|
|
53
|
+
sidebarPosition?: number;
|
|
54
|
+
/** The group (directory) this route belongs to */
|
|
55
|
+
group?: string;
|
|
56
|
+
/** The display title for the route's group */
|
|
57
|
+
groupTitle?: string;
|
|
58
|
+
/** Optional explicit position for ordering the group itself */
|
|
59
|
+
groupPosition?: number;
|
|
60
|
+
/** Extracted markdown headings for search indexing */
|
|
61
|
+
headings?: {
|
|
62
|
+
level: number;
|
|
63
|
+
text: string;
|
|
64
|
+
id: string;
|
|
65
|
+
}[];
|
|
66
|
+
/** The locale this route belongs to, if i18n is configured */
|
|
67
|
+
locale?: string;
|
|
68
|
+
/** The version this route belongs to, if versioning is configured */
|
|
69
|
+
version?: string;
|
|
70
|
+
/** Optional badge to display next to the sidebar item (e.g., 'New', 'Experimental') */
|
|
71
|
+
badge?: string | {
|
|
72
|
+
text: string;
|
|
73
|
+
expires?: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare function boltdocs(options?: BoltdocsPluginOptions): Promise<Plugin[]>;
|
|
78
|
+
|
|
79
|
+
export { BoltdocsConfig, type BoltdocsPluginOptions, type RouteMeta, type SSGOptions, boltdocs as default, generateStaticPages };
|