@stacksjs/bunpress 0.2.0 → 0.2.2
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.js +1 -1
- package/dist/bin/commands/doctor.d.ts +1 -0
- package/dist/bin/commands/seo.d.ts +19 -0
- package/dist/{chunk-2ns9va8d.js → chunk-2vne40yj.js} +1291 -419
- package/dist/{chunk-n0ebp7d8.js → chunk-3f29kjd8.js} +1 -1
- package/dist/{chunk-av14gbps.js → chunk-5cxb3t2e.js} +1 -1
- package/dist/chunk-8b52ry67.js +393 -0
- package/dist/{chunk-avg4ftb9.js → chunk-he00q0q4.js} +323 -7
- package/dist/chunk-m6pshd6t.js +2 -0
- package/dist/{chunk-fyb5bzsp.js → chunk-mbcjfn27.js} +1 -1
- package/dist/{chunk-trhgd2dy.js → chunk-pbdzef6w.js} +1 -1
- package/dist/src/highlighter.d.ts +1 -0
- package/dist/src/index.js +1 -1
- package/dist/src/markdown-fences.d.ts +37 -0
- package/dist/src/toc.d.ts +14 -0
- package/dist/src/types.d.ts +44 -1
- package/dist/templates/hero.stx +22 -0
- package/dist/templates/navbar.stx +2 -0
- package/dist/themes/vitepress/index.ts +515 -10
- package/package.json +1 -1
- package/dist/chunk-w615shtf.js +0 -2
- package/dist/chunk-x5m3c6jd.js +0 -469
package/dist/bin/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{
|
|
3
|
+
import{t as a,u as b,v as c}from"../chunk-8b52ry67.js";import"../chunk-5cxb3t2e.js";import"../chunk-he00q0q4.js";import"../chunk-3f29kjd8.js";export{b as resolveConfig,a as findMarkdownFiles,c as buildDocs};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { config } from '../../src/config';
|
|
2
|
+
import type { BunPressConfig } from '../../src/types';
|
|
1
3
|
/**
|
|
2
4
|
* Check SEO for all documentation pages
|
|
3
5
|
*/
|
|
@@ -5,9 +7,26 @@ export declare function seoCheck(options?: {
|
|
|
5
7
|
dir?: string
|
|
6
8
|
fix?: boolean
|
|
7
9
|
}): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Walk the configured nav and sidebar and report entries that do not resolve.
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkConfiguredLinks(config: BunPressConfig, docsDir: string, report: SeoReport): void;
|
|
8
14
|
/** Serialize frontmatter in block style with delimiters on their own lines. */
|
|
9
15
|
export declare function serializeFrontmatter(frontmatter: Record<string, unknown>, markdown: string): string;
|
|
10
16
|
/**
|
|
11
17
|
* Find broken internal links in markdown
|
|
12
18
|
*/
|
|
13
19
|
export declare function findBrokenInternalLinks(markdown: string, docsDir: string, currentFile: string): string[];
|
|
20
|
+
export declare function headingAnchors(file: string): Set<string>;
|
|
21
|
+
declare interface SeoIssue {
|
|
22
|
+
type: 'error' | 'warning'
|
|
23
|
+
category: string
|
|
24
|
+
file: string
|
|
25
|
+
message: string
|
|
26
|
+
}
|
|
27
|
+
declare interface SeoReport {
|
|
28
|
+
totalPages: number
|
|
29
|
+
errors: SeoIssue[]
|
|
30
|
+
warnings: SeoIssue[]
|
|
31
|
+
passed: number
|
|
32
|
+
}
|