@myst-theme/site 0.2.10 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myst-theme/site",
3
- "version": "0.2.10",
3
+ "version": "0.3.0",
4
4
  "main": "./src/index.ts",
5
5
  "types": "./src/index.ts",
6
6
  "files": [
@@ -16,16 +16,16 @@
16
16
  "dependencies": {
17
17
  "@headlessui/react": "^1.7.13",
18
18
  "@heroicons/react": "^2.0.14",
19
- "@myst-theme/diagrams": "^0.2.10",
20
- "@myst-theme/frontmatter": "^0.2.10",
21
- "@myst-theme/jupyter": "^0.2.10",
22
- "@myst-theme/providers": "^0.2.10",
19
+ "@myst-theme/diagrams": "^0.3.0",
20
+ "@myst-theme/frontmatter": "^0.3.0",
21
+ "@myst-theme/jupyter": "^0.3.0",
22
+ "@myst-theme/providers": "^0.3.0",
23
23
  "classnames": "^2.3.2",
24
24
  "lodash.throttle": "^4.1.1",
25
- "myst-common": "^0.0.17",
26
- "myst-config": "^0.0.16",
27
- "myst-demo": "^0.2.10",
28
- "myst-to-react": "^0.2.10",
25
+ "myst-common": "^1.0.0",
26
+ "myst-config": "^1.0.0",
27
+ "myst-demo": "^0.3.0",
28
+ "myst-to-react": "^0.3.0",
29
29
  "nbtx": "^0.2.3",
30
30
  "node-cache": "^5.1.2",
31
31
  "node-fetch": "^2.6.7",
@@ -185,7 +185,7 @@ export const TableOfContents = ({
185
185
  >
186
186
  <nav
187
187
  aria-label="Table of Contents"
188
- className="flex-grow overflow-y-auto transition-opacity mt-6 pb-3 ml-3 xl:ml-0 mr-3"
188
+ className="flex-grow overflow-y-auto transition-opacity mt-6 pb-3 ml-3 xl:ml-0 mr-3 max-w-[350px]"
189
189
  >
190
190
  <Headings folder={projectSlug} headings={headings} sections={config?.projects} />
191
191
  </nav>
@@ -72,7 +72,7 @@ export function getFooterLinks(
72
72
  projectSlug?: string,
73
73
  slug?: string,
74
74
  ): FooterLinks {
75
- if (!projectSlug || !slug || !config) return {};
75
+ if (!slug || !config) return {};
76
76
  const pages = getProjectHeadings(config, projectSlug, {
77
77
  addGroups: true,
78
78
  });