Skip to content

Set interim site base URL to the github.io Pages default - #41

Merged
mmcky merged 1 commit into
mainfrom
set-baseurl-github-io
Jul 7, 2026
Merged

mmcky merged 1 commit into
mainfrom
set-baseurl-github-io

Conversation

@mmcky

@mmcky mmcky commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What

Points the site base URL at the current GitHub Pages host, https://quantecon.github.io/lecture-dp/, as an interim setting.

Why

The DP lectures are currently served at https://quantecon.github.io/lecture-dp/ (Pages cname is null), but lectures/_config.yml still pointed at https://dp.quantecon.org/, which now serves a separate book landing page. That mismatch bakes dp.quantecon.org links into the build that all 404:

  • html.baseurl → canonical + absolute self-links between lecture pages
  • tojupyter_urlpath → URLs written into the downloadable notebooks
  • tojupyter_image_urlpath → image URLs in the downloadable notebooks

A quick check confirms the mismatch: https://dp.quantecon.org/intro.html404, while https://quantecon.github.io/lecture-dp/intro.html200.

Change

Three keys in lectures/_config.yml, https://dp.quantecon.org/https://quantecon.github.io/lecture-dp/ (and the /_static/ variant).

Interim, pending the final URL

This is deliberately a stopgap so the published site's internal links and notebook URLs resolve today. The permanent custom URL is still being decided in #2 — this should be revisited (and updated once more) when that lands.

Related

🤖 Generated with Claude Code

The DP lectures are served at https://quantecon.github.io/lecture-dp/, but
_config.yml still pointed html.baseurl (and the tojupyter URL paths) at
https://dp.quantecon.org/ — which now serves a separate book landing page.
That mismatch bakes dp.quantecon.org self-links and downloaded-notebook URLs
into the build, all of which 404.

Point baseurl, tojupyter_urlpath, and tojupyter_image_urlpath at the current
github.io host so self-links and notebook URLs resolve. Interim setting until
the final custom URL is decided in #2 — revisit then.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 7, 2026 06:33

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.

Pull request overview

Updates the Jupyter Book configuration so the published lecture site and generated notebook URLs point at the current GitHub Pages host (https://quantecon.github.io/lecture-dp/) instead of the deprecated https://dp.quantecon.org/, avoiding baked-in links that now 404.

Changes:

  • Set html.baseurl to https://quantecon.github.io/lecture-dp/.
  • Set sphinx.config.tojupyter_urlpath to https://quantecon.github.io/lecture-dp/.
  • Set sphinx.config.tojupyter_image_urlpath to https://quantecon.github.io/lecture-dp/_static/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This was referenced Jul 7, 2026
@mmcky
mmcky merged commit 03576fc into main Jul 7, 2026
2 checks passed
@mmcky
mmcky deleted the set-baseurl-github-io branch July 7, 2026 11:02
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