@stacksjs/bunpress 0.1.20 → 0.2.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/README.md +1 -1
- package/dist/bin/cli.d.ts +16 -0
- package/dist/bin/cli.js +1 -1
- package/dist/{chunk-s98n2933.js → chunk-2ns9va8d.js} +1315 -464
- package/dist/{chunk-ss6yzy9f.js → chunk-av14gbps.js} +10 -11
- package/dist/{chunk-e5q66hsy.js → chunk-avg4ftb9.js} +159 -194
- package/dist/chunk-fyb5bzsp.js +10 -0
- package/dist/chunk-n0ebp7d8.js +38 -0
- package/dist/{chunk-gxhjya5p.js → chunk-trhgd2dy.js} +1 -1
- package/dist/chunk-w615shtf.js +2 -0
- package/dist/chunk-x5m3c6jd.js +469 -0
- package/dist/src/build-manifest.d.ts +22 -0
- package/dist/src/config.d.ts +12 -0
- package/dist/src/data-loader.d.ts +6 -3
- package/dist/src/highlighter.d.ts +2 -1
- package/dist/src/i18n.d.ts +67 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +1 -1
- package/dist/src/page-meta.d.ts +19 -0
- package/dist/src/search-index.d.ts +61 -0
- package/dist/src/serve.d.ts +20 -5
- package/dist/src/toc.d.ts +6 -2
- package/dist/src/types.d.ts +81 -8
- package/dist/templates/blocks/alerts/caution.stx +2 -2
- package/dist/templates/blocks/alerts/important.stx +2 -2
- package/dist/templates/blocks/alerts/note.stx +2 -2
- package/dist/templates/blocks/alerts/tip.stx +2 -2
- package/dist/templates/blocks/alerts/warning.stx +2 -2
- package/dist/templates/blocks/containers/danger.stx +2 -2
- package/dist/templates/blocks/containers/details.stx +2 -2
- package/dist/templates/blocks/containers/info.stx +2 -2
- package/dist/templates/blocks/containers/raw.stx +1 -1
- package/dist/templates/blocks/containers/tip.stx +2 -2
- package/dist/templates/blocks/containers/warning.stx +2 -2
- package/dist/templates/copy-page.stx +81 -0
- package/dist/templates/doc-footer.stx +51 -0
- package/dist/templates/footer.stx +45 -0
- package/dist/templates/hero.stx +9 -2
- package/dist/templates/layout-doc.stx +8 -125
- package/dist/templates/layout-home.stx +7 -14
- package/dist/templates/layout-page.stx +7 -14
- package/dist/templates/locale-switcher.stx +115 -0
- package/dist/templates/navbar.stx +49 -0
- package/dist/templates/page-outline.stx +149 -0
- package/dist/templates/page-toc.stx +1 -1
- package/dist/templates/search-algolia.stx +85 -0
- package/dist/templates/search.stx +661 -0
- package/dist/templates/sidebar-section.stx +44 -11
- package/dist/templates/sidebar.stx +11 -2
- package/dist/themes/vitepress/index.ts +558 -165
- package/package.json +16 -7
- package/dist/chunk-188svpa8.js +0 -467
- package/dist/chunk-hm3c3p37.js +0 -8
- package/dist/chunk-mch0qmg4.js +0 -688
- package/dist/chunk-w6byd4st.js +0 -3
package/README.md
CHANGED
|
@@ -341,7 +341,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
341
341
|
|
|
342
342
|
For casual chit-chat with others using this package:
|
|
343
343
|
|
|
344
|
-
[Join the Stacks Discord Server](https://
|
|
344
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
345
345
|
|
|
346
346
|
## Postcardware
|
|
347
347
|
|
package/dist/bin/cli.d.ts
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { config } from '../src/config';
|
|
2
|
+
import type { BunPressConfig } from '../src/types';
|
|
2
3
|
/**
|
|
3
4
|
* Find all markdown files in the given directory
|
|
4
5
|
*/
|
|
5
6
|
export declare function findMarkdownFiles(dir: string): Promise<string[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Resolve the effective config for a command.
|
|
9
|
+
*
|
|
10
|
+
* Without `--config`, this is the config bunfig discovered relative to the
|
|
11
|
+
* working directory at import time. With `--config <path>`, that file's default
|
|
12
|
+
* export is layered on top.
|
|
13
|
+
*
|
|
14
|
+
* The flag was previously declared on `build` but never read, so a config
|
|
15
|
+
* passed that way was silently ignored and the site rendered with defaults —
|
|
16
|
+
* no theme, no nav, no analytics — while reporting success.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveConfig(options?: CliOption): Promise<BunPressConfig>;
|
|
6
19
|
/**
|
|
7
20
|
* Build the documentation files
|
|
8
21
|
*/
|
|
@@ -19,8 +32,11 @@ declare interface CliOption {
|
|
|
19
32
|
output?: string
|
|
20
33
|
minify?: boolean
|
|
21
34
|
sourcemap?: boolean
|
|
35
|
+
manifest?: string
|
|
36
|
+
checkManifest?: string
|
|
22
37
|
name?: string
|
|
23
38
|
template?: string
|
|
24
39
|
title?: string
|
|
25
40
|
force?: boolean
|
|
41
|
+
searchIndex?: boolean
|
|
26
42
|
}
|
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-
|
|
3
|
+
import{I as a,J as b,K as c}from"../chunk-x5m3c6jd.js";import"../chunk-av14gbps.js";import"../chunk-avg4ftb9.js";import"../chunk-n0ebp7d8.js";export{b as resolveConfig,a as findMarkdownFiles,c as buildDocs};
|