Skip to content

Commit 3769fe1

Browse files
authored
Fix broken image on design mode page and other minor docs formatting issues (#223)
* Fix broken image URL on Design Mode page * Fix URL in embedded Simulate Mode machine * Add embedded machine to delayed transitions docs * Improve subheadings inside admonition boxes * Fix broken formatting on system page
1 parent 5d4c356 commit 3769fe1

File tree

7 files changed

+25
-16
lines changed

7 files changed

+25
-16
lines changed

docs/delayed-transitions.mdx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,10 @@ Watch our [“Delayed (after) transitions” video on YouTube](https://www.youtu
4545
link="#delays"
4646
/>
4747

48-
<p>
49-
<ThemedImage
50-
alt="Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of “The video player should be in full-screen mode.” The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There’s a Stop event from the Opened state that transitions to the final state of Stopped. There’s a delayed transition from the Stopped state back to the Closed state after 5 seconds."
51-
sources={{
52-
light:
53-
'/assets/transitions-and-events/delayed-transitions/delayed-transitions.png',
54-
dark: '/assets/transitions-and-events/delayed-transitions/delayed-transitions-dm.png',
55-
}}
56-
/>
57-
</p>
48+
<EmbedMachine
49+
name="Delayed (after) transitions"
50+
embedURL="https://stately.ai/registry/editor/embed/1c962847-2829-45e2-b6fc-5f42fa3f8b6b?machineId=5671366b-05cf-43f5-a09a-b88373ea27c1"
51+
/>
5852

5953
[View this machine in Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=5671366b-05cf-43f5-a09a-b88373ea27c1).
6054

docs/design-mode.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ You can add new [states](states.mdx) by double-clicking anywhere on the canvas,
1111
<ThemedImage
1212
alt="Numbered screenshot of Stately editor’s Design mode features. Described by list below."
1313
sources={{
14-
light: '/design-mode/design-mode-signed-in.png',
15-
dark: '/design-mode/design-mode-signed-in-dm.png',
14+
light: '/design-mode-signed-in.png',
15+
dark: '/design-mode-signed-in-dm.png',
1616
}}
1717
/>
1818
</p>

docs/simulate-mode.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ description: 'Tour the features in Stately editor’s Simulate mode, including a
55

66
You can simulate your machine as if it were live in Simulate Mode. Your machine will start in the initial state, and any possible events that can be triggered are highlighted in blue.
77

8-
<EmbedMachine name="Simulate mode" embedURL="https://stately.ai/registry/editor/embed/9e7f6b1e-416a-491f-a4a0-bba386a02d8d?machineId=e5fbd908-42af-440f-8d11-91ca16a4fbda&mode=Simulate"/>
8+
<EmbedMachine
9+
name="Simulate mode"
10+
embedURL="https://stately.ai/registry/editor/embed/c447d996-cef1-421d-a422-8be695668764?machineId=e5fbd908-42af-440f-8d11-91ca16a4fbda&mode=Simulate"
11+
/>
912

1013
## Simulate events
1114

@@ -19,7 +22,7 @@ Simulate mode is disabled if your machine contains errors. States and events wit
1922

2023
### Eventless (always) events
2124

22-
Eventless (always) events will be triggered instantly upon entering their source state unless they’re guarded with a condition.
25+
Eventless (always) events will be triggered instantly upon entering their source state unless they’re guarded with a condition.
2326

2427
### Delayed (after) events
2528

@@ -35,4 +38,4 @@ Use <RefreshCcw size={12}/> **Reset** to return to the initial state and clear t
3538

3639
[Live simulation mode](live-simulation.mdx) ([pro feature](studio-pro-plan.mdx)) helps you share your simulated machine with your team without screen sharing or screenshots.
3740

38-
:::
41+
:::

docs/system.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ actor.start();
3535

3636
This is useful for actors in the system to be able send events to the root actor.
3737

38-
:::studio Coming soon… systems in Stately Studio’s editor 🤫 :::
38+
:::studio
39+
40+
Coming soon… systems in Stately Studio’s editor 🤫
41+
42+
:::
3943

4044
## Actor registration
4145

src/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,14 @@ details summary::before {
14321432
margin-bottom: calc(var(--ifm-alert-padding-vertical) * 0.5);
14331433
}
14341434

1435+
.alert:not(details) * + h2,
1436+
.alert:not(details) * + h3,
1437+
.alert:not(details) * + h4,
1438+
.alert:not(details) * + h5,
1439+
.alert:not(details) * + h6 {
1440+
margin-top: calc(var(--ifm-alert-padding-vertical) * 1.5);
1441+
}
1442+
14351443
.alert:not(details) a {
14361444
color: inherit;
14371445
}

0 commit comments

Comments
 (0)