@myst-theme/site 0.5.13 → 0.5.14
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.5.
|
|
3
|
+
"version": "0.5.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@headlessui/react": "^1.7.15",
|
|
19
19
|
"@heroicons/react": "^2.0.18",
|
|
20
|
-
"@myst-theme/common": "^0.5.
|
|
21
|
-
"@myst-theme/diagrams": "^0.5.
|
|
22
|
-
"@myst-theme/frontmatter": "^0.5.
|
|
23
|
-
"@myst-theme/jupyter": "^0.5.
|
|
24
|
-
"@myst-theme/providers": "^0.5.
|
|
20
|
+
"@myst-theme/common": "^0.5.14",
|
|
21
|
+
"@myst-theme/diagrams": "^0.5.14",
|
|
22
|
+
"@myst-theme/frontmatter": "^0.5.14",
|
|
23
|
+
"@myst-theme/jupyter": "^0.5.14",
|
|
24
|
+
"@myst-theme/providers": "^0.5.14",
|
|
25
25
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
26
26
|
"classnames": "^2.3.2",
|
|
27
27
|
"lodash.throttle": "^4.1.1",
|
|
28
28
|
"myst-common": "^1.1.13",
|
|
29
29
|
"myst-config": "^1.1.13",
|
|
30
|
-
"myst-demo": "^0.5.
|
|
30
|
+
"myst-demo": "^0.5.14",
|
|
31
31
|
"myst-spec-ext": "^1.1.13",
|
|
32
|
-
"myst-to-react": "^0.5.
|
|
32
|
+
"myst-to-react": "^0.5.14",
|
|
33
33
|
"nbtx": "^0.2.3",
|
|
34
34
|
"node-cache": "^5.1.2",
|
|
35
35
|
"node-fetch": "^2.6.11",
|
|
@@ -6,12 +6,12 @@ import type { KnownParts } from '../utils.js';
|
|
|
6
6
|
export function BackmatterParts({ parts }: { parts: KnownParts }) {
|
|
7
7
|
return (
|
|
8
8
|
<>
|
|
9
|
+
<Backmatter title="Acknowledgments" id="acknowledgments" content={parts.acknowledgments} />
|
|
9
10
|
<Backmatter
|
|
10
11
|
title="Data Availability"
|
|
11
12
|
id="data-availability"
|
|
12
13
|
content={parts.data_availability}
|
|
13
14
|
/>
|
|
14
|
-
<Backmatter title="Acknowledgments" id="acknowledgments" content={parts.acknowledgments} />
|
|
15
15
|
</>
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -27,16 +27,19 @@ export function Backmatter({
|
|
|
27
27
|
}) {
|
|
28
28
|
if (!content) return null;
|
|
29
29
|
return (
|
|
30
|
-
<div className="flex flex-col w-full md:flex-row">
|
|
30
|
+
<div className="flex flex-col w-full md:flex-row group/backmatter">
|
|
31
31
|
<h2
|
|
32
32
|
id={id}
|
|
33
|
-
className="mt-5 text-base font-semibold group md:w-[200px] self-start md:flex-none opacity-90"
|
|
33
|
+
className="mt-5 text-base font-semibold group md:w-[200px] self-start md:flex-none opacity-90 group-hover/backmatter:opacity-100"
|
|
34
34
|
>
|
|
35
35
|
{title}
|
|
36
36
|
<HashLink id={id} title={`Link to ${title}`} hover className="ml-2" />
|
|
37
37
|
</h2>
|
|
38
38
|
<div className="grow">
|
|
39
|
-
<ContentBlocks
|
|
39
|
+
<ContentBlocks
|
|
40
|
+
mdast={content}
|
|
41
|
+
className="opacity-90 group-hover/backmatter:opacity-100 col-screen"
|
|
42
|
+
/>
|
|
40
43
|
</div>
|
|
41
44
|
</div>
|
|
42
45
|
);
|
|
@@ -3,6 +3,7 @@ import { SourceFileKind } from 'myst-spec-ext';
|
|
|
3
3
|
import type { GenericParent } from 'myst-common';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import {
|
|
6
|
+
executableNodesFromBlock,
|
|
6
7
|
NotebookClearCell,
|
|
7
8
|
NotebookRunCell,
|
|
8
9
|
NotebookRunCellSpinnerOnly,
|
|
@@ -10,14 +11,7 @@ import {
|
|
|
10
11
|
import { useGridSystemProvider } from '@myst-theme/providers';
|
|
11
12
|
|
|
12
13
|
function isACodeCell(node: GenericParent) {
|
|
13
|
-
return (
|
|
14
|
-
node &&
|
|
15
|
-
node.type === 'block' &&
|
|
16
|
-
node.children &&
|
|
17
|
-
node.children?.length === 2 &&
|
|
18
|
-
node.children[0].type === 'code' &&
|
|
19
|
-
node.children[1].type === 'output'
|
|
20
|
-
);
|
|
14
|
+
return !!executableNodesFromBlock(node);
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
function Block({
|