import{M as a}from"./chunk-PCJTTTQV-8ea8b36c.js";import{p as c,j as o}from"./jsx-runtime-539b76a3.js";import{u as i}from"./index-297ebefe.js";import"./iframe-647e33a7.js";import"../sb-preview/runtime.js";import"./extends-b40c5bac.js";import"./_commonjsHelpers-725317a4.js";import"./index-d475d2ea.js";import"./index-d37d4223.js";import"./index-1a79a776.js";import"./index-356e4a49.js";const m=""+new URL("source-code-6f5764e6.png",import.meta.url).href;function p(n={}){const{wrapper:s}=Object.assign({},i(),n.components);return s?o.jsx(s,{...n,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(),n.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-html",children:`