External content
MyST Supports cross-referencing into external content in order to create figures and embeds. External content could be in a different version of the AST and would need special handling.
An External Figure!¶
Loading...
An External Embed!¶
points & bars
Loading...
Local testing¶
On local testing
- Get test source content in
folderA
myst start --execute --headless
starts a content server running onlocalhost:3100
. - Start
myst-theme
npm run theme:book
in the MyST Theme repository, e.g.npm run theme:book
starts a theme running onlocalhost:3000
. - Get second set of test content in
folderB
- Add
local: http://localhost:3000
tomyst.yml#project.references
. - Add external cross references and embeds in
folderB
pointing to the local content infolderA
. - Start a second content server with
myst start --execute --headless
, which runs onlocalhost:3101
.
- Add
- In a second
myst-theme
folder, or without fully restarting the theme from step 2.- Set
CONTENT_CDN_PORT=3101
in your environment, and run another MyST Theme process (see (2))
- Set
- Test this website 👆.