Skip to content

Drop nb_repository_url, which points at a notebooks repo that does not exist - #279

Open
mmcky wants to merge 1 commit into
mainfrom
fix/drop-dead-nb-repository-url
Open

Drop nb_repository_url, which points at a notebooks repo that does not exist#279
mmcky wants to merge 1 commit into
mainfrom
fix/drop-dead-nb-repository-url

Conversation

@mmcky

@mmcky mmcky commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

lectures/_config.yml sets nb_repository_url to https://github.com/QuantEcon/lecture-python.zh-cn.notebooks, a repository that does not exist. quantecon-book-theme shows its Launch button whenever that key is set, so every page links Colab to the missing repository. For example, https://quantecon.github.io/lecture-python.zh-cn/intro.html links to https://colab.research.google.com/github/QuantEcon/lecture-python.zh-cn.notebooks/blob/main/intro.ipynb, and QuantEcon/lecture-python.zh-cn.notebooks returns 404 (checked 2026-09-11).

This removes the key and leaves the same comment the lecture-python-programming editions use for this situation (see QuantEcon/lecture-python-programming.fa#145). With the key unset, the theme renders no Launch button. Nothing else in the theme reads the key.

Translation sync. action-translation's sync reads this file only to find bibliographies, so it will not restore the key. The CLI's translate init does copy _config.yml from the English source, but that already overwrites every localized setting and is documented as needing a revert.

Publishing. Merging does not change the live site; the button disappears at the next publish* release. The same change is going to lecture-dp and lecture-intro.zh-cn under the same title.

Found during the book-theme parity review for the MyST theme (QuantEcon/quantecon-theme.mystmd#205), which will show Launch only when a notebook source is configured.

🤖 Generated with Claude Code

…t exist

lectures/_config.yml set nb_repository_url to
https://github.com/QuantEcon/lecture-python.zh-cn.notebooks, which returns 404.
quantecon-book-theme renders its Launch button whenever the key is set,
so every page linked Colab to the missing repository.

Leaves the comment the lecture-python-programming editions use for the
same case; the theme skips notebook-launch links when the key is unset.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 11, 2026 07:31
@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit a98368e
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6aa3ae6105c6e00008db8eae
😎 Deploy Preview https://deploy-preview-279--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is small, YAML-valid, and removes a configuration value that currently causes broken launch links without impacting other settings.

Pull request overview

Removes the nb_repository_url setting from the Sphinx theme configuration so the site theme no longer renders notebook “Launch” links that point to a non-existent notebooks repository.

Changes:

  • Drop nb_repository_url from lectures/_config.yml to disable notebook-launch buttons.
  • Add an inline comment explaining why the key is intentionally omitted.
File summaries
File Description
lectures/_config.yml Removes nb_repository_url to prevent broken Colab/notebook launch links and documents the intentional omission.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants