@riebeckite/cli 0.0.6 → 0.0.7
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/cli.js +2 -2
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -141,7 +141,7 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
|
|
|
141
141
|
import rawConfig from ${JSON.stringify(Hs.resolve(e.configRoot,t))};
|
|
142
142
|
import { resolveConfigModule } from "@riebeckite/core";
|
|
143
143
|
export default resolveConfigModule(rawConfig);
|
|
144
|
-
`,resolveDir:e.configRoot,loader:"ts"},outfile:n,bundle:!0,platform:"node",format:"esm",banner:{js:'import { createRequire as __riebeckiteCreateRequire } from "node:module"; const require = __riebeckiteCreateRequire(import.meta.url);'},plugins:e.workspaceRoot?[Wm(e.workspaceRoot)]:[]}),(await import(`${dE(n)}?t=${Date.now()}`)).default}finally{await Qm.rm(r,{recursive:!0,force:!0})}}function Jm(e,t){return{...e,content:{...e.content,directory:Hs.resolve(t,e.content.directory)}}}function dE(e){return`file:///${e.replace(/\\/g,"/").replace(/^([A-Za-z]):/,"$1:")}`}import Om from"node:fs/promises";import fc from"node:path";var Dn=["en","ja","zh-CN","es","de","fr","ko"];function ai(e){let t=e.toLowerCase();return t.startsWith("ja")?"ja":t.startsWith("zh")?"zh-CN":t.startsWith("es")?"es":t.startsWith("de")?"de":t.startsWith("fr")?"fr":t.startsWith("ko")?"ko":"en"}var si=["empty","minimal","starter","rich","full","max","ultra"];function kc(e){return si.includes(e)}var ue=(e,t,r)=>({package:e,factory:t,options:r}),oi=ue("@riebeckite/plugin-obsidian-markdown","obsidianMarkdown"),aa=ue("@riebeckite/plugin-color-mode","colorModePlugin"),sa=ue("@riebeckite/plugin-l10n","l10n",e=>{let t=ai(e.variables.locale);return`{ defaultLang: ${JSON.stringify(t)}, languages: ${JSON.stringify(e.languages)} }`}),Us=ue("@riebeckite/plugin-seo","seo",{siteName:{depth:1,value:e=>JSON.stringify(e.variables.title)},sitemap:{depth:1,value:"true"},robots:{depth:2,value:"true"},defaultImage:{depth:3,value:'"/ogp.png"'},feed:{depth:3,value:"{ rss: true, atom: true, json: true }"}}),js=ue("@riebeckite/plugin-toc","tocPlugin"),$s=ue("@riebeckite/plugin-properties","properties",{render:{depth:1,value:'"slot"'},include:{depth:2,value:'["created", "modified", "tags", "status"]'},order:{depth:2,value:'["created", "modified", "tags", "status"]'}}),Vs=ue("@riebeckite/plugin-alias","aliasPlugin","{ status: 308 }"),Gs=ue("@riebeckite/plugin-code-enhance","codeEnhance",{lineNumbers:{depth:1,value:"true"},copyButton:{depth:1,value:"true"},filename:{depth:2,value:"true"},lineHighlight:{depth:2,value:"true"},diffHighlight:{depth:2,value:"true"},theme:{depth:3,value:'{ light: "github-light", dark: "github-dark" }'},wrapToggle:{depth:3,value:"true"}}),Cc=ue("@riebeckite/plugin-search","searchPlugin"),wc=ue("@riebeckite/plugin-backlinks","backlinksPlugin"),Sc=ue("@riebeckite/plugin-related-posts","relatedPosts",{limit:{depth:2,value:"5"},useTags:{depth:2,value:"true"},useBacklinks:{depth:2,value:"true"},minScore:{depth:3,value:"1"},heading:{depth:3,value:"true"},headingText:{depth:3,value:'"Related"'},className:{depth:3,value:'"rb-related-posts"'}}),Ac=ue("@riebeckite/plugin-share","share",{placement:{depth:2,value:'"bottom"'},services:{depth:3,value:'["x", "bluesky", "mastodon", "facebook", "linkedin", "hatena", "copy"]'},mastodonInstance:{depth:3,value:'"mastodon.social"'}}),Dc=ue("@riebeckite/plugin-recent-posts","recentPostsPlugin"),Nc=ue("@riebeckite/plugin-changelog","changelog",{perNote:{depth:2,value:"true"},lookbackDays:{depth:3,value:"90"},dateFormat:{depth:3,value:'"iso"'},siteWide:{depth:3,value:"false"}}),Ic=ue("@riebeckite/plugin-webmention","webmention",{headingText:{depth:2,value:'"Mentions"'},limit:{depth:3,value:"20"}}),Pc=ue("@riebeckite/plugin-attachment","attachment","{ showSize: true }"),Lc=ue("@riebeckite/plugin-pdf","pdf",{height:{depth:2,value:'"640px"'},initialPage:{depth:2,value:"1"},toolbar:{depth:2,value:"true"},showMetadata:{depth:3,value:"true"},downloadLabel:{depth:3,value:'"Download PDF"'}}),Rc=ue("@riebeckite/plugin-media","media",{preload:{depth:2,value:'"metadata"'},lazy:{depth:2,value:"true"},showCaption:{depth:3,value:"true"},showDownload:{depth:3,value:"false"},showOpenOriginal:{depth:3,value:"true"}}),Oc=ue("@riebeckite/plugin-responsive-image","responsiveImage",{lazy:{depth:2,value:"true"},decoding:{depth:2,value:"true"},sizes:{depth:2,value:'"100vw"'},widths:{depth:2,value:"[640, 1280, 1920]"},formats:{depth:3,value:'["webp", "avif"]'},className:{depth:3,value:'"rb-responsive-image"'}}),_c=ue("@riebeckite/plugin-lightbox","lightboxPlugin",'{ selectorClass: "rr-lightbox-trigger" }'),Mc=ue("@riebeckite/plugin-highlight","highlight",{tag:{depth:2,value:'"mark"'},className:{depth:3,value:'"rb-mark"'}}),Fc=ue("@riebeckite/plugin-code-tabs","codeTabs","{ syncTabs: true }"),Bc=ue("@riebeckite/plugin-code-annotations","codeAnnotations",'{ className: "rb-code" }'),qc=ue("@riebeckite/plugin-shortcodes","shortcodes","{ builtins: true }"),zc=ue("@riebeckite/plugin-series","series",{key:{depth:2,value:'"series"'},orderKey:{depth:2,value:'"series_order"'},titleKey:{depth:2,value:'"series_title"'},positionLabel:{depth:2,value:"false"},heading:{depth:3,value:"true"},className:{depth:3,value:'"rb-series"'}}),Hc=ue("@riebeckite/plugin-taxonomy","taxonomy",{tags:{depth:2,value:"true"},folders:{depth:2,value:"true"},related:{depth:2,value:"true"},feeds:{depth:3,value:"{ rss: true, atom: true, json: true }"},relatedLimit:{depth:3,value:"8"}}),Uc=ue("@riebeckite/plugin-autocardlink","autoCardLinkPlugin",'{ className: "rb-cardlink" }'),jc=ue("@riebeckite/plugin-rich-embed","richEmbed",'{ providers: ["youtube", "vimeo", "spotify"] }'),$c=ue("@riebeckite/plugin-gallery","gallery",{columns:{depth:2,value:"3"},aspect:{depth:2,value:'"4/3"'},language:{depth:3,value:'"gallery"'}}),Zm=ue("@riebeckite/plugin-mermaid","mermaid",{render:{depth:2,value:'"build"'},theme:{depth:2,value:'{ light: "default", dark: "dark" }'},caption:{depth:3,value:"true"},fallback:{depth:3,value:"true"}}),e1=ue("@riebeckite/plugin-graphviz","graphviz",{render:{depth:2,value:'"build"'},engine:{depth:2,value:'"dot"'},caption:{depth:3,value:"true"},fallback:{depth:3,value:"true"}}),t1=ue("@riebeckite/plugin-d2","d2",{render:{depth:2,value:'"build"'},theme:{depth:2,value:"{ light: 0, dark: 1 }"},layout:{depth:2,value:'"dagre"'},caption:{depth:3,value:"true"}}),r1=ue("@riebeckite/plugin-plantuml","plantuml",{server:{depth:2,value:'"https://www.plantuml.com/plantuml"'},format:{depth:2,value:'"svg"'},caption:{depth:3,value:"true"},fallback:{depth:3,value:"true"}}),n1=ue("@riebeckite/plugin-chartjs","chartjs",{responsive:{depth:2,value:"true"},caption:{depth:2,value:"true"},className:{depth:3,value:'"rb-chartjs"'}}),i1=ue("@riebeckite/plugin-vega-lite","vegaLite",{caption:{depth:2,value:"true"},theme:{depth:2,value:'"light"'},renderer:{depth:2,value:'"canvas"'},actions:{depth:3,value:"false"},className:{depth:3,value:'"rb-vega-lite"'}}),a1=ue("@riebeckite/plugin-wavedrom","wavedrom",{skin:{depth:2,value:'"default"'},caption:{depth:2,value:"true"},fallback:{depth:3,value:"true"},className:{depth:3,value:'"rb-wavedrom"'}}),s1=ue("@riebeckite/plugin-markmap","markmap",{caption:{depth:2,value:"true"},height:{depth:2,value:"320"},colorFreezeLevel:{depth:3,value:"2"}}),o1=ue("@riebeckite/plugin-map","map",{zoom:{depth:2,value:"13"},height:{depth:2,value:"320"},tileUrl:{depth:3,value:JSON.stringify("https://tile.openstreetmap.org/{z}/{x}/{y}.png")},attribution:{depth:3,value:JSON.stringify('© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}}),u1=ue("@riebeckite/plugin-marp","marp",{theme:{depth:2,value:'"default"'},allowHtml:{depth:2,value:"true"},math:{depth:2,value:"true"},caption:{depth:3,value:"true"}}),l1=ue("@riebeckite/plugin-qr-code","qrCode",{level:{depth:2,value:'"M"'},margin:{depth:2,value:"1"},width:{depth:2,value:"160"},dark:{depth:3,value:'"#000000"'},light:{depth:3,value:'"#ffffff"'},caption:{depth:3,value:"true"},className:{depth:3,value:'"rb-qr"'}}),c1=ue("@riebeckite/plugin-discord-embed","discordEmbed",{themeColor:{depth:2,value:'"#5865F2"'},imageAlt:{depth:3,value:"true"},imageDimensions:{depth:3,value:"true"}}),d1=ue("@riebeckite/plugin-excalidraw","excalidraw","{ lazy: true }"),f1=ue("@riebeckite/plugin-excalibrain","excaliBrain",{render:{depth:2,value:'"build"'},auto:{depth:2,value:"true"},heading:{depth:2,value:"true"},infer:{depth:2,value:"true"},siblings:{depth:2,value:"true"},headingText:{depth:3,value:'"ExcaliBrain"'},width:{depth:3,value:"720"},height:{depth:3,value:"480"}}),h1=ue("@riebeckite/plugin-canvas","canvas",{language:{depth:2,value:'"canvas"'},render:{depth:2,value:'"both"'},className:{depth:3,value:'"rb-canvas"'}}),p1=ue("@riebeckite/plugin-bases","bases",{language:{depth:2,value:'"base"'},limit:{depth:2,value:"100"},className:{depth:3,value:'"rb-bases"'},showFallback:{depth:3,value:"true"}}),m1=ue("@riebeckite/plugin-dataview","dataviewPlugin",{limit:{depth:2,value:"50"},className:{depth:3,value:'"rb-dataview"'},hideFallback:{depth:3,value:"false"}}),g1=ue("@riebeckite/plugin-flashcards","flashcardsPlugin",{shuffle:{depth:2,value:"true"},fallback:{depth:2,value:"true"},className:{depth:3,value:'"rb-flashcards"'}}),b1=ue("@riebeckite/plugin-kanban","kanban",{columnMarker:{depth:2,value:'"##"'},autoDetect:{depth:2,value:"true"},className:{depth:3,value:'"rb-kanban"'},fallback:{depth:3,value:"true"}}),y1=ue("@riebeckite/plugin-query","queryPlugin",{defaultFormat:{depth:2,value:'"list"'},defaultLimit:{depth:2,value:"50"},className:{depth:3,value:'"rb-query"'},excludeSelf:{depth:3,value:"true"}}),E1=ue("@riebeckite/plugin-local-graph","localGraphPlugin"),x1=ue("@riebeckite/plugin-hover-preview","hoverPreviewPlugin",{delay:{depth:2,value:"120"},excerptLength:{depth:2,value:"160"},selector:{depth:2,value:'a[href^="/"]'},includeTitles:{depth:3,value:"true"}}),v1=ue("@riebeckite/plugin-garden-explorer","gardenExplorerPlugin"),T1=ue("@riebeckite/plugin-ux","uxPlugin",{progress:{depth:2,value:"true"},backToTop:{depth:2,value:"true"},tocScrollSpy:{depth:2,value:"true"},codeCopy:{depth:3,value:"true"}}),fE=ue("@riebeckite/plugin-daily-notes","dailyNotesPlugin",'{ source: { directory: "Daily", pathPattern: "Daily/{YYYY}-{MM}-{DD}" }, extract: { frontmatter: "daily-summary", codeBlock: "daily-snippet" }, widget: { limit: 5 } }'),hE=ue("@riebeckite/plugin-rename","renamePlugin",'{ enabled: true, status: 308, onUnexpectedRemoval: "warning" }'),pE=ue("@riebeckite/plugin-text-fragment","textFragmentPlugin",e=>`{ prefix: ${JSON.stringify(`${e.variables.title}: `)} }`),mE=ue("@riebeckite/plugin-quality","qualityPlugin","{ a11y: { enabled: true }, ignoreRules: [] }"),gE=ue("@riebeckite/plugin-deploy","deployPlugin",e=>`{ provider: "cloudflare-pages", baseUrl: ${JSON.stringify(e.variables.baseUrl)} }`),bE=ue("@riebeckite/plugin-diagnostics","diagnostics",'{ reportUnusedAssets: true, reportOrphans: true, requiredFrontmatter: ["title"] }'),yE={package:"@riebeckite/theme-default",factory:"defaultTheme"},Ys={package:"@riebeckite/theme-default",factory:"defaultTheme",options:'{ colorMode: "system", typography: "system", articleLayout: "article", userCss: [] }'},EE={package:"@riebeckite/theme-minimal",factory:"minimalTheme"},Nn=["server","client","config","content","paths","global","style","renderer"],xE={name:"empty",description:"A blank application shell: no plugins, no theme, no content, no components.",languages:[],theme:null,plugins:[],contentPages:[],appFiles:[...Nn,"index"],readme:"short"},vE={name:"minimal",description:"The smallest useful site: Obsidian Markdown, the minimal theme, and one page.",languages:["en"],theme:EE,plugins:[oi],contentPages:["index"],appFiles:[...Nn,"index","slug","article"],readme:"short"},TE={name:"starter",description:"The default starter: Obsidian Markdown, color mode, seven languages, and a site header.",languages:[...Dn],theme:yE,plugins:[oi,aa,sa],contentPages:["index"],appFiles:[...Nn,"index","slug","header","article"],readme:"standard"},kE={name:"rich",description:"A showcasing starter: publishing and reading plugins plus guided ecosystem tour pages in seven languages.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs],contentPages:["index","framework/plugins","framework/themes"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},CE={name:"full",description:"A ready blog: discovery, media, and reading plugins plus a build guide.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs,Cc,wc,Sc,Ac,Nc,Ic,Dc,Pc,Lc,Rc,Oc,_c,Mc,Fc,Bc,qc,zc,Hc,Uc,jc,$c],contentPages:["index","framework/plugins","framework/themes","guide"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},wE={name:"max",description:"Diagram and knowledge plugins on top of full, with showcase example pages.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs,Cc,wc,Sc,Ac,Nc,Ic,Dc,Pc,Lc,Rc,Oc,_c,Mc,Fc,Bc,qc,zc,Hc,Uc,jc,$c,Zm,e1,t1,r1,n1,i1,a1,s1,o1,u1,l1,c1,d1,f1,h1,p1,m1,g1,b1,y1,E1,x1,v1,T1],contentPages:["index","framework/plugins","framework/themes","guide","examples"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},SE={name:"ultra",description:"The full plugin catalog and theme reference pages \u2014 everything the ecosystem offers.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs,Cc,wc,Sc,Ac,Nc,Ic,Dc,Pc,Lc,Rc,Oc,_c,Mc,Fc,Bc,qc,zc,Hc,Uc,jc,$c,Zm,e1,t1,r1,n1,i1,a1,s1,o1,u1,l1,c1,d1,f1,h1,p1,m1,g1,b1,y1,E1,x1,v1,T1,fE,hE,pE,mE,gE,bE],contentPages:["index","framework/plugins","framework/themes","guide","examples","reference/plugins","reference/themes"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},ia={empty:xE,minimal:vE,starter:TE,rich:kE,full:CE,max:wE,ultra:SE},k1="starter";function Vc(e){if(e===void 0)return ia[k1];if(typeof e=="object")return e;let t=ia[e];if(!t)throw new Error(`Unknown scaffold preset: ${e}. Available presets: ${si.join(", ")}.`);return t}var oa=class extends Error{issues;constructor(t){super(AE(t)),this.name="ConfigValidationError",this.issues=t}};function AE(e){return["Invalid Riebeckite configuration:",...e.map(t=>`
|
|
144
|
+
`,resolveDir:e.configRoot,loader:"ts"},outfile:n,bundle:!0,platform:"node",format:"esm",banner:{js:'import { createRequire as __riebeckiteCreateRequire } from "node:module"; const require = __riebeckiteCreateRequire(import.meta.url);'},plugins:e.workspaceRoot?[Wm(e.workspaceRoot)]:[]}),(await import(`${dE(n)}?t=${Date.now()}`)).default}finally{await Qm.rm(r,{recursive:!0,force:!0})}}function Jm(e,t){return{...e,content:{...e.content,directory:Hs.resolve(t,e.content.directory)}}}function dE(e){return`file:///${e.replace(/\\/g,"/").replace(/^([A-Za-z]):/,"$1:")}`}import Om from"node:fs/promises";import fc from"node:path";var Dn=["en","ja","zh-CN","es","de","fr","ko"];function ai(e){let t=e.toLowerCase();return t.startsWith("ja")?"ja":t.startsWith("zh")?"zh-CN":t.startsWith("es")?"es":t.startsWith("de")?"de":t.startsWith("fr")?"fr":t.startsWith("ko")?"ko":"en"}var si=["empty","minimal","starter","rich","full","max","ultra"];function kc(e){return si.includes(e)}var ue=(e,t,r)=>({package:e,factory:t,options:r}),oi=ue("@riebeckite/plugin-obsidian-markdown","obsidianMarkdown"),aa=ue("@riebeckite/plugin-color-mode","colorModePlugin"),sa=ue("@riebeckite/plugin-l10n","l10n",e=>{let t=ai(e.variables.locale);return`{ defaultLang: ${JSON.stringify(t)}, languages: ${JSON.stringify(e.languages)} }`}),Us=ue("@riebeckite/plugin-seo","seo",{siteName:{depth:1,value:e=>JSON.stringify(e.variables.title)},sitemap:{depth:1,value:"true"},robots:{depth:2,value:"true"},defaultImage:{depth:3,value:'"/ogp.png"'},feed:{depth:3,value:"{ rss: true, atom: true, json: true }"}}),js=ue("@riebeckite/plugin-toc","tocPlugin"),$s=ue("@riebeckite/plugin-properties","properties",{render:{depth:1,value:'"slot"'},include:{depth:2,value:'["created", "modified", "tags", "status"]'},order:{depth:2,value:'["created", "modified", "tags", "status"]'}}),Vs=ue("@riebeckite/plugin-alias","aliasPlugin","{ status: 308 }"),Gs=ue("@riebeckite/plugin-code-enhance","codeEnhance",{lineNumbers:{depth:1,value:"true"},copyButton:{depth:1,value:"true"},filename:{depth:2,value:"true"},lineHighlight:{depth:2,value:"true"},diffHighlight:{depth:2,value:"true"},theme:{depth:3,value:'{ light: "github-light", dark: "github-dark" }'},wrapToggle:{depth:3,value:"true"}}),Cc=ue("@riebeckite/plugin-search","searchPlugin"),wc=ue("@riebeckite/plugin-backlinks","backlinksPlugin"),Sc=ue("@riebeckite/plugin-related-posts","relatedPosts",{limit:{depth:2,value:"5"},useTags:{depth:2,value:"true"},useBacklinks:{depth:2,value:"true"},minScore:{depth:3,value:"1"},heading:{depth:3,value:"true"},headingText:{depth:3,value:'"Related"'},className:{depth:3,value:'"rb-related-posts"'}}),Ac=ue("@riebeckite/plugin-share","share",{placement:{depth:2,value:'"bottom"'},services:{depth:3,value:'["x", "bluesky", "mastodon", "facebook", "linkedin", "hatena", "copy"]'},mastodonInstance:{depth:3,value:'"mastodon.social"'}}),Dc=ue("@riebeckite/plugin-recent-posts","recentPostsPlugin"),Nc=ue("@riebeckite/plugin-changelog","changelog",{perNote:{depth:2,value:"true"},lookbackDays:{depth:3,value:"90"},dateFormat:{depth:3,value:'"iso"'},siteWide:{depth:3,value:"false"}}),Ic=ue("@riebeckite/plugin-webmention","webmention",{headingText:{depth:2,value:'"Mentions"'},limit:{depth:3,value:"20"}}),Pc=ue("@riebeckite/plugin-attachment","attachment","{ showSize: true }"),Lc=ue("@riebeckite/plugin-pdf","pdf",{height:{depth:2,value:'"640px"'},initialPage:{depth:2,value:"1"},toolbar:{depth:2,value:"true"},showMetadata:{depth:3,value:"true"},downloadLabel:{depth:3,value:'"Download PDF"'}}),Rc=ue("@riebeckite/plugin-media","media",{preload:{depth:2,value:'"metadata"'},lazy:{depth:2,value:"true"},showCaption:{depth:3,value:"true"},showDownload:{depth:3,value:"false"},showOpenOriginal:{depth:3,value:"true"}}),Oc=ue("@riebeckite/plugin-responsive-image","responsiveImage",{lazy:{depth:2,value:"true"},decoding:{depth:2,value:"true"},sizes:{depth:2,value:'"100vw"'},widths:{depth:2,value:"[640, 1280, 1920]"},formats:{depth:3,value:'["webp", "avif"]'},className:{depth:3,value:'"rb-responsive-image"'}}),_c=ue("@riebeckite/plugin-lightbox","lightboxPlugin",'{ selectorClass: "rr-lightbox-trigger" }'),Mc=ue("@riebeckite/plugin-highlight","highlight",{tag:{depth:2,value:'"mark"'},className:{depth:3,value:'"rb-mark"'}}),Fc=ue("@riebeckite/plugin-code-tabs","codeTabs","{ syncTabs: true }"),Bc=ue("@riebeckite/plugin-code-annotations","codeAnnotations",'{ className: "rb-code" }'),qc=ue("@riebeckite/plugin-shortcodes","shortcodes","{ builtins: true }"),zc=ue("@riebeckite/plugin-series","series",{key:{depth:2,value:'"series"'},orderKey:{depth:2,value:'"series_order"'},titleKey:{depth:2,value:'"series_title"'},positionLabel:{depth:2,value:"false"},heading:{depth:3,value:"true"},className:{depth:3,value:'"rb-series"'}}),Hc=ue("@riebeckite/plugin-taxonomy","taxonomy",{tags:{depth:2,value:"true"},folders:{depth:2,value:"true"},related:{depth:2,value:"true"},feeds:{depth:3,value:"{ rss: true, atom: true, json: true }"},relatedLimit:{depth:3,value:"8"}}),Uc=ue("@riebeckite/plugin-autocardlink","autoCardLinkPlugin",'{ className: "rb-cardlink" }'),jc=ue("@riebeckite/plugin-rich-embed","richEmbed",'{ providers: ["youtube", "vimeo", "spotify"] }'),$c=ue("@riebeckite/plugin-gallery","gallery",{columns:{depth:2,value:"3"},aspect:{depth:2,value:'"4/3"'},language:{depth:3,value:'"gallery"'}}),Zm=ue("@riebeckite/plugin-mermaid","mermaid",{render:{depth:2,value:'"build"'},theme:{depth:2,value:'{ light: "default", dark: "dark" }'},caption:{depth:3,value:"true"},fallback:{depth:3,value:"true"}}),e1=ue("@riebeckite/plugin-graphviz","graphviz",{render:{depth:2,value:'"build"'},engine:{depth:2,value:'"dot"'},caption:{depth:3,value:"true"},fallback:{depth:3,value:"true"}}),t1=ue("@riebeckite/plugin-d2","d2",{render:{depth:2,value:'"build"'},theme:{depth:2,value:"{ light: 0, dark: 1 }"},layout:{depth:2,value:'"dagre"'},caption:{depth:3,value:"true"}}),r1=ue("@riebeckite/plugin-plantuml","plantuml",{server:{depth:2,value:'"https://www.plantuml.com/plantuml"'},format:{depth:2,value:'"svg"'},caption:{depth:3,value:"true"},fallback:{depth:3,value:"true"}}),n1=ue("@riebeckite/plugin-chartjs","chartjs",{responsive:{depth:2,value:"true"},caption:{depth:2,value:"true"},className:{depth:3,value:'"rb-chartjs"'}}),i1=ue("@riebeckite/plugin-vega-lite","vegaLite",{caption:{depth:2,value:"true"},theme:{depth:2,value:'"light"'},renderer:{depth:2,value:'"canvas"'},actions:{depth:3,value:"false"},className:{depth:3,value:'"rb-vega-lite"'}}),a1=ue("@riebeckite/plugin-wavedrom","wavedrom",{skin:{depth:2,value:'"default"'},caption:{depth:2,value:"true"},fallback:{depth:3,value:"true"},className:{depth:3,value:'"rb-wavedrom"'}}),s1=ue("@riebeckite/plugin-markmap","markmap",{caption:{depth:2,value:"true"},height:{depth:2,value:"320"},colorFreezeLevel:{depth:3,value:"2"}}),o1=ue("@riebeckite/plugin-map","map",{zoom:{depth:2,value:"13"},height:{depth:2,value:"320"},tileUrl:{depth:3,value:JSON.stringify("https://tile.openstreetmap.org/{z}/{x}/{y}.png")},attribution:{depth:3,value:JSON.stringify('© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}}),u1=ue("@riebeckite/plugin-marp","marp",{theme:{depth:2,value:'"default"'},allowHtml:{depth:2,value:"true"},math:{depth:2,value:"true"},caption:{depth:3,value:"true"}}),l1=ue("@riebeckite/plugin-qr-code","qrCode",{level:{depth:2,value:'"M"'},margin:{depth:2,value:"1"},width:{depth:2,value:"160"},dark:{depth:3,value:'"#000000"'},light:{depth:3,value:'"#ffffff"'},caption:{depth:3,value:"true"},className:{depth:3,value:'"rb-qr"'}}),c1=ue("@riebeckite/plugin-discord-embed","discordEmbed",{themeColor:{depth:2,value:'"#5865F2"'},imageAlt:{depth:3,value:"true"},imageDimensions:{depth:3,value:"true"}}),d1=ue("@riebeckite/plugin-excalidraw","excalidraw","{ lazy: true }"),f1=ue("@riebeckite/plugin-excalibrain","excaliBrain",{render:{depth:2,value:'"build"'},auto:{depth:2,value:"true"},heading:{depth:2,value:"true"},infer:{depth:2,value:"true"},siblings:{depth:2,value:"true"},headingText:{depth:3,value:'"ExcaliBrain"'},width:{depth:3,value:"720"},height:{depth:3,value:"480"}}),h1=ue("@riebeckite/plugin-canvas","canvas",{language:{depth:2,value:'"canvas"'},render:{depth:2,value:'"both"'},className:{depth:3,value:'"rb-canvas"'}}),p1=ue("@riebeckite/plugin-bases","bases",{language:{depth:2,value:'"base"'},limit:{depth:2,value:"100"},className:{depth:3,value:'"rb-bases"'},showFallback:{depth:3,value:"true"}}),m1=ue("@riebeckite/plugin-dataview","dataviewPlugin",{limit:{depth:2,value:"50"},className:{depth:3,value:'"rb-dataview"'},hideFallback:{depth:3,value:"false"}}),g1=ue("@riebeckite/plugin-flashcards","flashcardsPlugin",{shuffle:{depth:2,value:"true"},fallback:{depth:2,value:"true"},className:{depth:3,value:'"rb-flashcards"'}}),b1=ue("@riebeckite/plugin-kanban","kanban",{columnMarker:{depth:2,value:'"##"'},autoDetect:{depth:2,value:"true"},className:{depth:3,value:'"rb-kanban"'},fallback:{depth:3,value:"true"}}),y1=ue("@riebeckite/plugin-query","queryPlugin",{defaultFormat:{depth:2,value:'"list"'},defaultLimit:{depth:2,value:"50"},className:{depth:3,value:'"rb-query"'},excludeSelf:{depth:3,value:"true"}}),E1=ue("@riebeckite/plugin-local-graph","localGraphPlugin"),x1=ue("@riebeckite/plugin-hover-preview","hoverPreviewPlugin",{delay:{depth:2,value:"120"},excerptLength:{depth:2,value:"160"},selector:{depth:2,value:`'a[href^="/"]'`},includeTitles:{depth:3,value:"true"}}),v1=ue("@riebeckite/plugin-garden-explorer","gardenExplorerPlugin"),T1=ue("@riebeckite/plugin-ux","uxPlugin",{progress:{depth:2,value:"true"},backToTop:{depth:2,value:"true"},tocScrollSpy:{depth:2,value:"true"},codeCopy:{depth:3,value:"true"}}),fE=ue("@riebeckite/plugin-daily-notes","dailyNotesPlugin",'{ source: { directory: "Daily", pathPattern: "Daily/{YYYY}-{MM}-{DD}" }, extract: { frontmatter: "daily-summary", codeBlock: "daily-snippet" }, widget: { limit: 5 } }'),hE=ue("@riebeckite/plugin-rename","renamePlugin",'{ enabled: true, status: 308, onUnexpectedRemoval: "warning" }'),pE=ue("@riebeckite/plugin-text-fragment","textFragmentPlugin",e=>`{ prefix: ${JSON.stringify(`${e.variables.title}: `)} }`),mE=ue("@riebeckite/plugin-quality","qualityPlugin","{ a11y: { enabled: true }, ignoreRules: [] }"),gE=ue("@riebeckite/plugin-deploy","deployPlugin",e=>`{ provider: "cloudflare-pages", baseUrl: ${JSON.stringify(e.variables.baseUrl)} }`),bE=ue("@riebeckite/plugin-diagnostics","diagnostics",'{ reportUnusedAssets: true, reportOrphans: true, requiredFrontmatter: ["title"] }'),yE={package:"@riebeckite/theme-default",factory:"defaultTheme"},Ys={package:"@riebeckite/theme-default",factory:"defaultTheme",options:'{ colorMode: "system", typography: "system", articleLayout: "article", userCss: [] }'},EE={package:"@riebeckite/theme-minimal",factory:"minimalTheme"},Nn=["server","client","config","content","paths","global","style","renderer"],xE={name:"empty",description:"A blank application shell: no plugins, no theme, no content, no components.",languages:[],theme:null,plugins:[],contentPages:[],appFiles:[...Nn,"index"],readme:"short"},vE={name:"minimal",description:"The smallest useful site: Obsidian Markdown, the minimal theme, and one page.",languages:["en"],theme:EE,plugins:[oi],contentPages:["index"],appFiles:[...Nn,"index","slug","article"],readme:"short"},TE={name:"starter",description:"The default starter: Obsidian Markdown, color mode, seven languages, and a site header.",languages:[...Dn],theme:yE,plugins:[oi,aa,sa],contentPages:["index"],appFiles:[...Nn,"index","slug","header","article"],readme:"standard"},kE={name:"rich",description:"A showcasing starter: publishing and reading plugins plus guided ecosystem tour pages in seven languages.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs],contentPages:["index","framework/plugins","framework/themes"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},CE={name:"full",description:"A ready blog: discovery, media, and reading plugins plus a build guide.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs,Cc,wc,Sc,Ac,Nc,Ic,Dc,Pc,Lc,Rc,Oc,_c,Mc,Fc,Bc,qc,zc,Hc,Uc,jc,$c],contentPages:["index","framework/plugins","framework/themes","guide"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},wE={name:"max",description:"Diagram and knowledge plugins on top of full, with showcase example pages.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs,Cc,wc,Sc,Ac,Nc,Ic,Dc,Pc,Lc,Rc,Oc,_c,Mc,Fc,Bc,qc,zc,Hc,Uc,jc,$c,Zm,e1,t1,r1,n1,i1,a1,s1,o1,u1,l1,c1,d1,f1,h1,p1,m1,g1,b1,y1,E1,x1,v1,T1],contentPages:["index","framework/plugins","framework/themes","guide","examples"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},SE={name:"ultra",description:"The full plugin catalog and theme reference pages \u2014 everything the ecosystem offers.",languages:[...Dn],theme:Ys,plugins:[oi,aa,sa,Us,js,$s,Vs,Gs,Cc,wc,Sc,Ac,Nc,Ic,Dc,Pc,Lc,Rc,Oc,_c,Mc,Fc,Bc,qc,zc,Hc,Uc,jc,$c,Zm,e1,t1,r1,n1,i1,a1,s1,o1,u1,l1,c1,d1,f1,h1,p1,m1,g1,b1,y1,E1,x1,v1,T1,fE,hE,pE,mE,gE,bE],contentPages:["index","framework/plugins","framework/themes","guide","examples","reference/plugins","reference/themes"],appFiles:[...Nn,"index","slug","header","article"],readme:"rich"},ia={empty:xE,minimal:vE,starter:TE,rich:kE,full:CE,max:wE,ultra:SE},k1="starter";function Vc(e){if(e===void 0)return ia[k1];if(typeof e=="object")return e;let t=ia[e];if(!t)throw new Error(`Unknown scaffold preset: ${e}. Available presets: ${si.join(", ")}.`);return t}var oa=class extends Error{issues;constructor(t){super(AE(t)),this.name="ConfigValidationError",this.issues=t}};function AE(e){return["Invalid Riebeckite configuration:",...e.map(t=>`
|
|
145
145
|
${t.path}
|
|
146
146
|
${t.message}`)].join(`
|
|
147
147
|
`)}var Yt=class extends Error{kind;pluginName;capability;declaration;pluginNames;chain;availableCapabilities;constructor(t){super(DE(t)),this.name="PluginDependencyError",this.kind=t.kind,this.pluginName=t.pluginName,this.capability=t.capability,this.declaration=t.declaration,this.pluginNames=t.pluginNames??[],this.chain=t.chain??[],this.availableCapabilities=t.availableCapabilities??[]}};function DE(e){return e.kind==="missing-capability"?[`Plugin "${e.pluginName}" requires missing capability "${e.capability}".`,NE(e.availableCapabilities)].join(`
|
|
@@ -474,7 +474,7 @@ ${t}
|
|
|
474
474
|
`)}function cc(e,t){return t==="ja"?e.ja??e.en:e.en}var J8={heading:{en:"Examples",ja:"\u30B5\u30F3\u30D7\u30EB\u96C6"},intro:{en:"A working demo of every diagram, chart, and code feature this preset ships. Fenced code blocks are turned into rendered output at build time by the diagram plugins; code blocks gain toolbars from the code plugins. Each section below is also copy-pasteable into any Markdown document.",ja:"\u3053\u306E\u30D7\u30EA\u30BB\u30C3\u30C8\u304C\u542B\u3080\u3001\u3059\u3079\u3066\u306E\u56F3\u8868\u30FB\u30C1\u30E3\u30FC\u30C8\u30FB\u30B3\u30FC\u30C9\u6A5F\u80FD\u306E\u5B9F\u4F8B\u3067\u3059\u3002\u30D5\u30A7\u30F3\u30B9\u4ED8\u304D\u30B3\u30FC\u30C9\u30D6\u30ED\u30C3\u30AF\u306F\u30D3\u30EB\u30C9\u6642\u306B\u56F3\u8868\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u63CF\u753B\u3057\u3001\u30B3\u30FC\u30C9\u30D6\u30ED\u30C3\u30AF\u306B\u306F\u30B3\u30FC\u30C9\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u30C4\u30FC\u30EB\u30D0\u30FC\u3092\u8FFD\u52A0\u3057\u307E\u3059\u3002\u4EE5\u4E0B\u306E\u5404\u30BB\u30AF\u30B7\u30E7\u30F3\u306F\u3001\u4EFB\u610F\u306E Markdown \u6587\u66F8\u306B\u305D\u306E\u307E\u307E\u30B3\u30D4\u30FC\u3057\u3066\u4F7F\u3048\u307E\u3059\u3002"}};function LO(e,t){let r=[ti(),Ke(1,cc(J8.heading,t)),"",cc(J8.intro,t),""];for(let n of Rm){let i=Pm(n);if(!Im(e,i))continue;let a=Nm[n];r.push(Ke(2,cc(a.title,t)),""),r.push(cc(a.intro,t),""),r.push(a.markdown,"")}return r.join(`
|
|
475
475
|
`)}function RO(e,t){let r=[ti()];r.push(Ke(1,"Plugin reference"),""),r.push("Every plugin registered by this preset, with the factory and options","used in `riebeckite.config.ts`. Full documentation lives in each package","README.",""),r.push("| Package | Factory | Options |"),r.push("| --- | --- | --- |");for(let n of e.plugins){let i=Lm(t,e,n),a=i===null?"\u2014":`\`${i}\``;r.push(`| [\`${n.package}\`](${t7(n.package.replace(/^@riebeckite\/plugin-/,""))}) | \`${n.factory}\` | ${a} |`)}return r.push(""),r.push(`[Riebeckite plugins on GitHub](${Z8})`,""),r.push(""),r.join(`
|
|
476
476
|
`)}function OO(){let e=[ti()];e.push(Ke(1,"Theme reference"),""),e.push("The bundled themes. Switch by installing a package and changing the","`theme` factory in `riebeckite.config.ts`.",""),e.push("| Theme | Factory | Description |"),e.push("| --- | --- | --- |");for(let t of i7){let r=`@riebeckite/theme-${t.slug}`;e.push(`| [\`${r}\`](${r7(t.slug)}) | \`${t.factory}\` | ${ve(t.desc,"en")} |`)}return e.push(""),e.push(`[Riebeckite themes on GitHub](${e7})`,""),e.push(""),e.join(`
|
|
477
|
-
`)}var Qi="^0.0.
|
|
477
|
+
`)}var Qi="^0.0.7";function a7(e,t){return[{path:"package.json",content:FO(e,t)},{path:"riebeckite.config.ts",content:BO(e,t)},{path:"vite.config.ts",content:UO()},{path:"tsconfig.json",content:jO()},{path:".gitignore",content:$O()},{path:"README.md",content:VO(e,t)},...n7(t,e),...MO(e)]}var _O=["server","client","config","content","paths","global","style","renderer","index","slug","header","article"];function MO(e){let t={server:()=>QO(),client:()=>XO(),config:()=>JO(),content:()=>ZO(),paths:()=>e_(),global:()=>t_(),style:()=>r_(e),renderer:()=>a_(e),index:()=>o_(e),slug:()=>l_(),header:()=>n_(),article:()=>i_()},r=new Map;for(let a of _O)e.appFiles.includes(a)&&r.set(a,t[a]());let n=a=>r.has(a),i=a=>r.get(a);return[...n("server")?[{path:"app/server.ts",content:i("server")}]:[],...n("client")?[{path:"app/client.ts",content:i("client")}]:[],...n("config")?[{path:"app/config.ts",content:i("config")}]:[],...n("content")?[{path:"app/content.ts",content:i("content")}]:[],...n("paths")?[{path:"app/constants/paths.ts",content:i("paths")}]:[],...n("global")?[{path:"app/global.d.ts",content:i("global")}]:[],...n("style")?[{path:"app/style.css",content:i("style")}]:[],...n("renderer")?[{path:"app/routes/_renderer.tsx",content:i("renderer")}]:[],...n("index")?[{path:"app/routes/index.tsx",content:i("index")}]:[],...n("slug")?[{path:"app/routes/[slug{.+}].tsx",content:i("slug")}]:[],...n("header")?[{path:"app/components/site-header.tsx",content:i("header")}]:[],...n("article")?[{path:"app/components/article.tsx",content:i("article")}]:[]]}function FO(e,t){let r={"@riebeckite/core":Qi,"@riebeckite/honox":Qi,hono:"^4.12.25",honox:"0.1.56"};for(let n of e.plugins)r[n.package]=Qi;return e.theme&&(r[e.theme.package]=Qi),`${JSON.stringify({name:t.name,private:!0,version:"0.0.0",type:"module",scripts:{dev:"riebeckite dev",build:"riebeckite build",check:"riebeckite check",doctor:"riebeckite doctor",inspect:"riebeckite inspect"},dependencies:r,devDependencies:{"@hono/vite-build":"^1.11.1","@riebeckite/cli":Qi,"@types/node":"^24.5.2",typescript:"^5.0.0",vite:"^8.0.9"}},null,2)}
|
|
478
478
|
`}function BO(e,t){let{title:r,description:n,baseUrl:i,locale:a}=t,s=['import { defineConfig } from "@riebeckite/core";'];for(let o of e.plugins)s.push(`import { ${o.factory} } from "${o.package}";`);if(e.theme&&s.push(`import { ${e.theme.factory} } from "${e.theme.package}";`),s.push(""),s.push("export default defineConfig({"),s.push(" site: {"),s.push(` title: ${JSON.stringify(r)},`),s.push(` description: ${JSON.stringify(n)},`),s.push(` baseUrl: ${JSON.stringify(i)},`),s.push(` locale: ${JSON.stringify(a)},`),s.push(" },"),s.push(" content: {"),s.push(' directory: "content",'),s.push(" },"),e.theme){let o=e.theme;s.push(` theme: ${o.options?`${o.factory}(${o.options})`:`${o.factory}()`},`)}s.push(" plugins: [");for(let o of e.plugins)s.push(` ${HO(o,e,t)},`);return s.push(" ],"),s.push("});"),`${s.join(`
|
|
479
479
|
`)}
|
|
480
480
|
`}var qO={empty:0,minimal:0,starter:0,rich:1,full:2,max:2,ultra:3};function s7(e,t){return{variables:t,languages:e.languages,depth:qO[e.name]}}function zO(e,t){return typeof e=="function"?e(t):e}function o7(e,t){if(e===void 0)return null;if(typeof e=="string")return e;if(typeof e=="function")return e(t);let r=Object.entries(e).filter(([,n])=>n.depth<=t.depth).map(([n,i])=>`${n}: ${zO(i.value,t)}`);return r.length===0?null:`{ ${r.join(", ")} }`}function HO(e,t,r){let n=o7(e.options,s7(t,r));return n===null?`${e.factory}()`:`${e.factory}(${n})`}function UO(){return`import path from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"esbuild": "^0.28.2",
|
|
18
18
|
"vite": "^8.0.9",
|
|
19
|
-
"@riebeckite/core": "0.0.
|
|
20
|
-
"@riebeckite/honox": "0.0.
|
|
19
|
+
"@riebeckite/core": "0.0.7",
|
|
20
|
+
"@riebeckite/honox": "0.0.7"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|