Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/seven-views-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@curvenote/quantecon-book": patch
---

Fix colab link for lecture repo ending with .myst
5 changes: 4 additions & 1 deletion app/components/toolbar/LaunchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ function LaunchPanel() {
const [privateServiceUrl, setPrivateServiceUrl] = React.useState<string | undefined>();

const hasGitHub = !!project?.github;
const orgRepo = project?.github ? new URL(project?.github).pathname.slice(1) : undefined;
// Remove the `.myst` suffix from the orgRepo URL if present.
const orgRepo = project?.github
? new URL(project?.github).pathname.slice(1).replace(/\.myst$/, '')
: undefined;
const filename = `${page?.location.split('.')[0]}.ipynb`;

const handleSelect = React.useCallback((value: string) => setService(value), []);
Expand Down