From e3a04347c4dba3a049c6ff8d4d21bd48fa7d887a Mon Sep 17 00:00:00 2001 From: kp992 Date: Thu, 5 Jun 2025 18:10:12 -0700 Subject: [PATCH 1/2] remove `.myst` suffix for notebooks launcher --- app/components/toolbar/LaunchButton.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/components/toolbar/LaunchButton.tsx b/app/components/toolbar/LaunchButton.tsx index a13628f..62a7f27 100644 --- a/app/components/toolbar/LaunchButton.tsx +++ b/app/components/toolbar/LaunchButton.tsx @@ -31,7 +31,10 @@ function LaunchPanel() { const [privateServiceUrl, setPrivateServiceUrl] = React.useState(); 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), []); From 6e391139d71da8650ee140f2e8e38d1a6e19bcd4 Mon Sep 17 00:00:00 2001 From: kp992 Date: Fri, 6 Jun 2025 13:08:08 -0700 Subject: [PATCH 2/2] add changeset --- .changeset/seven-views-pull.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/seven-views-pull.md diff --git a/.changeset/seven-views-pull.md b/.changeset/seven-views-pull.md new file mode 100644 index 0000000..0cd0a24 --- /dev/null +++ b/.changeset/seven-views-pull.md @@ -0,0 +1,5 @@ +--- +"@curvenote/quantecon-book": patch +--- + +Fix colab link for lecture repo ending with .myst