@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.
Files changed (40) hide show
  1. package/dist/bin/cli.d.ts +26 -0
  2. package/dist/bin/cli.js +1 -1
  3. package/dist/bin/commands/clean.d.ts +9 -0
  4. package/dist/bin/commands/config.d.ts +15 -0
  5. package/dist/bin/commands/doctor.d.ts +7 -0
  6. package/dist/bin/commands/init.d.ts +9 -0
  7. package/dist/bin/commands/new.d.ts +9 -0
  8. package/dist/bin/commands/preview.d.ts +11 -0
  9. package/dist/bin/commands/seo.d.ts +7 -0
  10. package/dist/bin/commands/stats.d.ts +8 -0
  11. package/dist/bin/utils.d.ts +83 -0
  12. package/dist/{chunk-w6byd4st.js → chunk-43fsk0jg.js} +1 -1
  13. package/dist/chunk-bqrr0kn9.js +688 -0
  14. package/dist/chunk-ejcvtq7c.js +496 -0
  15. package/dist/{chunk-0sfpwr5e.js → chunk-h07knheg.js} +1 -1
  16. package/dist/{chunk-e5q66hsy.js → chunk-pa3gwajr.js} +1 -1
  17. package/dist/{chunk-semwkmam.js → chunk-sd994fph.js} +1 -1
  18. package/dist/{chunk-zdvnysqn.js → chunk-xenbc8gk.js} +3 -3
  19. package/dist/src/index.js +1 -1
  20. package/dist/{themes → src/themes}/bun/index.d.ts +1 -0
  21. package/dist/{themes → src/themes}/index.d.ts +3 -6
  22. package/dist/src/themes/vitepress/index.d.ts +33 -0
  23. package/dist/{types.d.ts → src/types.d.ts} +10 -0
  24. package/dist/templates/sidebar-section.stx +1 -1
  25. package/package.json +5 -4
  26. package/dist/chunk-rfaz4x5j.js +0 -658
  27. package/dist/chunk-sregzvcv.js +0 -466
  28. package/dist/chunk-ss6yzy9f.js +0 -33
  29. package/dist/themes/vitepress/index.d.ts +0 -210
  30. /package/dist/{config.d.ts → src/config.d.ts} +0 -0
  31. /package/dist/{data-loader.d.ts → src/data-loader.d.ts} +0 -0
  32. /package/dist/{highlighter.d.ts → src/highlighter.d.ts} +0 -0
  33. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  34. /package/dist/{robots.d.ts → src/robots.d.ts} +0 -0
  35. /package/dist/{rss.d.ts → src/rss.d.ts} +0 -0
  36. /package/dist/{serve.d.ts → src/serve.d.ts} +0 -0
  37. /package/dist/{sitemap.d.ts → src/sitemap.d.ts} +0 -0
  38. /package/dist/{stx-components.d.ts → src/stx-components.d.ts} +0 -0
  39. /package/dist/{template-loader.d.ts → src/template-loader.d.ts} +0 -0
  40. /package/dist/{toc.d.ts → src/toc.d.ts} +0 -0
