@stacksjs/bunpress 0.2.0 → 0.2.1

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 CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
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};
3
+ import{s as a,t as b,u as c}from"../chunk-qqn901qf.js";import"../chunk-qzhr4d2q.js";import"../chunk-zkdm5pr7.js";import"../chunk-em1tv2bw.js";export{b as resolveConfig,a as findMarkdownFiles,c as buildDocs};
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export declare function doctorCommand(options?: DoctorOptions): Promise<boolean>;
5
5
  declare interface DoctorOptions {
6
+ dir?: string
6
7
  verbose?: boolean
7
8
  }
@@ -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
+ }
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{A as c,B as d,C as e,D as f,y as a,z as b}from"./chunk-2ns9va8d.js";import"./chunk-avg4ftb9.js";import"./chunk-n0ebp7d8.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};
2
+ import{i as a,j as b,k as c,l as d,m as e,n as f}from"./chunk-kfbpnqaw.js";import"./chunk-zkdm5pr7.js";import"./chunk-em1tv2bw.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};
@@ -35,4 +35,4 @@ var W=import.meta.require;var Q={"search.placeholder":"Search documentation","to
35
35
  }
36
36
  })();
37
37
  `.trim()}
38
- export{W as X,Z as Y,$ as Z,j as _,X as $,z as aa,C as ba,A as ca,E as da,F as ea};
38
+ export{W as $,Z as aa,$ as ba,j as ca,X as da,z as ea,C as fa,A as ga,E as ha,F as ia};