diff --git a/.changeset/clean-countries-teach.md b/.changeset/clean-countries-teach.md new file mode 100644 index 00000000..340e9f55 --- /dev/null +++ b/.changeset/clean-countries-teach.md @@ -0,0 +1,5 @@ +--- +'@myst-theme/site': patch +--- + +Make margin for outline optional diff --git a/packages/site/src/components/DocumentOutline.tsx b/packages/site/src/components/DocumentOutline.tsx index 2446b82b..635124b8 100644 --- a/packages/site/src/components/DocumentOutline.tsx +++ b/packages/site/src/components/DocumentOutline.tsx @@ -365,7 +365,7 @@ export const DocumentOutline = ({ selector?: string; children?: React.ReactNode; maxdepth?: number; - isMargin: boolean; + isMargin?: boolean; }) => { const { activeId, headings } = useHeaders(selector, maxdepth); const [open, setOpen] = useState(false);