Anmol Sethi
2df2c781e9
lib/xmain: Print usage info in separate log
2022-12-01 09:24:48 -08:00
Anmol Sethi
80b9d1b057
ci/dev.sh: Add
2022-12-01 09:24:48 -08:00
Anmol Sethi
d21e36b407
Merge pull request #293 from nhooyr/improve-watch-ab11
...
watch.go: Ignore first error in ensureAddWatch
2022-12-01 09:19:08 -08:00
Anmol Sethi
fa217fdab6
watch.go: Ignore first error in ensureAddWatch
...
Will prevent the benign watching errors we've been seeing.
I feel like there was an open issue for this but I cannot find it.
2022-12-01 09:17:16 -08:00
Anmol Sethi
026959bc57
Merge pull request #306 from nhooyr/textmeasure-ab94
...
Move textmeasure into lib
2022-12-01 08:57:18 -08:00
Anmol Sethi
11a93df61c
make.sh: Fix
2022-12-01 06:51:17 -08:00
Anmol Sethi
c4ef432daf
Move textmeasure into lib
...
It's not a d2renderer.
2022-12-01 06:51:17 -08:00
Anmol Sethi
8a7f9589f6
daily.yml: Simplify
2022-12-01 05:34:34 -08:00
Anmol Sethi
264a164cf6
workflows/project.yml: Add all opened issues to D2 project automatically
2022-12-01 04:30:55 -08:00
Anmol Sethi
0fc29bf1f7
README: Update
2022-12-01 03:51:06 -08:00
Anmol Sethi
b5bfd68b50
go mod tidy
2022-12-01 02:19:12 -08:00
Anmol Sethi
a5516589a1
Update cmdlog
2022-12-01 02:11:11 -08:00
Anmol Sethi
c14e588b8a
Update cmdlog
2022-12-01 02:04:18 -08:00
Anmol Sethi
7565328e19
main: Use cmdlog API to enable timestamps
2022-12-01 01:45:14 -08:00
Anmol Sethi
c865aaebeb
Update cmdlog
2022-12-01 01:06:14 -08:00
Anmol Sethi
3279060849
Merge pull request #291 from nhooyr/cmdlog-13d0
...
Update cmdlog
2022-12-01 00:45:26 -08:00
Anmol Sethi
4cfd7c9c03
Update cmdlog
2022-12-01 00:44:59 -08:00
Anmol Sethi
7797839f9f
Merge pull request #290 from nhooyr/nocmd-326c
...
Move d2 cmd to repo root and update library examples
2022-12-01 01:57:23 -05:00
Anmol Sethi
20abda5ffe
ci/sub: Update
2022-11-30 22:55:42 -08:00
Anmol Sethi
14a78f2a30
README: Update toc
2022-11-30 22:54:49 -08:00
Anmol Sethi
f334ef5952
README: Cleanup examples to make them runnable and testable
2022-11-30 22:54:47 -08:00
Anmol Sethi
c55bf62438
d2: Move cmd to repo root
...
Closes #113
2022-11-30 21:16:02 -08:00
Anmol Sethi
5fa80861ff
Merge pull request #288 from nhooyr/ver-1242
...
lib/version: Set to HEAD when building from source instead of ????
2022-11-30 18:58:07 -05:00
Anmol Sethi
63d5a66962
lib/version: Update to include some version context
2022-11-30 15:50:53 -08:00
Anmol Sethi
e3060f6aca
lib/version: Set to HEAD when building from source instead of ????
...
More clear. See https://github.com/terrastruct/d2/issues/202
2022-11-30 15:38:40 -08:00
Anmol Sethi
b3859c25f5
Merge pull request #277 from nhooyr/comp-31a5
...
README: Add comparison front and center
2022-11-30 18:18:28 -05:00
Anmol Sethi
43dbf8cb96
README: Add comparison front and center
...
There's been a few comments that our comparison was buried in the FAQ
and it sort of is. It's important enough to be front and center along
with the language docs and cheat sheet.
2022-11-30 15:16:52 -08:00
Anmol Sethi
29562feeb2
Merge pull request #278 from nhooyr/fixes-d6f3
...
imgbundler and CLI fixes
2022-11-30 18:00:29 -05:00
Anmol Sethi
1d2ea2bb87
imgbundler: Use time.Ticker instead
2022-11-30 14:58:52 -08:00
Anmol Sethi
e3104688a6
pr278: Review fixes
2022-11-30 14:58:52 -08:00
Anmol Sethi
39a990364d
changelog: Update
2022-11-30 14:58:52 -08:00
Anmol Sethi
fd0eba997d
imgbundler: Split bundle into three functions
2022-11-30 14:58:52 -08:00
Anmol Sethi
b8b269db0c
imgbundler: Improve mime type detection
...
The order of priority in detecting the mime type is now:
- Content-Type response header
- File path extension
- http.DetectContentType
2022-11-30 14:58:52 -08:00
Anmol Sethi
eb1868cd0d
d2: Indicate whether partial render was written in default build
2022-11-30 14:58:52 -08:00
Anmol Sethi
206d3eecb8
d2.1: Document partial renders
2022-11-30 14:58:52 -08:00
Anmol Sethi
0edf30a6cd
imgbundler: Fixes
...
- Make bundle flag work
- Display error and update render at the same time in watch mode.
Before we would just display the render and not show the error.
- Rename imgbundler.InlineX functions to BundleX
- Print imgbundler fetch/readFile errors as they happen in the workers
instead of coalescing and printing at the end.
- Minor performance improvements by using []byte everywhere possible.
- Improved symbol naming in imgbundler code
- **major**: Ignore already bundled images instead of trying to os.ReadFile them.
2022-11-30 14:58:52 -08:00
Anmol Sethi
f8418f3a2c
xmain: Return usage errors automatically from opts
2022-11-30 14:58:52 -08:00
Anmol Sethi
8e76cbd3c8
watch.css: Fix from d2c -> d2 rename
...
cc @alixander this has been broken for so long lol
From when the code was in the monorepo.
2022-11-30 14:58:52 -08:00
ejulio-ts
20fd100431
Merge pull request #287 from ejulio-ts/fix-sequence-diagram-zindex
...
Fix span render
2022-11-30 13:57:44 -08:00
Júlio César Batista
641c809464
Fix span rendering order
2022-11-30 13:41:20 -08:00
ejulio-ts
4c6dd8d9f8
Merge pull request #267 from ejulio-ts/render-priority
...
Render priority
2022-11-30 13:36:49 -08:00
Júlio César Batista
568121204e
Update tests
2022-11-30 13:33:26 -08:00
Júlio César Batista
a73d9ff7b7
Merge branch 'master' into render-priority
2022-11-30 13:31:32 -08:00
Júlio César Batista
347a6b263d
PR comments
2022-11-30 13:15:33 -08:00
gavin-ts
bf5b8c601f
Merge pull request #250 from gavin-ts/support-all-font-sizes-in-range
...
render: use style.font-size attribute
2022-11-30 11:50:23 -08:00
Gavin Nishizawa
2f96210e77
refactor to load all font sizes on demand
2022-11-30 11:46:41 -08:00
Gavin Nishizawa
7e58edc436
changelog
2022-11-30 11:46:40 -08:00
Gavin Nishizawa
723826ee30
update tests
2022-11-30 11:46:39 -08:00
Gavin Nishizawa
acebca9739
load font at new size on demand
2022-11-30 11:45:29 -08:00
Gavin Nishizawa
23d0b4499a
add large font size tests
2022-11-30 11:45:27 -08:00