-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
There was a problem hiding this 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!
"thebe-core": "^0.2.3", | ||
"thebe-lite": "^0.2.3", | ||
"thebe-react": "^0.2.3", |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests!! 🚀
<ThebeRenderMimeRegistryProvider> | ||
<ThebeSessionProvider start={false} name={article.slug}> | ||
{!hide_title_block && ( | ||
<FrontmatterBlock kind={article.kind} frontmatter={article.frontmatter} /> | ||
)} | ||
<NotebookProvider siteConfig={false} page={article}> |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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?
Fixing
thebe
based compute in the myst themes, this is updated to use new provider inthebe-react
and has some selected changes from #64 and #70 which this PR will supercede: