You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/external.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
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.
4
4
5
-
6
5
## An External Figure!
7
6
8
7

@@ -17,23 +16,17 @@ MyST Supports cross-referencing into external content in order to create figures
17
16
::::{tip} On local testing
18
17
:class: dropdown
19
18
20
-
21
-
1. get test source content in `folderA`
22
-
* myst start --execute --headless
23
-
* content server running on `localhost:3100`
24
-
2. start myst-theme e.g. `npm run theme:book`
25
-
* theme running on `localhost:3000`
26
-
3. get second set of test content in `folderB`
27
-
* add `local: http://localhost:3000` to `myst.yml#project.references`
28
-
* add external cross references and embeds in `folderB` pointing to the local content in `folderA`
29
-
*`myst start --execute --headless`
30
-
* content server running on `localhost:3101`
31
-
4. in a second `myst-theme` folder, or without fully restarting the theme from step 2
32
-
* add a `.env` file to `themes/book`
33
-
* add `CONTENT_CDN_PORT=3101`
34
-
*`npm run theme:book`
35
-
* theme running on `localhost:3001`
36
-
* test this website 👆
19
+
1. Get test source content in `folderA`
20
+
`myst start --execute --headless` starts a content server running on `localhost:3100`.
21
+
2. Start `myst-theme`
22
+
`npm run theme:book` in the MyST Theme repository, e.g. `npm run theme:book` starts a theme running on `localhost:3000`.
23
+
3. Get second set of test content in `folderB`
24
+
1. Add `local: http://localhost:3000` to `myst.yml#project.references`.
25
+
2. Add external cross references and embeds in `folderB` pointing to the local content in `folderA`.
26
+
3. Start a second content server with `myst start --execute --headless`, which runs on `localhost:3101`.
27
+
4. In a second `myst-theme` folder, or without fully restarting the theme from step 2.
28
+
- Set `CONTENT_CDN_PORT=3101` in your environment, and run another MyST Theme process (see (2))
29
+
5. Test this website 👆.
37
30
38
31
::::
39
32
@@ -48,5 +41,5 @@ MyST Supports cross-referencing into external content in order to create figures
48
41
49
42
## cross references
50
43
51
-
*[To a notebook cell](xref:local#out:simple-matplotlib)
52
-
*[To a figure](xref:local#fig:simple-matplotlib)
44
+
-[To a notebook cell](xref:local#out:simple-matplotlib)
0 commit comments