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
- content server running on
localhost:3100
- start myst-theme e.g.
npm run theme:book
- theme running on
localhost: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
myst start --execute --headless
- content server running on
localhost:3101
- in a second
myst-theme
folder, or without fully restarting the theme from step 2
- add a
.env
file tothemes/book
- add
CONTENT_CDN_PORT=3101
npm run theme:book
- theme running on
localhost:3001
- test this website 👆