Skip to content

feat: add route to handle static assets#749

Draft
bryanwweber wants to merge 1 commit into
jupyter-book:mainfrom
bryanwweber:1921-static-files
Draft

feat: add route to handle static assets#749
bryanwweber wants to merge 1 commit into
jupyter-book:mainfrom
bryanwweber:1921-static-files

Conversation

@bryanwweber
Copy link
Copy Markdown

@bryanwweber bryanwweber commented Jan 4, 2026

A new route /static/* is added to retrieve assets configured as static in myst.yml.

See jupyter-book/mystmd#1921

TODO:

  • Just return the raw response from the content server, no need to check if the path is configured since there's now the /static prefix to differentiate. This might mean that the content server needs to have a handler to handle the mapping from path -> hashed filename rather than handling it here.
  • Tests
  • Documentation

A new route /static/* is added to retrieve assets configured as static
in myst.yml.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 4, 2026

⚠️ No Changeset found

Latest commit: 88e8643

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 4, 2026

Deploy Preview for myst-theme failed. Why did it fail? →

Name Link
🔨 Latest commit 88e8643
🔍 Latest deploy log https://app.netlify.com/projects/myst-theme/deploys/695ac760127af60008c3a73b

Comment on lines +134 to +136
data.static?.forEach((asset) => {
asset.url = updateUrl(asset.url);
});
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

question: unless Zed is mistaken, this function isn't called anywhere. Is this change needed?

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants