Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed Oct 18, 2024
1 parent b700350 commit 4dc6060
Show file tree
Hide file tree
Showing 7 changed files with 250 additions and 261 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-bats-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/common': patch
---

Expose PageFrontmatterWithDownloads
465 changes: 223 additions & 242 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion packages/common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export type FooterLinks = {
};
};

type PageFrontmatterWithDownloads = Omit<PageFrontmatter, 'parts' | 'downloads' | 'exports'> & {
export type PageFrontmatterWithDownloads = Omit<
PageFrontmatter,
'parts' | 'downloads' | 'exports'
> & {
parts?: Record<string, { frontmatter?: PageFrontmatter; mdast: GenericParent }>;
downloads?: SiteAction[];
exports?: SiteExport[];
Expand Down
4 changes: 2 additions & 2 deletions packages/jupyter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"classnames": "^2.5.1",
"jupyterlab-plotly": "^5.24.0",
"myst-common": "^1.7.2",
"myst-config": "^1.6.0",
"myst-frontmatter": "^1.7.0",
"myst-config": "^1.7.2",
"myst-frontmatter": "^1.7.2",
"myst-spec": "^0.0.5",
"myst-spec-ext": "^1.7.2",
"myst-to-react": "^0.13.1",
Expand Down
26 changes: 13 additions & 13 deletions packages/myst-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@
"js-yaml": "^4.1.0",
"myst-common": "^1.7.2",
"myst-config": "^1.7.2",
"myst-directives": "^1.5.6",
"myst-ext-card": "^1.0.8",
"myst-ext-exercise": "^1.0.7",
"myst-ext-grid": "^1.0.7",
"myst-ext-proof": "^1.0.10",
"myst-ext-tabs": "^1.0.7",
"myst-directives": "^1.5.7",
"myst-ext-card": "^1.0.9",
"myst-ext-exercise": "^1.0.8",
"myst-ext-grid": "^1.0.8",
"myst-ext-proof": "^1.0.11",
"myst-ext-tabs": "^1.0.8",
"myst-frontmatter": "^1.7.2",
"myst-parser": "^1.5.6",
"myst-parser": "^1.5.7",
"myst-spec": "^0.0.5",
"myst-to-docx": "^1.0.11",
"myst-to-html": "^1.5.6",
"myst-to-jats": "^1.0.29",
"myst-to-docx": "^1.0.12",
"myst-to-html": "^1.5.7",
"myst-to-jats": "^1.0.30",
"myst-to-react": "^0.13.1",
"myst-to-tex": "^1.0.37",
"myst-to-typst": "^0.0.23",
"myst-transforms": "^1.3.25",
"myst-to-tex": "^1.0.38",
"myst-to-typst": "^0.0.24",
"myst-transforms": "^1.3.26",
"unified": "^10.1.2",
"unist-util-remove": "^4.0.0",
"unist-util-visit": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-to-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"buffer": "^6.0.3",
"classnames": "^2.3.2",
"myst-common": "^1.7.2",
"myst-config": "^1.7.0",
"myst-config": "^1.7.2",
"myst-spec": "^0.0.5",
"nanoid": "^4.0.2",
"react-syntax-highlighter": "15.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/site/src/components/Headers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@myst-theme/frontmatter';
import { useGridSystemProvider } from '@myst-theme/providers';
import classNames from 'classnames';
import type { PageFrontmatter } from 'myst-frontmatter';
import type { PageFrontmatterWithDownloads } from '@myst-theme/common';
import { ThemeButton } from './Navigation/index.js';

export function ArticleHeader({
Expand All @@ -16,7 +16,7 @@ export function ArticleHeader({
toggleTheme,
className,
}: {
frontmatter: PageFrontmatter;
frontmatter: PageFrontmatterWithDownloads;
children?: React.ReactNode;
toggleTheme?: boolean;
className?: string;
Expand Down

0 comments on commit 4dc6060

Please sign in to comment.