import{M as a}from"./chunk-S4VUQJ4A-d4e526d9.js";import{p as c,j as o}from"./jsx-runtime-1fec5a65.js";import{u as i}from"./index-9b2b885f.js";import"./iframe-5ecc2aba.js";import"../sb-preview/runtime.js";import"./index-b76f801e.js";import"./_commonjsHelpers-de833af9.js";import"./index-d37d4223.js";import"./index-e04ae519.js";import"./index-356e4a49.js";const p=""+new URL("source-code-6f5764e6.png",import.meta.url).href;function m(t={}){const{wrapper:s}=Object.assign({},i(),t.components);return s?o.jsx(s,{...t,children:o.jsx(r,{})}):r();function r(){const e=Object.assign({p:"p",img:"img",h1:"h1",code:"code",pre:"pre",h2:"h2",blockquote:"blockquote",strong:"strong",a:"a"},i(),t.components);return o.jsxs(o.Fragment,{children:[o.jsx(a,{title:"Contributing/Recipes: Story with custom docs",parameters:{...c}}),` `,o.jsx(e.p,{children:o.jsx(e.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),` `,o.jsx(e.h1,{id:"recipes-story-with-custom-docs",children:"Recipes: Story with custom docs"}),` `,o.jsx(e.p,{children:"You can add custom markdown to your story page by importing and using markdown files."}),` `,o.jsxs(e.p,{children:["First, create a markdown file in a ",o.jsx(e.code,{children:"stories"})," directory in your component folder like this:"]}),` `,o.jsx(e.pre,{children:o.jsx(e.code,{children:`YourComponent/ YourComponent.svelte YourComponent.stories.svelte stories/ docs/ component.md someStory.md `})}),` `,o.jsxs(e.p,{children:["Now, import your markdown file in your story page component and attach it to either the ",o.jsx(e.code,{children:"Meta"})," (for the top docs that introduce your component) or any individual ",o.jsx(e.code,{children:"Story"})," using one of our handy docs utils."]}),` `,o.jsx(e.pre,{children:o.jsx(e.code,{className:"language-svelte",children:`