18 lines
477 B
Markdown
18 lines
477 B
Markdown
![]() |
// how to create/export c4 images:
|
||
|
// see also https://likec4.dev/tooling/cli/
|
||
|
|
||
|
docker run -it --rm --name likec4 --user node -v $PWD:/app node bash
|
||
|
npm install likec4
|
||
|
exit
|
||
|
|
||
|
docker commit likec4 likec4
|
||
|
docker run -it --rm --user node -v $PWD:/app -p 5173:5173 likec4 bash
|
||
|
|
||
|
// as root
|
||
|
npx playwright install-deps
|
||
|
npx playwright install
|
||
|
|
||
|
npm install likec4
|
||
|
|
||
|
// render
|
||
|
node@e20899c8046f:/app/content/en/docs/project/onboarding$ ./node_modules/.bin/likec4 export png -o ./images .
|