Commit graph

1993 commits

Author SHA1 Message Date
Anmol Sethi
5a5d48bdbc
d2cli: Move main code into d2cli so it can be imported from tests
Updates #903
2023-02-27 15:04:02 -08:00
Anmol Sethi
233a3fddd3
Merge pull request #923 from nhooyr/layers-containers-97eb
cli: Improve multiboard output
2023-02-27 14:42:10 -08:00
Anmol Sethi
f64b5c010d
IsContainerOnly -> IsFolderOnly 2023-02-27 14:39:09 -08:00
Anmol Sethi
78b09f5007
BoardContainer -> IsContainerOnly
As discussed on slack.
2023-02-27 14:39:08 -08:00
Anmol Sethi
89394421f8
changelog: Update 2023-02-27 14:39:08 -08:00
Anmol Sethi
65437b954d
main: Don't render board containers in renderPDF
cc @berniexie
2023-02-27 13:50:03 -08:00
Anmol Sethi
e4fac7840f
cli: Improve multiboard output
- Boards with subboards are now selfcontained folders with index.svg/png as
  the root board render.
- Boards that are only containers of other boards are not rendered. For example a
  scenario with no modifications and only steps only has its steps
  rendered.
- Boards with sibling boards of another type are rendered under a
  subdirectory indicating their type to separate them. For example a
  board with layers and scenarios has its layers rendered into subfolder
  layers and scenarios into subfolder scenarios.

cc @berniexie see BoardContainer field on d2target.Board for the field
you were looking for to skip renders for PDFs too.
2023-02-27 13:50:03 -08:00
Alexander Wang
6b70ebe00c
Merge pull request #922 from alixander/fix-fill
fix theme regex
2023-02-27 13:01:48 -08:00
Alexander Wang
9cdfd20ff9
changelog 2023-02-27 12:58:21 -08:00
Alexander Wang
e5eacbd499
fix theme regex 2023-02-27 12:56:04 -08:00
Anmol Sethi
bc3942fa7e
d2graph: Actually remove board keyword check
d2ir change alone is enough.
2023-02-27 12:10:36 -08:00
Alexander Wang
be09118633
Merge pull request #876 from alixander/fix-d2oracle-underscore
compiler: Fix underscore reference
2023-02-27 12:10:07 -08:00
Alexander Wang
1143286c33
regen test 2023-02-27 12:04:08 -08:00
Anmol Sethi
903bf7e206
Ignore BoardKeywords in d2graph and change d2ir.IDA to return from nearest board 2023-02-27 11:52:55 -08:00
Anmol Sethi
f60856fc28
Merge pull request #917 from nhooyr/docker-arm64-playwright-e161
Add playwright deps to arm64 docker image
2023-02-27 11:36:18 -08:00
Anmol Sethi
25f8361eeb
changelogs/next.md: Update 2023-02-27 11:30:24 -08:00
Anmol Sethi
79eac42905
docker: Build cross platform release image natively
Playwright deps don't install when running under QEMU.
2023-02-27 11:25:43 -08:00
gavin-ts
de461199b2
Merge pull request #916 from gavin-ts/regression-test-from-file
add util to read e2e test from file
2023-02-27 10:39:52 -08:00
Alexander Wang
f6f68518f8
tests 2023-02-27 10:35:26 -08:00
Alexander Wang
6594ffc904
cleanup 2023-02-27 10:33:35 -08:00
Alexander Wang
fa9f402f8c
ensure 2023-02-27 10:33:35 -08:00
Alexander Wang
1bc5d90d22
add failing compiler test 2023-02-27 10:33:34 -08:00
Gavin Nishizawa
74dbf60830
add regression test read from file 2023-02-27 10:31:55 -08:00
Anmol Sethi
5c2a80330f
docker: Install playwright dependencies on arm64
Also changed our code to only install chromium.

Closes #835
2023-02-27 10:30:59 -08:00
Alexander Wang
ce19b61584
Merge pull request #895 from JettChenT/3d-hexagon
Render: Support 3d hexagons
2023-02-27 10:08:10 -08:00
JettChenT
a448a65c7f
resolve CI testing conflicts 2023-02-27 15:53:22 +08:00
Jett Chen
c9477639cc
Merge branch 'master' into 3d-hexagon 2023-02-27 10:22:09 +08:00
JettChenT
5b5a976b7c
squash commits
upate tests

Update changelog

add support for Fill

update test case

resolve changes
2023-02-27 09:50:18 +08:00
Alexander Wang
5ac8b6f0ec
Merge pull request #910 from alixander/root-styles
apply diagram background styles, fix bounding box bugs
2023-02-26 16:29:24 -08:00
Alexander Wang
87eae1b616
implement background styles 2023-02-26 16:23:51 -08:00
Anmol Sethi
a9f3ef10bb
Merge pull request #902 from nhooyr/dark-mode-caution-abc2
cli: Document -dark-theme gotcha
2023-02-25 10:50:57 -08:00
Anmol Sethi
06548f1543
cli: Document -dark-theme gotcha
Updates #831
2023-02-25 10:39:21 -08:00
Alexander Wang
a2503328a2
Merge pull request #725 from gavin-ts/fitToScreen-alternative
render: no js fit to screen alternative
2023-02-25 08:43:12 -08:00
Alexander Wang
0adef9953c
tests 2023-02-25 08:39:12 -08:00
Alexander Wang
91e11eef85
changelog 2023-02-25 08:31:56 -08:00
Alexander Wang
39f6c7754c
tests 2023-02-25 08:30:15 -08:00
Alexander Wang
4d4073ee27
Merge branch 'master' into fitToScreen-alternative 2023-02-25 08:29:42 -08:00
Alexander Wang
3e039debe3
Merge pull request #899 from alixander/prevent-bad-sequence
fixes 3 bugs: near sequence child, class font, class in sequence
2023-02-25 08:13:43 -08:00
Alexander Wang
fabe85a0da
changelog 2023-02-25 07:55:02 -08:00
Alexander Wang
0216c8b5f0
fix font-color for tables and class 2023-02-24 20:39:34 -08:00
Alexander Wang
4411fbdabc
fix class shape in sequence diagram render 2023-02-24 20:17:09 -08:00
Gavin Nishizawa
c12e361049
update d2 watch mode 2023-02-24 19:36:09 -08:00
Alexander Wang
1fcb075e04
no near 2023-02-24 19:05:23 -08:00
Gavin Nishizawa
3cabfb85e9
update tests 2023-02-24 18:56:30 -08:00
Gavin Nishizawa
9218768ee2
update adding appendix to work with fit-to-screen 2023-02-24 18:56:30 -08:00
Gavin Nishizawa
f144886ba5
update tests 2023-02-24 18:55:43 -08:00
Gavin Nishizawa
b43e2a44b4
option placing in center rather than top left 2023-02-24 18:55:42 -08:00
Gavin Nishizawa
fd2955fb56
update tests 2023-02-24 18:55:37 -08:00
Gavin Nishizawa
5f085c3d82
add alternative method for fit to screen 2023-02-24 15:07:28 -08:00
Gavin Nishizawa
45e58fdca5
remove fit to screen script 2023-02-24 14:58:45 -08:00