Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪐 Improve thebe bundling #123

Merged
merged 11 commits into from
Jun 13, 2023
Merged

🪐 Improve thebe bundling #123

merged 11 commits into from
Jun 13, 2023

Conversation

stevejpurves
Copy link
Contributor

@stevejpurves stevejpurves commented Jun 13, 2023

Fixing thebe based compute in the myst themes, this is updated to use new provider in thebe-react and has some selected changes from #64 and #70 which this PR will supercede:

@stevejpurves stevejpurves marked this pull request as ready for review June 13, 2023 14:13
@rowanc1 rowanc1 changed the title feat/thebe manual merge 🪐 Improve thebe bundling Jun 13, 2023
Copy link
Collaborator

@rowanc1 rowanc1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and a massive improvement in testing and bundling!

Comment on lines +37 to +39
"thebe-core": "^0.2.3",
"thebe-lite": "^0.2.3",
"thebe-react": "^0.2.3",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love that these are fixed versions @stevejpurves -- thank you!

@@ -0,0 +1,351 @@
import { describe, expect, test } from 'vitest';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests!! 🚀

Comment on lines +26 to +31
<ThebeRenderMimeRegistryProvider>
<ThebeSessionProvider start={false} name={article.slug}>
{!hide_title_block && (
<FrontmatterBlock kind={article.kind} frontmatter={article.frontmatter} />
)}
<NotebookProvider siteConfig={false} page={article}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am looking forward to some of these being merged into a single provider as we move to supporting across different articles!

test/index.js Outdated
@@ -0,0 +1,26 @@
"use strict";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file intentionally added?

@rowanc1 rowanc1 merged commit 27c412c into main Jun 13, 2023
@rowanc1 rowanc1 deleted the feat/thebe-manual-merge branch June 13, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants