diff --git a/.changeset/forty-carrots-cry.md b/.changeset/forty-carrots-cry.md new file mode 100644 index 000000000..8b41efaf4 --- /dev/null +++ b/.changeset/forty-carrots-cry.md @@ -0,0 +1,7 @@ +--- +'@myst-theme/frontmatter': patch +'@myst-theme/site': patch +'@myst-theme/book': patch +--- + +Some alignment fixes, leaving more control over content top alignment to the theme diff --git a/.changeset/mighty-ears-breathe.md b/.changeset/mighty-ears-breathe.md new file mode 100644 index 000000000..4943e7c27 --- /dev/null +++ b/.changeset/mighty-ears-breathe.md @@ -0,0 +1,6 @@ +--- +'@myst-theme/site': patch +'@myst-theme/book': patch +--- + +Renamed `Navigation` component and split for re-use in different (composed/multi-site) themes diff --git a/.changeset/olive-baboons-accept.md b/.changeset/olive-baboons-accept.md new file mode 100644 index 000000000..af94e3e82 --- /dev/null +++ b/.changeset/olive-baboons-accept.md @@ -0,0 +1,6 @@ +--- +'@myst-theme/site': minor +'@myst-theme/book': patch +--- + +Rework TOC to PrimarySidebar diff --git a/.changeset/strong-cars-beam.md b/.changeset/strong-cars-beam.md new file mode 100644 index 000000000..d9758f0f8 --- /dev/null +++ b/.changeset/strong-cars-beam.md @@ -0,0 +1,5 @@ +--- +'@myst-theme/common': patch +--- + +Modified `getProjectHeadings` to work with plain `projectSlugs` to support custom theme routes that use `baseurl` but have no separate project. diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index e12428f1f..f9994d377 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -40,7 +40,10 @@ export function getProjectHeadings( }, ...project.pages.map((p) => { if (!('slug' in p)) return p; - return { ...p, path: projectSlug ? `/${project.slug}/${p.slug}` : `/${p.slug}` }; + return { + ...p, + path: projectSlug && project.slug ? `/${project.slug}/${p.slug}` : `/${p.slug}`, + }; }), ]; if (opts.addGroups) { diff --git a/packages/frontmatter/src/FrontmatterBlock.tsx b/packages/frontmatter/src/FrontmatterBlock.tsx index 56dab11cd..d311cf643 100644 --- a/packages/frontmatter/src/FrontmatterBlock.tsx +++ b/packages/frontmatter/src/FrontmatterBlock.tsx @@ -235,7 +235,7 @@ export function FrontmatterBlock({ className={classNames(className)} > {showHeaderBlock && ( -