@myst-theme/site 0.13.3 → 0.13.4
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.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@headlessui/react": "^1.7.15",
|
|
23
23
|
"@heroicons/react": "^2.0.18",
|
|
24
|
-
"@myst-theme/common": "^0.13.
|
|
25
|
-
"@myst-theme/diagrams": "^0.13.
|
|
26
|
-
"@myst-theme/frontmatter": "^0.13.
|
|
27
|
-
"@myst-theme/jupyter": "^0.13.
|
|
28
|
-
"@myst-theme/providers": "^0.13.
|
|
29
|
-
"@myst-theme/search": "^0.13.
|
|
24
|
+
"@myst-theme/common": "^0.13.4",
|
|
25
|
+
"@myst-theme/diagrams": "^0.13.4",
|
|
26
|
+
"@myst-theme/frontmatter": "^0.13.4",
|
|
27
|
+
"@myst-theme/jupyter": "^0.13.4",
|
|
28
|
+
"@myst-theme/providers": "^0.13.4",
|
|
29
|
+
"@myst-theme/search": "^0.13.4",
|
|
30
30
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
31
31
|
"@radix-ui/react-dialog": "^1.0.3",
|
|
32
32
|
"@radix-ui/react-radio-group": "^1.2.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"lodash.throttle": "^4.1.1",
|
|
38
38
|
"myst-common": "^1.7.3",
|
|
39
39
|
"myst-config": "^1.7.3",
|
|
40
|
-
"myst-demo": "^0.13.
|
|
40
|
+
"myst-demo": "^0.13.4",
|
|
41
41
|
"myst-spec-ext": "^1.7.3",
|
|
42
|
-
"myst-to-react": "^0.13.
|
|
42
|
+
"myst-to-react": "^0.13.4",
|
|
43
43
|
"nbtx": "^0.2.3",
|
|
44
44
|
"node-cache": "^5.1.2",
|
|
45
45
|
"node-fetch": "^2.6.11",
|
|
@@ -12,6 +12,7 @@ import type { RefObject } from 'react';
|
|
|
12
12
|
import { DocumentChartBarIcon } from '@heroicons/react/24/outline';
|
|
13
13
|
import { ChevronRightIcon } from '@heroicons/react/24/solid';
|
|
14
14
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
15
|
+
import { slugToUrl } from 'myst-common';
|
|
15
16
|
|
|
16
17
|
const SELECTOR = [1, 2, 3, 4].map((n) => `main h${n}`).join(', ');
|
|
17
18
|
|
|
@@ -443,7 +444,7 @@ export function SupportingDocuments() {
|
|
|
443
444
|
return (
|
|
444
445
|
<li key={p.slug}>
|
|
445
446
|
<NavLink
|
|
446
|
-
to={withBaseurl(`/${p.slug}#main`, baseurl)}
|
|
447
|
+
to={withBaseurl(`/${slugToUrl(p.slug)}#main`, baseurl)}
|
|
447
448
|
prefetch="intent"
|
|
448
449
|
className={({ isActive }) =>
|
|
449
450
|
classNames('no-underline flex self-center hover:text-blue-700', {
|