@myst-theme/site 0.0.19 → 0.0.20

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.0.19",
3
+ "version": "0.0.20",
4
4
  "main": "./src/index.ts",
5
5
  "types": "./src/index.ts",
6
6
  "files": [
@@ -19,16 +19,16 @@
19
19
  "@curvenote/runtime": "^0.2.9",
20
20
  "@headlessui/react": "^1.7.7",
21
21
  "@heroicons/react": "^2.0.13",
22
- "@myst-theme/diagrams": "^0.1.1",
23
- "@myst-theme/frontmatter": "^0.1.20",
24
- "@myst-theme/jupyter": "^0.0.2",
25
- "@myst-theme/providers": "^0.1.20",
22
+ "@myst-theme/diagrams": "^0.1.2",
23
+ "@myst-theme/frontmatter": "^0.1.21",
24
+ "@myst-theme/jupyter": "^0.0.3",
25
+ "@myst-theme/providers": "^0.1.21",
26
26
  "classnames": "^2.3.2",
27
27
  "lodash.throttle": "^4.1.1",
28
28
  "myst-common": "^0.0.12",
29
- "myst-config": "^0.0.6",
30
- "myst-demo": "^0.1.20",
31
- "myst-to-react": "^0.1.20",
29
+ "myst-config": "^0.0.7",
30
+ "myst-demo": "^0.1.21",
31
+ "myst-to-react": "^0.1.21",
32
32
  "mystjs": "^0.0.15",
33
33
  "nbtx": "^0.2.3",
34
34
  "node-cache": "^5.1.2",
@@ -82,11 +82,11 @@ const Headings = ({ folder, headings, sections }: Props) => {
82
82
  path={heading.path}
83
83
  isIndex={heading.level === 'index'}
84
84
  >
85
- {heading.title}
85
+ {heading.short_title || heading.title}
86
86
  </HeadingLink>
87
87
  ) : (
88
88
  <h5 className="text-slate-900 font-semibold my-2 text-md leading-6 dark:text-slate-100 break-words">
89
- {heading.title}
89
+ {heading.short_title || heading.title}
90
90
  </h5>
91
91
  )}
92
92
  </li>
@@ -94,7 +94,7 @@ const Headings = ({ folder, headings, sections }: Props) => {
94
94
  }
95
95
  return (
96
96
  <li key={sec.slug} className={classNames('p-1 my-2 lg:hidden', HEADING_CLASSES)}>
97
- <HeadingLink path={`/${sec.slug}`}>{sec.title}</HeadingLink>
97
+ <HeadingLink path={`/${sec.slug}`}>{sec.short_title || sec.title}</HeadingLink>
98
98
  </li>
99
99
  );
100
100
  })}
package/src/types.ts CHANGED
@@ -13,6 +13,7 @@ export type Heading = {
13
13
  slug?: string;
14
14
  path?: string;
15
15
  title: string;
16
+ short_title?: string;
16
17
  level: number | 'index';
17
18
  group?: string;
18
19
  };