@stacksjs/bunpress 0.1.8 → 0.1.10

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.
@@ -0,0 +1,33 @@
1
+ // @bun
2
+ var{YAML:w}=globalThis.Bun;import*as I from"fs";import*as T from"path";async function k(H,J,j){let K=J.sitemap?.baseUrl||"",N=j?.title||J.title||J.markdown?.title||"Documentation Feed",O=j?.description||J.description||J.markdown?.meta?.description||"Documentation updates",Q=j?.author||"Documentation Team",Z=j?.email||"",_=j?.language||"en-us",$=j?.maxItems||20,V=j?.fullContent||!1,W=await U(H,K,V);W.sort((G,z)=>z.pubDate.getTime()-G.pubDate.getTime());let B=W.slice(0,$);return D({title:N,description:O,link:K,language:_,author:Q,email:Z,items:B})}async function g(H,J,j,K){if(!K?.enabled)return;if(!j.sitemap?.baseUrl){if(j.verbose)console.warn("\u26A0\uFE0F RSS feed generation skipped: baseUrl not configured");return}let N=await k(H,j,K),O=K.filename||"feed.xml",Q=T.join(J,O);if(await I.promises.writeFile(Q,N,"utf-8"),j.verbose){let Z=(N.match(/<item>/g)||[]).length;console.log(`\u2705 RSS feed generated: ${Q} (${Z} items)`)}}async function U(H,J,j){let K=[],N=await x(H);for(let O of N){let Q=await I.promises.readFile(O,"utf-8"),{frontmatter:Z,markdown:_}=P(Q);if(!Z.date||!Z.title)continue;let V=T.relative(H,O).replace(/\.md$/,"").replace(/index$/,"").replace(/\\/g,"/");if(!V.startsWith("/"))V=`/${V}`;if(V.endsWith("/")&&V!=="/")V=V.slice(0,-1);let W=`${J.replace(/\/$/,"")}${V}`,B=Z.description||b(_),G=new Date(Z.date),z=Z.author;K.push({title:Z.title,link:W,description:B,pubDate:G,author:z,content:j?_:void 0})}return K}async function x(H){let J=[];async function j(K){let N=await I.promises.readdir(K,{withFileTypes:!0});for(let O of N){let Q=T.join(K,O.name);if(O.isDirectory()){if(!O.name.startsWith(".")&&O.name!=="node_modules")await j(Q)}else if(O.isFile()&&O.name.endsWith(".md"))J.push(Q)}}return await j(H),J}function P(H){let J=/^---\n([\s\S]*?)\n---\n?/,j=H.match(J);if(!j)return{frontmatter:{},markdown:H};let K=j[1],N=H.slice(j[0].length);try{return{frontmatter:w.parse(K),markdown:N}}catch{return{frontmatter:{},markdown:H}}}function b(H,J=200){let j=H.replace(/^#{1,6}\s+(?:\S.*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF])$/gm,"").replace(/```[\s\S]*?```/g,"").replace(/`[^`]+`/g,"").replace(/!\[.*?\]\(.*?\)/g,"").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[*_~]/g,"").trim(),K=j.split(`
3
+
4
+ `)[0]||j;if(K.length>J)return`${K.slice(0,J)}...`;return K}function D(H){let J=new Date,j=H.items.length>0?H.items[0].pubDate:J,K=H.items.map((N)=>{let O=N.content?`
5
+ <content:encoded><![CDATA[${N.content}]]></content:encoded>`:"",Q=N.author?`
6
+ <dc:creator><![CDATA[${N.author}]]></dc:creator>`:"";return` <item>
7
+ <title><![CDATA[${N.title}]]></title>
8
+ <link>${N.link}</link>
9
+ <guid>${N.link}</guid>
10
+ <description><![CDATA[${N.description}]]></description>
11
+ <pubDate>${N.pubDate.toUTCString()}</pubDate>${Q}${O}
12
+ </item>`}).join(`
13
+ `);return['<?xml version="1.0" encoding="UTF-8"?>','<rss version="2.0"',' xmlns:content="http://purl.org/rss/1.0/modules/content/"',' xmlns:dc="http://purl.org/dc/elements/1.1/"',' xmlns:atom="http://www.w3.org/2005/Atom">'," <channel>",` <title><![CDATA[${H.title}]]></title>`,` <description><![CDATA[${H.description}]]></description>`,` <link>${H.link}</link>`,` <language>${H.language}</language>`,` <lastBuildDate>${j.toUTCString()}</lastBuildDate>`,` <atom:link href="${H.link}/feed.xml" rel="self" type="application/rss+xml"/>`,K," </channel>","</rss>"].join(`
14
+ `)}import*as v from"fs";import*as E from"path";async function l(H,J){let j=J.robots;if(j?.enabled===!1)return;let K=j?.filename||"robots.txt",N=y(J),O=E.join(H,K);if(await v.promises.writeFile(O,N,"utf-8"),J.verbose)console.log(`\u2705 Robots.txt generated: ${O}`)}function y(H){let J=H.robots,j=[];if(J?.rules&&J.rules.length>0)for(let K of J.rules)j.push(...C(K)),j.push("");else j.push("User-agent: *"),j.push("Allow: /"),j.push("");if(J?.host)j.push(`Host: ${J.host}`),j.push("");if(J?.sitemaps&&J.sitemaps.length>0){for(let K of J.sitemaps)j.push(`Sitemap: ${K}`);j.push("")}else if(H.sitemap?.enabled!==!1&&H.sitemap?.baseUrl){let K=H.sitemap.filename||"sitemap.xml",N=`${H.sitemap.baseUrl.replace(/\/$/,"")}/${K}`;j.push(`Sitemap: ${N}`),j.push("")}if(J?.customContent)j.push(J.customContent),j.push("");return`${j.join(`
15
+ `).trim()}
16
+ `}function C(H){let J=[];if(J.push(`User-agent: ${H.userAgent}`),H.allow&&H.allow.length>0)for(let j of H.allow)J.push(`Allow: ${j}`);if(H.disallow&&H.disallow.length>0)for(let j of H.disallow)J.push(`Disallow: ${j}`);if(H.crawlDelay!==void 0)J.push(`Crawl-delay: ${H.crawlDelay}`);return J}import*as A from"fs";import*as Y from"path";async function R(H,J,j){let K=J.sitemap,N=await h(H,j,K?.defaultPriority??0.5,K?.defaultChangefreq||"monthly",K?.exclude||[],K?.priorityMap||{},K?.changefreqMap||{});return K?.transform?N.map((O)=>K.transform(O)).filter(Boolean):N}async function s(H,J){let j=(J.sitemap?.baseUrl||"").replace(/\/$/,""),K=await R(H,J,j);return M(K,j)}async function o(H,J,j){let K=j.sitemap;if(K?.enabled===!1)return;if(!K?.baseUrl){if(j.verbose)console.warn("\u26A0\uFE0F Sitemap generation skipped: baseUrl not configured");return}let N=K.baseUrl.replace(/\/$/,""),O=K.filename||"sitemap.xml",Q=K.maxUrlsPerFile||50000,Z=K.useSitemapIndex||!1,_=await R(H,j,N);if(j.verbose)console.log(`\uD83D\uDCC4 Generated ${_.length} sitemap entries`);if(Z&&_.length>Q)await u(_,J,N,O,Q);else{let $=M(_,N),V=Y.join(J,O);if(await A.promises.writeFile(V,$,"utf-8"),j.verbose)console.log(`\u2705 Sitemap generated: ${V}`)}}async function h(H,J,j,K,N,O,Q){let Z=[],_=await p(H);for(let $ of _){let W=Y.relative(H,$).replace(/\.md$/,"").replace(/index$/,"").replace(/\\/g,"/");if(!W.startsWith("/"))W=`/${W}`;if(W.endsWith("/")&&W!=="/")W=W.slice(0,-1);if(d(W,N))continue;let G=(await A.promises.stat($)).mtime.toISOString(),z=j;for(let[X,L]of Object.entries(O))if(q(W,X)){z=L;break}let S=K;for(let[X,L]of Object.entries(Q))if(q(W,X)){S=L;break}Z.push({url:W,lastmod:G,changefreq:S,priority:z})}return Z}async function p(H){let J=[];async function j(K){let N=await A.promises.readdir(K,{withFileTypes:!0});for(let O of N){let Q=Y.join(K,O.name);if(O.isDirectory()){if(!O.name.startsWith(".")&&O.name!=="node_modules")await j(Q)}else if(O.isFile()&&O.name.endsWith(".md"))J.push(Q)}}return await j(H),J}function d(H,J){for(let j of J)if(q(H,j))return!0;return!1}function q(H,J){let j=J.replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,".");return new RegExp(`^${j}$`).test(H)}function M(H,J=""){let j=J.replace(/\/$/,"");return`<?xml version="1.0" encoding="UTF-8"?>
17
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
18
+ ${H.map((N)=>{let O=/^https?:\/\//.test(N.url)?N.url:`${j}${N.url}`,Q=N.lastmod?`
19
+ <lastmod>${F(N.lastmod)}</lastmod>`:"",Z=N.changefreq?`
20
+ <changefreq>${N.changefreq}</changefreq>`:"",_=N.priority!==void 0?`
21
+ <priority>${N.priority.toFixed(1)}</priority>`:"";return` <url>
22
+ <loc>${O}</loc>${Q}${Z}${_}
23
+ </url>`}).join(`
24
+ `)}
25
+ </urlset>`}async function u(H,J,j,K,N){let O=m(H,N),Q=[];for(let V=0;V<O.length;V++){let W=`sitemap-${V+1}.xml`,B=M(O[V],j),G=Y.join(J,W);await A.promises.writeFile(G,B,"utf-8"),Q.push(W)}let _=`<?xml version="1.0" encoding="UTF-8"?>
26
+ <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
27
+ ${Q.map((V)=>{let W=`${j}/${V}`,B=new Date().toISOString();return` <sitemap>
28
+ <loc>${W}</loc>
29
+ <lastmod>${F(B)}</lastmod>
30
+ </sitemap>`}).join(`
31
+ `)}
32
+ </sitemapindex>`,$=Y.join(J,K);await A.promises.writeFile($,_,"utf-8")}function F(H){return(typeof H==="string"?new Date(H):H).toISOString().split("T")[0]}function m(H,J){let j=[];for(let K=0;K<H.length;K+=J)j.push(H.slice(K,K+J));return j}
33
+ export{k as K,g as L,l as M,s as N,o as O};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{A as c,B as d,C as e,D as f,y as a,z as b}from"./chunk-m80bkzqg.js";import"./chunk-m2sfy11z.js";import"./chunk-w6byd4st.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var a=import.meta.require;
3
- export{a as N};
3
+ export{a as S};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,11 @@
1
1
  export * from './config';
2
2
  export * from './highlighter';
3
3
  // export * from './plugin'
4
+ // Named re-exports for RSS/sitemap/robots — `export *` would clash with the
5
+ // config interfaces (e.g. RssFeedConfig) already exported from './types'.
6
+ export { buildRssFeed, generateRssFeed } from './rss';
7
+ export { generateRobotsTxt } from './robots';
8
+ export { buildSitemap, generateSitemap } from './sitemap';
4
9
  export * from './serve';
5
10
  export * from './toc';
6
11
  export * from './types';
package/dist/rss.d.ts CHANGED
@@ -1,6 +1,16 @@
1
1
  import type { BunPressConfig } from './types';
2
2
  /**
3
- * Generate RSS feed from markdown files
3
+ * Build an RSS feed from a directory of markdown files and return the XML
4
+ * string. Use this to serve a feed dynamically from a request handler; use
5
+ * {@link generateRssFeed} to write it to disk during a static build.
6
+ *
7
+ * `config.sitemap.baseUrl` is the absolute link base, and may include a path
8
+ * prefix (e.g. `https://example.com/blog`).
9
+ */
10
+ export declare function buildRssFeed(docsDir: string, config: BunPressConfig, rssConfig?: RssFeedConfig): Promise<string>;
11
+ /**
12
+ * Generate an RSS feed and write it to disk (static-build helper). For dynamic
13
+ * serving, call {@link buildRssFeed} and return the string yourself.
4
14
  */
5
15
  export declare function generateRssFeed(docsDir: string, outputDir: string, config: BunPressConfig, rssConfig?: RssFeedConfig): Promise<void>;
6
16
  export declare interface RssFeedConfig {
package/dist/sitemap.d.ts CHANGED
@@ -1,5 +1,15 @@
1
1
  import type { BunPressConfig } from './types';
2
2
  /**
3
- * Generate XML sitemap from markdown files
3
+ * Build an XML sitemap for a directory of markdown files and return the string.
4
+ * Use this to serve a sitemap dynamically from a request handler; use
5
+ * {@link generateSitemap} to write it to disk during a static build.
6
+ *
7
+ * `config.sitemap.baseUrl` is prefixed onto every `<loc>` and may include a
8
+ * path (e.g. `https://example.com/blog`).
9
+ */
10
+ export declare function buildSitemap(docsDir: string, config: BunPressConfig): Promise<string>;
11
+ /**
12
+ * Generate XML sitemap from markdown files and write it to disk (static-build
13
+ * helper). For dynamic serving, call {@link buildSitemap}.
4
14
  */
5
15
  export declare function generateSitemap(docsDir: string, outputDir: string, config: BunPressConfig): Promise<void>;
package/dist/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{A as L,B as M,C as N,D as O,E as P,F as Q,G as R,H as S,I as T,J as V,K as W,L as X,M as Y,g as t,h as b,i as e,j as h,k as j,l as k,m as q,n as u,o as v,p as w,q as z,r as B,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"../chunk-xrf6702j.js";import"../chunk-43fsk0jg.js";export{V as wrapInLayout,T as stripConfiguredBasePath,X as startServer,Y as serveCLI,h as resetHighlighter,O as processInlineTocSyntax,w as prewarmHighlighter,j as normalizeLanguage,W as markdownToHtml,k as isLanguageSupported,u as highlightCodeSync,q as highlightCode,v as getSyntaxHighlightingStyles,z as getHighlighterInstance,S as getConfiguredBasePath,e as getConfig,E as generateUniqueSlug,Q as generateTocStyles,R as generateTocScripts,N as generateTocPositions,I as generateTocHtml,M as generateTocData,D as generateSlug,K as generateSidebarTocHtml,J as generateInlineTocHtml,L as generateFloatingTocHtml,H as filterHeadings,F as extractHeadings,P as enhanceHeadingsWithAnchors,B as defaultTocConfig,t as defaultConfig,b as config,G as buildTocHierarchy};
2
+ import{A as d,B as f,C as a,D as g,a as O,b as P,c as Q,d as S,e as T,f as V,g as W,h as X,i as Y,j as Z,k as _,l as $,m as b,n as v,o as x,p as A,q as F,r as R,s as U,t as m,u as C,v as h,w as l,x as y,y as p,z as c}from"../chunk-m80bkzqg.js";import{K as j,L as k,M as q,N as u,O as w}from"../chunk-ss6yzy9f.js";import{P as L,Q as M,R as N}from"../chunk-m2sfy11z.js";import"../chunk-w6byd4st.js";export{d as wrapInLayout,c as stripConfiguredBasePath,a as startServer,g as serveCLI,O as resetHighlighter,C as processInlineTocSyntax,W as prewarmHighlighter,P as normalizeLanguage,f as markdownToHtml,Q as isLanguageSupported,T as highlightCodeSync,S as highlightCode,V as getSyntaxHighlightingStyles,X as getHighlighterInstance,p as getConfiguredBasePath,N as getConfig,_ as generateUniqueSlug,l as generateTocStyles,y as generateTocScripts,m as generateTocPositions,x as generateTocHtml,U as generateTocData,Z as generateSlug,w as generateSitemap,F as generateSidebarTocHtml,k as generateRssFeed,q as generateRobotsTxt,A as generateInlineTocHtml,R as generateFloatingTocHtml,v as filterHeadings,$ as extractHeadings,h as enhanceHeadingsWithAnchors,Y as defaultTocConfig,L as defaultConfig,M as config,b as buildTocHierarchy,u as buildSitemap,j as buildRssFeed};
@@ -3,9 +3,8 @@
3
3
  */
4
4
  export declare function loadTemplate(name: string): Promise<string>;
5
5
  /**
6
- * Render a template with data using stx engine.
7
- * Supports full stx syntax: {{ }}, {!! !!}, @if/@else/@endif,
8
- * @foreach/@endforeach, @for/@endfor, @include, <script server>, etc.
6
+ * Render a bundled Bunpress template.
7
+ * Supports escaped {{ key }} and raw {!! key !!} placeholders.
9
8
  */
10
9
  export declare function renderTemplate(template: string, data: Record<string, any>): Promise<string>;
11
10
  /**
@@ -13,7 +13,7 @@
13
13
  <style>
14
14
  .BPHomeHero {
15
15
  position: relative;
16
- padding: 64px 24px 48px;
16
+ padding: 76px 24px 56px;
17
17
  }
18
18
 
19
19
  .hero-container {
@@ -21,12 +21,12 @@
21
21
  margin: 0 auto;
22
22
  display: flex;
23
23
  flex-direction: column;
24
- align-items: center;
25
- text-align: center;
24
+ align-items: flex-start;
25
+ text-align: left;
26
26
  }
27
27
 
28
28
  .hero-content {
29
- max-width: 640px;
29
+ max-width: 780px;
30
30
  }
31
31
 
32
32
  .hero-image {
@@ -40,7 +40,7 @@
40
40
 
41
41
  @media (min-width: 960px) {
42
42
  .BPHomeHero {
43
- padding: 80px 64px 56px;
43
+ padding: 96px 64px 72px;
44
44
  }
45
45
 
46
46
  .hero-container {
@@ -16,7 +16,14 @@
16
16
  <!-- BPNav - Header -->
17
17
  <header class="BPNav">
18
18
  <div class="BPNavBar">
19
- {!! nav !!}
19
+ <div class="BPNavBarStart">
20
+ <a href="/" class="BPNavBarTitle">{{ title }}</a>
21
+ </div>
22
+ <div class="BPNavBarEnd">
23
+ <div class="BPNavBarMenu">
24
+ {!! nav !!}
25
+ </div>
26
+ </div>
20
27
  </div>
21
28
  </header>
22
29
 
@@ -69,8 +69,10 @@ export declare const layoutCSS: `/**
69
69
  }
70
70
 
71
71
  .BPNavBarTitle {
72
+ display: inline-flex;
73
+ align-items: center;
72
74
  font-size: 16px;
73
- font-weight: 600;
75
+ font-weight: 750;
74
76
  color: var(--bp-c-text-1);
75
77
  white-space: nowrap;
76
78
  text-decoration: none;
@@ -90,8 +92,8 @@ export declare const layoutCSS: `/**
90
92
  .BPNavBarMenu a,
91
93
  .BPNavBarMenu .BPNavBarMenu-link {
92
94
  font-size: 14px;
93
- font-weight: 500;
94
- color: var(--bp-c-text-1);
95
+ font-weight: 600;
96
+ color: var(--bp-c-text-2);
95
97
  text-decoration: none;
96
98
  transition: color 0.25s;
97
99
  cursor: pointer;
@@ -321,7 +323,7 @@ export declare const layoutCSS: `/**
321
323
  * -------------------------------------------------------------------------- */
322
324
 
323
325
  .BPHero-name {
324
- font-size: 20px;
326
+ font-size: 22px;
325
327
  font-weight: 700;
326
328
  letter-spacing: -0.02em;
327
329
  line-height: 1.2;
@@ -333,7 +335,7 @@ export declare const layoutCSS: `/**
333
335
  }
334
336
 
335
337
  .BPHero-text {
336
- font-size: 40px;
338
+ font-size: 48px;
337
339
  font-weight: 800;
338
340
  letter-spacing: -0.02em;
339
341
  line-height: 1.1;
@@ -342,6 +344,7 @@ export declare const layoutCSS: `/**
342
344
  }
343
345
 
344
346
  .BPHero-tagline {
347
+ max-width: 720px;
345
348
  font-size: 18px;
346
349
  font-weight: 400;
347
350
  line-height: 1.6;
@@ -385,7 +388,7 @@ export declare const layoutCSS: `/**
385
388
  }
386
389
 
387
390
  .BPButton-brand {
388
- color: var(--bp-button-brand-text, #fff);
391
+ color: var(--bp-button-brand-text, #03110b);
389
392
  background-color: var(--bp-c-brand-1);
390
393
  border-color: var(--bp-c-brand-1);
391
394
  }
@@ -444,7 +447,7 @@ export declare const layoutCSS: `/**
444
447
 
445
448
  .BPFeature {
446
449
  display: block;
447
- padding: 24px;
450
+ padding: 26px;
448
451
  background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
449
452
  border: 1px solid var(--bp-c-divider);
450
453
  border-radius: 12px;
@@ -1952,8 +1952,10 @@ export const layoutCSS = `/**
1952
1952
  }
1953
1953
 
1954
1954
  .BPNavBarTitle {
1955
+ display: inline-flex;
1956
+ align-items: center;
1955
1957
  font-size: 16px;
1956
- font-weight: 600;
1958
+ font-weight: 750;
1957
1959
  color: var(--bp-c-text-1);
1958
1960
  white-space: nowrap;
1959
1961
  text-decoration: none;
@@ -1973,8 +1975,8 @@ export const layoutCSS = `/**
1973
1975
  .BPNavBarMenu a,
1974
1976
  .BPNavBarMenu .BPNavBarMenu-link {
1975
1977
  font-size: 14px;
1976
- font-weight: 500;
1977
- color: var(--bp-c-text-1);
1978
+ font-weight: 600;
1979
+ color: var(--bp-c-text-2);
1978
1980
  text-decoration: none;
1979
1981
  transition: color 0.25s;
1980
1982
  cursor: pointer;
@@ -2204,7 +2206,7 @@ export const layoutCSS = `/**
2204
2206
  * -------------------------------------------------------------------------- */
2205
2207
 
2206
2208
  .BPHero-name {
2207
- font-size: 20px;
2209
+ font-size: 22px;
2208
2210
  font-weight: 700;
2209
2211
  letter-spacing: -0.02em;
2210
2212
  line-height: 1.2;
@@ -2216,7 +2218,7 @@ export const layoutCSS = `/**
2216
2218
  }
2217
2219
 
2218
2220
  .BPHero-text {
2219
- font-size: 40px;
2221
+ font-size: 48px;
2220
2222
  font-weight: 800;
2221
2223
  letter-spacing: -0.02em;
2222
2224
  line-height: 1.1;
@@ -2225,6 +2227,7 @@ export const layoutCSS = `/**
2225
2227
  }
2226
2228
 
2227
2229
  .BPHero-tagline {
2230
+ max-width: 720px;
2228
2231
  font-size: 18px;
2229
2232
  font-weight: 400;
2230
2233
  line-height: 1.6;
@@ -2268,7 +2271,7 @@ export const layoutCSS = `/**
2268
2271
  }
2269
2272
 
2270
2273
  .BPButton-brand {
2271
- color: var(--bp-button-brand-text, #fff);
2274
+ color: var(--bp-button-brand-text, #03110b);
2272
2275
  background-color: var(--bp-c-brand-1);
2273
2276
  border-color: var(--bp-c-brand-1);
2274
2277
  }
@@ -2327,7 +2330,7 @@ export const layoutCSS = `/**
2327
2330
 
2328
2331
  .BPFeature {
2329
2332
  display: block;
2330
- padding: 24px;
2333
+ padding: 26px;
2331
2334
  background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
2332
2335
  border: 1px solid var(--bp-c-divider);
2333
2336
  border-radius: 12px;
package/dist/types.d.ts CHANGED
@@ -12,6 +12,12 @@ export declare interface BunPressConfig {
12
12
  basePath?: string
13
13
  componentsDir?: string
14
14
  dataDir?: string
15
+ fonts?: {
16
+ google?: string[]
17
+ display?: 'auto' | 'block' | 'swap' | 'fallback' | 'optional'
18
+ preconnect?: boolean
19
+ faces?: string[]
20
+ }
15
21
  theme?: 'vitepress' | 'bun'
16
22
  markdown: MarkdownPluginConfig
17
23
  nav?: NavItem[]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/bunpress",
3
3
  "type": "module",
4
- "version": "0.1.8",
4
+ "version": "0.1.10",
5
5
  "description": "Modern documentation engine. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -52,13 +52,13 @@
52
52
  "typecheck": "bun --bun tsc --noEmit"
53
53
  },
54
54
  "dependencies": {
55
- "@stacksjs/clapp": "^0.2.0",
56
- "@stacksjs/stx": "^0.2.10",
55
+ "@stacksjs/stx": "^0.2.72",
57
56
  "@stacksjs/ts-md": "^0.1.1",
58
- "@stacksjs/ts-cloud": "^0.2.3",
57
+ "@stacksjs/ts-cloud": "^0.5.17",
59
58
  "bunfig": "^0.15.6"
60
59
  },
61
60
  "devDependencies": {
61
+ "@stacksjs/clapp": "^0.2.0",
62
62
  "ts-syntax-highlighter": "^0.2.1",
63
63
  "typescript": "^5.9.3"
64
64
  }
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{H as a,I as b,J as c,K as d,L as e,M as f}from"./chunk-xrf6702j.js";import"./chunk-43fsk0jg.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};