-
Notifications
You must be signed in to change notification settings - Fork 6
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
🪐 Launch binder for article theme #239
Conversation
4dcc6bb
to
f9d7aba
Compare
const thebe = useThebeOptions(); | ||
const canCompute = !!thebe && (article.frontmatter as any)?.thebe !== false; | ||
// TODO in lieu of extended frontmatter or theme options | ||
const enable_notebook_toolbar = false; |
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.
@rowanc1 do we have a way of bringing in theme options yet for the web theme? or any thoughts on where to do that?
I am wondering if there is already a mechanism there via the site config + template options?
@@ -27,7 +27,8 @@ function makeThebeOptions( | |||
binderBadgeUrl, | |||
); | |||
|
|||
const options = thebeFrontmatter ? optionsFromFrontmatter : undefined; | |||
const options = optionsOverrideFn(thebeFrontmatter ? optionsFromFrontmatter : undefined); |
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.
a parent theme is able to fully manipulate the options, guarding against undesirable options (e..g connecting to a foreign binder) coming in from the myst site, or just being able to patch certain options appropriately for where there parent theme is used/deployed.
Couldn't do the rebase well with so many conflicts. The merge I think is correct! We should be sure to squash-merge this when ready. |
thebe/jupyter
settingsThis is dependent on recent changes to thebe enabling different "providers" to be configured.