From 8971790942b4ec9d64aa076e9ad47e2e556529c3 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Thu, 24 Oct 2024 11:49:17 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=87=20Make=20`isMargin`=20in=20documen?= =?UTF-8?q?t=20outline=20optional=20(#490)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/clean-countries-teach.md | 5 +++++ packages/site/src/components/DocumentOutline.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/clean-countries-teach.md 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);