@@ -0,0 +1,26 @@
1
+ import { config } from '../src/config';
2
+ /**
3
+ * Find all markdown files in the given directory
4
+ */
5
+ export declare function findMarkdownFiles(dir: string): Promise<string[]>;
6
+ /**
7
+ * Build the documentation files
8
+ */
9
+ export declare function buildDocs(options?: CliOption): Promise<boolean>;
10
+ declare interface CliOption {
11
+ outdir?: string
12
+ config?: string
13
+ port?: number
14
+ open?: boolean
15
+ watch?: boolean
16
+ verbose?: boolean
17
+ dir?: string
18
+ full?: boolean
19
+ output?: string
20
+ minify?: boolean
21
+ sourcemap?: boolean
22
+ name?: string
23
+ template?: string
24
+ title?: string
25
+ force?: boolean
26
+ }
package/dist/bin/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{I as a,J as b}from"../chunk-sregzvcv.js";import"../chunk-ss6yzy9f.js";import"../chunk-e5q66hsy.js";import"../chunk-w6byd4st.js";export{a as findMarkdownFiles,b as buildDocs};
3
+ import{I as a,J as b}from"../chunk-ejcvtq7c.js";import"../chunk-pa3gwajr.js";import"../chunk-43fsk0jg.js";export{a as findMarkdownFiles,b as buildDocs};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Clean build artifacts and output directories
3
+ */
4
+ export declare function cleanCommand(options?: CleanOptions): Promise<boolean>;
5
+ declare interface CleanOptions {
6
+ outdir?: string
7
+ force?: boolean
8
+ verbose?: boolean
9
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Show current configuration
3
+ */
4
+ export declare function configShowCommand(options?: ConfigOptions): Promise<boolean>;
5
+ /**
6
+ * Validate configuration file
7
+ */
8
+ export declare function configValidateCommand(options?: ConfigOptions): Promise<boolean>;
9
+ /**
10
+ * Initialize configuration file
11
+ */
12
+ export declare function configInitCommand(options?: ConfigOptions): Promise<boolean>;
13
+ declare interface ConfigOptions {
14
+ verbose?: boolean
15
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Run diagnostic checks on the project
3
+ */
4
+ export declare function doctorCommand(options?: DoctorOptions): Promise<boolean>;
5
+ declare interface DoctorOptions {
6
+ verbose?: boolean
7
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Initialize a new BunPress project
3
+ */
4
+ export declare function initCommand(options?: InitOptions): Promise<boolean>;
5
+ declare interface InitOptions {
6
+ name?: string
7
+ template?: string
8
+ force?: boolean
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Create a new markdown file
3
+ */
4
+ export declare function newCommand(path: string, options?: NewOptions): Promise<boolean>;
5
+ declare interface NewOptions {
6
+ title?: string
7
+ template?: string
8
+ verbose?: boolean
9
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Preview the built documentation site
3
+ * Serves files from the .bunpress folder inside the output directory
4
+ */
5
+ export declare function previewCommand(options?: PreviewOptions): Promise<void>;
6
+ declare interface PreviewOptions {
7
+ port?: number
8
+ outdir?: string
9
+ open?: boolean
10
+ verbose?: boolean
11
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Check SEO for all documentation pages
3
+ */
4
+ export declare function seoCheck(options?: {
5
+ dir?: string
6
+ fix?: boolean
7
+ }): Promise<void>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Show statistics about documentation content
3
+ */
4
+ export declare function statsCommand(options?: StatsOptions): Promise<boolean>;
5
+ declare interface StatsOptions {
6
+ dir?: string
7
+ verbose?: boolean
8
+ }
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Format text with color
3
+ */
4
+ export declare function colorize(text: string, color: keyof typeof colors): string;
5
+ /**
6
+ * Log success message
7
+ */
8
+ export declare function logSuccess(message: string): void;
9
+ /**
10
+ * Log error message
11
+ */
12
+ export declare function logError(message: string): void;
13
+ /**
14
+ * Log warning message
15
+ */
16
+ export declare function logWarning(message: string): void;
17
+ /**
18
+ * Log info message
19
+ */
20
+ export declare function logInfo(message: string): void;
21
+ /**
22
+ * Format bytes to human-readable size
23
+ */
24
+ export declare function formatBytes(bytes: number): string;
25
+ /**
26
+ * Format milliseconds to human-readable time
27
+ */
28
+ export declare function formatTime(ms: number): string;
29
+ /**
30
+ * Prompt user for input
31
+ */
32
+ export declare function prompt(question: string, defaultValue?: string): Promise<string>;
33
+ /**
34
+ * Confirm prompt (yes/no)
35
+ */
36
+ export declare function confirm(question: string, defaultValue?: boolean): Promise<boolean>;
37
+ /**
38
+ * Display a table
39
+ */
40
+ export declare function table(rows: Array<Record<string, string | number>>): void;
41
+ /**
42
+ * Check if a directory exists
43
+ */
44
+ export declare function dirExists(path: string): Promise<boolean>;
45
+ /**
46
+ * Check if a file exists
47
+ */
48
+ export declare function fileExists(path: string): Promise<boolean>;
49
+ /**
50
+ * Get file size in bytes
51
+ */
52
+ export declare function getFileSize(path: string): Promise<number>;
53
+ /**
54
+ * CLI utility functions for colors, formatting, and common operations
55
+ */
56
+ // ANSI color codes
57
+ export declare const colors: {
58
+ reset: '\x1B[0m';
59
+ bold: '\x1B[1m';
60
+ dim: '\x1B[2m';
61
+ black: '\x1B[30m';
62
+ red: '\x1B[31m';
63
+ green: '\x1B[32m';
64
+ yellow: '\x1B[33m';
65
+ blue: '\x1B[34m';
66
+ magenta: '\x1B[35m';
67
+ cyan: '\x1B[36m';
68
+ white: '\x1B[37m';
69
+ gray: '\x1B[90m';
70
+ bgRed: '\x1B[41m';
71
+ bgGreen: '\x1B[42m';
72
+ bgYellow: '\x1B[43m';
73
+ bgBlue: '\x1B[44m'
74
+ };
75
+ export declare class Spinner {
76
+ text: string;
77
+ constructor(text: string);
78
+ start(): void;
79
+ succeed(message?: string): void;
80
+ fail(message?: string): void;
81
+ stop(): void;
82
+ update(text: string): void;
83
+ }
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var a=import.meta.require;
3
- export{a as S};
3
+ export{a as N};