We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d31a51 + 6e39113 commit 63662afCopy full SHA for 63662af
2 files changed
.changeset/seven-views-pull.md
@@ -0,0 +1,5 @@
1
+---
2
+"@curvenote/quantecon-book": patch
3
4
+
5
+Fix colab link for lecture repo ending with .myst
app/components/toolbar/LaunchButton.tsx
@@ -31,7 +31,10 @@ function LaunchPanel() {
31
const [privateServiceUrl, setPrivateServiceUrl] = React.useState<string | undefined>();
32
33
const hasGitHub = !!project?.github;
34
- const orgRepo = project?.github ? new URL(project?.github).pathname.slice(1) : undefined;
+ // Remove the `.myst` suffix from the orgRepo URL if present.
35
+ const orgRepo = project?.github
36
+ ? new URL(project?.github).pathname.slice(1).replace(/\.myst$/, '')
37
+ : undefined;
38
const filename = `${page?.location.split('.')[0]}.ipynb`;
39
40
const handleSelect = React.useCallback((value: string) => setService(value), []);
0 commit comments