Skip to content

Commit 1c82b3f

Browse files
committed
update
1 parent 6d6887e commit 1c82b3f

10 files changed

Lines changed: 1368 additions & 427 deletions

File tree

_site/0-book/unit-5/section-3/1-map.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ When you call `map`, a **Dependency** is registered internally between the two `
3535

3636
The dependency created by `map` is **Static**. Once you define the relationship `labels = numbers.map(...)`, the rule itself—the transformation of the value—does not change later.
3737

38+
```mermaid
39+
flowchart LR
40+
Start --> Stop
41+
```
42+
3843
```txt
3944
+-----------------+ .map(x => `Score: ${x}`) +-----------------+
4045
| numbers | --------------------------------> | labels |

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import starlightSidebarTopics from 'starlight-sidebar-topics';
1010
import remarkMath from 'remark-math';
1111
import rehypeMathjax from 'rehype-mathjax';
1212

13+
import mermaid from 'astro-mermaid';
14+
1315
export default defineConfig({
1416
// GitHub Pages configuration
1517
site: 'https://ken-okabe.github.io',
@@ -20,6 +22,7 @@ export default defineConfig({
2022
prefixDefaultLocale: true,
2123
},
2224
integrations: [
25+
mermaid(), // ⚠️ Must come BEFORE starlight
2326
starlight({
2427
title: 'Experience Quality Coding for AI',
2528
defaultLocale: 'en',

0 commit comments

Comments
 (0)