[{"data":1,"prerenderedAt":332},["ShallowReactive",2],{"footer-links":3,"content-\u002Fcontent":12},[4,9],{"path":5,"title":6,"type":7,"isExternal":8},"https:\u002F\u002Fgithub.com\u002Flife-and-dev\u002Fmdsite","GitHub Repo","link",true,{"path":10,"title":11,"type":7,"isExternal":8},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@life-and-dev\u002Fmdsite","NPM Registry",{"id":13,"title":14,"body":15,"description":325,"extension":326,"meta":327,"navigation":8,"path":328,"seo":329,"stem":330,"__hash__":331},"content\u002Fcontent.md","Content Directory",{"type":16,"value":17,"toc":319},"minimark",[18,22,35,53,58,85,95,99,118,151,158,164,185,189,204,226,237,241,292,297,300,315],[19,20,14],"h1",{"id":21},"content-directory",[23,24,25,26,30,31,34],"p",{},"This is a reference for the ",[27,28,29],"code",{},"paths.input"," field in ",[27,32,33],{},"mdsite.yml",". It controls where MD-Site looks for your Markdown files.",[36,37,39],"markdown-alert",{"type":38},"important",[23,40,41,42,30,44,46,47,49,50,52],{},"Edit the ",[27,43,29],{},[27,45,33],{}," when your Markdown files live in a subdirectory rather than next to ",[27,48,33],{},". The renderer reads it directly from ",[27,51,33],{},".",[54,55,57],"h2",{"id":56},"_1-default-behavior","1. Default Behavior",[23,59,60,61,63,64,66,67,70,71,73,74,77,78,81,82,84],{},"If you omit ",[27,62,29],{},", MD-Site treats the directory that contains ",[27,65,33],{}," as the content directory. ",[27,68,69],{},"mdsite init"," leaves ",[27,72,29],{}," empty unless it finds a ",[27,75,76],{},"docs\u002F"," (or ",[27,79,80],{},"doc\u002F",") subdirectory, in which case it points ",[27,83,29],{}," there.",[86,87,93],"pre",{"className":88,"code":90,"language":91,"meta":92},[89],"language-text","my-site\u002F\n├── mdsite.yml\n├── index.md      ← homepage\n├── guide.md\n└── about.md\n","text","",[27,94,90],{"__ignoreMap":92},[54,96,98],{"id":97},"_2-pointing-at-a-subdirectory","2. Pointing at a Subdirectory",[23,100,101,102,104,105,108,109,112,113,115,116,52],{},"When you want to keep ",[27,103,33],{}," (and files like ",[27,106,107],{},".nvmrc",", ",[27,110,111],{},".gitignore",", your favicon source) at the project root but organize all Markdown in a dedicated folder, set ",[27,114,29],{}," to that folder. The path is resolved relative to the directory containing ",[27,117,33],{},[86,119,123],{"className":120,"code":121,"language":122,"meta":92,"style":92},"language-yaml shiki shiki-themes github-light github-dark","paths:\n  input: content\n","yaml",[27,124,125,138],{"__ignoreMap":92},[126,127,130,134],"span",{"class":128,"line":129},"line",1,[126,131,133],{"class":132},"s9eBZ","paths",[126,135,137],{"class":136},"sVt8B",":\n",[126,139,141,144,147],{"class":128,"line":140},2,[126,142,143],{"class":132},"  input",[126,145,146],{"class":136},": ",[126,148,150],{"class":149},"sZZnC","content\n",[23,152,153,154,157],{},"This reads Markdown from the ",[27,155,156],{},"content\u002F"," subdirectory, producing this layout:",[86,159,162],{"className":160,"code":161,"language":91,"meta":92},[89],"my-site\u002F\n├── mdsite.yml     ← config lives here\n├── .nvmrc\n├── .gitignore\n└── content\u002F       ← Markdown lives here\n    ├── index.md   ← homepage\n    ├── about.md\n    └── guide\u002F\n        └── intro.md\n",[27,163,161],{"__ignoreMap":92},[36,165,167],{"type":166},"note",[23,168,169,171,172,174,175,177,178,180,181,184],{},[27,170,69],{}," writes ",[27,173,29],{}," automatically when it finds a ",[27,176,76],{}," or ",[27,179,80],{}," subdirectory. For any other layout, add or edit the ",[27,182,183],{},"paths:"," block by hand.",[54,186,188],{"id":187},"_3-the-homepage","3. The Homepage",[23,190,191,192,195,196,200,201,52],{},"The file named ",[27,193,194],{},"index.md"," at the ",[197,198,199],"strong",{},"root of the content directory"," becomes your site's homepage and is served at ",[27,202,203],{},"\u002F",[205,206,207,216],"ul",{},[208,209,210,211,213,214,52],"li",{},"With the default layout, that is ",[27,212,194],{}," next to ",[27,215,33],{},[208,217,218,219,222,223,52],{},"With ",[27,220,221],{},"paths.input: content",", that is ",[27,224,225],{},"content\u002Findex.md",[23,227,228,229,231,232,234,235,52],{},"If the homepage is missing, check that an ",[27,230,194],{}," exists at the content directory root. A common cause is a ",[27,233,29],{}," value that does not point at the folder actually holding ",[27,236,194],{},[54,238,240],{"id":239},"_4-what-goes-where","4. What Goes Where",[242,243,244,257],"table",{},[245,246,247],"thead",{},[248,249,250,254],"tr",{},[251,252,253],"th",{},"Location",[251,255,256],{},"Holds",[258,259,260,278],"tbody",{},[248,261,262,269],{},[263,264,265,266,268],"td",{},"Config directory (where ",[27,267,33],{}," lives)",[263,270,271,108,273,108,275,277],{},[27,272,33],{},[27,274,107],{},[27,276,111],{},", favicon source",[248,279,280,283],{},[263,281,282],{},"Content directory (where Markdown lives)",[263,284,285,286,289,290],{},"all ",[27,287,288],{},"*.md"," files, including ",[27,291,194],{},[23,293,294,295,52],{},"Keeping these concerns separate keeps your repository tidy when it also holds non-site files alongside ",[27,296,33],{},[298,299],"hr",{},[36,301,303],{"type":302},"tip",[23,304,305,308,309,311,312,314],{},[197,306,307],{},"Output",": With the correct ",[27,310,29],{}," value, every Markdown file in that directory becomes a page, and ",[27,313,194],{}," becomes the homepage.",[316,317,318],"style",{},"html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":92,"searchDepth":140,"depth":140,"links":320},[321,322,323,324],{"id":56,"depth":140,"text":57},{"id":97,"depth":140,"text":98},{"id":187,"depth":140,"text":188},{"id":239,"depth":140,"text":240},"This is a reference for the paths.input field in mdsite.yml. It controls where MD-Site looks for your Markdown files.","md",{},"\u002Fcontent",{"title":14,"description":325},"content","y92jGY9yNnlc6d49g9Kqm_DQNxscvx-FFk5nr3PYct8",1784017753072]