[{"data":1,"prerenderedAt":180},["ShallowReactive",2],{"duxt-navigation-docs_demo-docs_demo":3,"i-lucide:plug":25,"i-lucide:tag":30,"i-lucide:book-open-text":32,"i-lucide:git-compare":34,"i-lucide:library":36,"i-lucide:menu":38,"i-lucide:chevron-down":40,"i-lucide:search":42,"i-simple-icons:github":44,"i-flag:de-4x3":46,"i-lucide:moon":50,"docs-de-DE-\u002Fdemo\u002Fsource":52,"i-lucide:languages":158,"i-lucide:copy":160,"i-lucide:thumbs-up":162,"i-lucide:thumbs-down":164,"i-lucide:star":166,"i-lucide:circle-alert":168,"i-simple-icons:discord":170,"i-lucide:arrow-up-right":172,"i-lucide:pencil":174,"i-lucide:arrow-left":176,"i-lucide:chevron-right":178},[4],{"title":5,"path":6,"stem":7,"children":8},"Overview","\u002Fdemo","demo",[9,13,19],{"title":5,"path":6,"stem":10,"icon":11,"description":12},"demo\u002Findex","lucide:book-open-text","Explore an invented freight API and a sample changelog, rendered as generated sections in one demo area.",{"title":14,"path":15,"stem":16,"icon":17,"description":18},"The four versions","\u002Fdemo\u002Fversions","demo\u002F1.versions","lucide:git-compare","One artefact at four versions, and the four things a reader can be told about the one they are in.",{"title":20,"path":21,"stem":22,"icon":23,"description":24},"A source of its own","\u002Fdemo\u002Fsource","demo\u002F2.source","lucide:library","Why the demo API and changelog share a source beside the documentation.",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":29},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 22v-5m3-9V2m2 6a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1zM9 8V2\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":31},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z\"\u002F>\u003Ccircle cx=\"7.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\"\u002F>\u003C\u002Fg>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":33},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 5v16m4-8h2m-2-4h2m2.001 10A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2zM6 13h2M6 9h2\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":35},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"18\" cy=\"18\" r=\"3\"\u002F>\u003Ccircle cx=\"6\" cy=\"6\" r=\"3\"\u002F>\u003Cpath d=\"M13 6h3a2 2 0 0 1 2 2v7m-7 3H8a2 2 0 0 1-2-2V9\"\u002F>\u003C\u002Fg>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":37},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 6l4 14M12 6v14M8 8v12M4 4v16\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":39},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":41},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":43},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m21 21l-4.34-4.34\"\u002F>\u003Ccircle cx=\"11\" cy=\"11\" r=\"8\"\u002F>\u003C\u002Fg>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":45},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":26,"top":26,"width":47,"height":48,"rotate":26,"vFlip":28,"hFlip":28,"body":49},640,480,"\u003Cpath fill=\"#fc0\" d=\"M0 320h640v160H0z\"\u002F>\u003Cpath fill=\"#000001\" d=\"M0 0h640v160H0z\"\u002F>\u003Cpath fill=\"red\" d=\"M0 160h640v160H0z\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":51},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"page":53,"from":156,"asked":157},{"id":54,"title":20,"body":55,"compare":145,"contributors":146,"date":145,"description":24,"extension":149,"icon":23,"lastUpdated":150,"layout":145,"meta":151,"navigation":28,"path":21,"rawbody":152,"redirectFrom":145,"seo":153,"sitemap":154,"stem":22,"__hash__":155},"docs_demo\u002Fdemo\u002F2.source.md",{"type":56,"value":57,"toc":139},"minimark",[58,70,80,88,93,111,114,118],[59,60,61,62,66,67,69],"p",{},"The demo folder holds four OpenAPI documents, a sample changelog and three\npages of prose in ",[63,64,65],"code",{},"docs\u002F",". The source reads only ",[63,68,65],{}," as ordinary pages;\nthe generated sections read the API files and changelog beside it. This keeps\nthe changelog from also appearing as an ordinary documentation page.",[59,71,72,73,76,77,79],{},"It is a second source beside the documentation, declared with\n",[63,74,75],{},"slug: 'demo'",", which is what keeps the prose at the root while these pages sit\nunder ",[63,78,6],{},".",[59,81,82,83,87],{},"Naming a slug is what claims the segment. The automatic rule gives every source\none only when the list holds more than one ",[84,85,86],"strong",{},"repository",", and both of these are\nthis checkout, so it never fires: without the slug this source would have wanted\nthe same prefix as the documentation, and the build would have said so.",[89,90,92],"h2",{"id":91},"what-the-second-source-buys","What the second source buys",[59,94,95,96,98,99,102,103,106,107,110],{},"The section row above is this area's own. An entry belongs to the source whose\nprefix it lies under, so ",[63,97,5],{},", ",[63,100,101],{},"Demo API"," and ",[63,104,105],{},"Demo Changelog"," stand there while the\ndocumentation keeps its six at the root — one ",[63,108,109],{},"sections"," list, drawn per area.",[59,112,113],{},"The navbar entry opens the area; the row moves around inside it. That is the\nsame relationship the row at the root has with the documentation, which is why\nit needed no second mechanism.",[89,115,117],{"id":116},"where-its-declaration-is","Where its declaration is",[59,119,120,123,124,127,128,131,132,134,135,138],{},[63,121,122],{},"www\u002Fapp\u002Fapp.config.ts",", in full, with a comment per key. What each key does is\nin the documentation beside this, under Reference → API reference → Declaring\nthe section — named rather than linked, because a link written here would be\nresolved against ",[84,125,126],{},"this"," source: a bare ",[63,129,130],{},"\u002Freference\u002F…"," in a page under ",[63,133,6],{},"\ncomes out as ",[63,136,137],{},"\u002Fdemo\u002Freference\u002F…",", which is nobody's page. That rule is what\nkeeps a link inside its own version; the price is that a prefixed source cannot\npoint at the prose at the root.",{"title":140,"searchDepth":141,"depth":141,"links":142},"",2,[143,144],{"id":91,"depth":141,"text":92},{"id":116,"depth":141,"text":117},null,[147],{"name":148,"commits":141},"Titus Kirch","md","2026-09-10T03:39:27+02:00",{},"---\ntitle: A source of its own\ndescription: Why the demo API and changelog share a source beside the documentation.\nicon: lucide:library\n---\n\nThe demo folder holds four OpenAPI documents, a sample changelog and three\npages of prose in `docs\u002F`. The source reads only `docs\u002F` as ordinary pages;\nthe generated sections read the API files and changelog beside it. This keeps\nthe changelog from also appearing as an ordinary documentation page.\n\nIt is a second source beside the documentation, declared with\n`slug: 'demo'`, which is what keeps the prose at the root while these pages sit\nunder `\u002Fdemo`.\n\nNaming a slug is what claims the segment. The automatic rule gives every source\none only when the list holds more than one **repository**, and both of these are\nthis checkout, so it never fires: without the slug this source would have wanted\nthe same prefix as the documentation, and the build would have said so.\n\n## What the second source buys\n\nThe section row above is this area's own. An entry belongs to the source whose\nprefix it lies under, so `Overview`, `Demo API` and `Demo Changelog` stand there while the\ndocumentation keeps its six at the root — one `sections` list, drawn per area.\n\nThe navbar entry opens the area; the row moves around inside it. That is the\nsame relationship the row at the root has with the documentation, which is why\nit needed no second mechanism.\n\n## Where its declaration is\n\n`www\u002Fapp\u002Fapp.config.ts`, in full, with a comment per key. What each key does is\nin the documentation beside this, under Reference → API reference → Declaring\nthe section — named rather than linked, because a link written here would be\nresolved against **this** source: a bare `\u002Freference\u002F…` in a page under `\u002Fdemo`\ncomes out as `\u002Fdemo\u002Freference\u002F…`, which is nobody's page. That rule is what\nkeeps a link inside its own version; the price is that a prefixed source cannot\npoint at the prose at the root.\n",{"title":20,"description":24},{"loc":21},"49HTfouIr_jlfSVj7nJEs-Q10yK_cMCSHhF3e9__CZw","en-GB","de-DE",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":159},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 8l6 6m-7 0l6-6l2-3M2 5h12M7 2h1m14 20l-5-10l-5 10m2-4h6\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":161},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fg>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":163},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15 5.88L14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88M7 10v12\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":165},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 18.12L10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88M17 14V2\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":167},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":169},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 8v4m0 4h.01\"\u002F>\u003C\u002Fg>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":171},"\u003Cpath fill=\"currentColor\" d=\"M20.317 4.37a19.8 19.8 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.3 18.3 0 0 0-5.487 0a13 13 0 0 0-.617-1.25a.08.08 0 0 0-.079-.037A19.7 19.7 0 0 0 3.677 4.37a.1.1 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.08.08 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.08.08 0 0 0 .084-.028a14 14 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13 13 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10 10 0 0 0 .372-.292a.07.07 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.07.07 0 0 1 .078.01q.181.149.373.292a.077.077 0 0 1-.006.127a12.3 12.3 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.08.08 0 0 0 .084.028a19.8 19.8 0 0 0 6.002-3.03a.08.08 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.06.06 0 0 0-.031-.03M8.02 15.33c-1.182 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418m7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":173},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":175},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":177},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":26,"top":26,"width":27,"height":27,"rotate":26,"vFlip":28,"hFlip":28,"body":179},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"\u002F>",1789004674621]