Skip to content

馃З Add new myst templates start command to start site templates - #2163

Open
agoose77 wants to merge 5 commits into
mainfrom
agoose77/refactor-move-templates
Open

馃З Add new myst templates start command to start site templates#2163
agoose77 wants to merge 5 commits into
mainfrom
agoose77/refactor-move-templates

Conversation

@agoose77

@agoose77 agoose77 commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

This PR closes #2017 by adding a new myst templates start command. This command enables using MyST locally to preview remote builds.

It can be tested by starting a headless MyST content server, and then running

myst templates start site/myst/book-theme

For now, the --cdn argument is tested against a regex to ensure that it's defined w.r.t localhost. In future, I'd like to support other hosts, to enable remote build previews. But, I want to update the myst-theme to use CONTENT_CDN rather than CONTENT_CDN_PORT, so we need to get there iteratively.

It also performs some refactoring to split out the site template serving.

@rowanc1 I did this on the plane, so it might be "I'm sitting next to a really sad infant and it's impacting my decision making skills".

@changeset-bot

changeset-bot Bot commented Jul 9, 2025

Copy link
Copy Markdown

馃 Changeset detected

Latest commit: cf0d989

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
myst-templates Minor
myst-cli Patch
mystmd Patch
myst-migrate Patch
mystmd-docs Patch

Not sure what this means? Click here to learn what changesets are.

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

@agoose77
agoose77 requested a review from rowanc1 July 9, 2025 23:19
@rowanc1 rowanc1 added the enhancement New feature or request label Jul 10, 2025
@agoose77
agoose77 force-pushed the agoose77/refactor-move-templates branch from f6675b2 to 4d785ff Compare June 9, 2026 09:10
@agoose77
agoose77 force-pushed the agoose77/refactor-move-templates branch from 6c2e49c to cf0d989 Compare August 4, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Add a myst preview subcommand

2 participants