Commit graph

91 commits

Author SHA1 Message Date
Gavin Nishizawa
8cded727a0
revert slog 2023-12-05 15:25:49 -08:00
Gavin Nishizawa
c3311b4c86
update deps 2023-12-05 14:50:51 -08:00
Alexander Wang
adb59ec470
add tests 2023-11-07 11:22:01 -08:00
Alexander Wang
46bf849e2b
cli: Handle invalid board paths 2023-11-07 11:22:00 -08:00
Anmol Sethi
9f0c24f5d7
fmt 2023-06-04 23:32:14 -07:00
Anmol Sethi
2fcc9ed140
d2ir: Compile imports
Works as so:

index.d2:
```d2
x: @x
```

x.d2:
```d2
label: meow
shape: circle
```

TODO:

- [ ] Correctly import into fields by handling the scenarios/steps overlay.
      - And links.
- [ ] Test every kind of import.
2023-06-04 23:31:18 -07:00
Júlio César Batista
588398a4df
convert png boards to gif 2023-04-13 18:16:53 -03:00
Alexander Wang
d4e7b2c6b0
deps: update [ci-force] 2023-03-19 22:36:33 -07:00
Alexander Wang
060f5e9e05
cli: support int64 slice 2023-03-17 17:37:01 -07:00
Alexander Wang
d1040bf4f8
save 2023-03-13 17:52:50 -07:00
Alexander Wang
c16bd35bcb
bump go-util 2023-03-08 12:17:38 -08:00
Anmol Sethi
7cd821feb7
d2cli: Accept abspaths again
Fixes https://github.com/Homebrew/homebrew-core/pull/124831/files#r1125738853
2023-03-05 14:03:06 -08:00
Alexander Wang
ea80d53a16
upgrade chroma 2023-03-03 20:08:13 -08:00
Anmol Sethi
8262ac6d74
e2etests-cli: Add stdin test
Closes https://github.com/terrastruct/d2-vscode/issues/56
2023-03-03 12:56:10 -08:00
Alexander Wang
505183aa21
[ci-base] bump utils-go 2023-03-03 09:37:55 -08:00
Anmol Sethi
7077f2edef
e2etests-cli: Ignore png and --sketch diffs 2023-03-02 21:20:58 -08:00
Anmol Sethi
4433f4bbae
e2etests-cli: Add multiboard test 2023-03-02 20:35:50 -08:00
Anmol Sethi
eae8fdeb29
e2etests-cli: Add pad test and cleanup 2023-03-02 20:02:36 -08:00
Anmol Sethi
9227021bc9
e2etests-cli: Add PNG test
Closes #903
Closes #918
2023-03-02 19:50:00 -08:00
Anmol Sethi
af1faa7b35
deps: update [ci-force] 2023-02-28 17:58:39 -08:00
Anmol Sethi
014d95a054
deps: update [ci-force] 2023-02-27 21:04:42 -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
Bernard Xie
0d1c3c019d
Merge branch 'master' into 120/pdf-export 2023-02-21 14:26:18 -08:00
Bernard Xie
890a7d8b2c
pdf exports 2023-02-14 17:28:42 -08:00
Alexander Wang
156c974241
unicode tests 2023-02-14 11:41:21 -08:00
Alexander Wang
9cb7e7f396
scale multi-width unicode 2023-02-14 11:40:49 -08:00
Anmol Sethi
30240a9e94
deps: update [ci-force] 2023-02-12 07:43:04 -08:00
Anmol Sethi
310afcdf86
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-01-24 15:29:38 -08:00
Anmol Sethi
335d925b7c
deps: update [ci-force] 2023-01-24 15:27:12 -08:00
Anmol Sethi
c77b4acc4e
deps: update [ci-force] 2023-01-24 15:25:18 -08:00
Anmol Sethi
73c6e57998
deps: update [ci-force] 2023-01-24 15:00:25 -08:00
Anmol Sethi
af97795e42
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-01-24 14:37:07 -08:00
Anmol Sethi
4c0ee82ca7
deps: update [ci-force] 2023-01-24 14:33:37 -08:00
Anmol Sethi
b350399d66
d2ir: Complete integration across all packages 2023-01-24 03:24:35 -08:00
Anmol Sethi
c9ef6ab9c9
d2graph: Implement deep copying a graph 2023-01-24 02:56:30 -08:00
Anmol Sethi
30b578f1ae
deps: update [ci-force] 2023-01-18 06:38:51 -08:00
Anmol Sethi
903dbfc749
deps: update [ci-force] 2022-12-26 10:16:24 -08:00
Anmol Sethi
6bd126ac8c
deps: update [ci-base] [ci-force] 2022-12-26 08:57:40 -08:00
Alexander Wang
b54821f04c
bump slog version 2022-12-20 10:35:35 -08:00
Anmol Sethi
56aee1b3a3
deps: update [ci-base] [ci-force] 2022-12-18 22:28:05 -08:00
Anmol Sethi
112c0a0d7d
deps: update [ci-base] [ci-force] 2022-12-18 12:33:42 -08:00
Anmol Sethi
e993bb1071
deps: update [ci-base] [ci-force] 2022-12-13 03:29:30 -08:00
Anmol Sethi
dd160cdc8d
deps: update [ci-base] [ci-force] 2022-12-13 00:04:15 -08:00
Anmol Sethi
ceefc9ef72
deps: update [ci-base] [ci-force] 2022-12-12 22:55:44 -08:00
Anmol Sethi
f759b29685
deps: update [ci-base] [ci-force] 2022-12-12 22:48:12 -08:00
Anmol Sethi
8a58087dac
deps: update [ci-base] [ci-force] 2022-12-12 22:43:20 -08:00
Anmol Sethi
68382605f0
deps: update [ci-base] [ci-force] 2022-12-12 10:42:40 -08:00
Anmol Sethi
4f49cf6426
deps: update [ci-force] 2022-12-08 04:01:24 -08:00
Anmol Sethi
67466f6154
deps: update [ci-force] 2022-12-08 02:55:36 -08:00
Anmol Sethi
031a1a707e
deps: update [ci-force] 2022-12-08 02:04:52 -08:00