Commit graph

547 commits

Author SHA1 Message Date
Anmol Sethi
f333cb1a2b
docs: Defend install.sh
Closes #149
2022-12-01 13:29:04 -08:00
Anmol Sethi
419ecc8928
Merge pull request #313 from nhooyr/install-c148
release/build.sh: Implement --install and --uninstall for quick installation from source
2022-12-01 12:43:19 -08:00
Anmol Sethi
44ca1bb3a4
Merge pull request #314 from nhooyr/sudo-73c6
release: Use sudo automatically when installing/uninstalling
2022-12-01 12:41:41 -08:00
Anmol Sethi
54311cbf3d
release: Use sudo automatically when installing/uninstalling 2022-12-01 12:29:50 -08:00
Anmol Sethi
25e628943b
release/build.sh: Implement --install and --uninstall for quick installation from source 2022-12-01 12:25:18 -08:00
Anmol Sethi
5e151c1e0a
Merge pull request #311 from nhooyr/util-go-ef2b
util-go migration
2022-12-01 11:56:48 -08:00
Anmol Sethi
5cba89a588
ci: Update 2022-12-01 11:53:53 -08:00
Anmol Sethi
d116889fc9
Switch fully to util-go 2022-12-01 11:48:49 -08:00
Anmol Sethi
07e316fac5
xmain: rm -rf 2022-12-01 11:48:49 -08:00
Anmol Sethi
820226c72b
lib/xexec: rm -rf 2022-12-01 11:48:49 -08:00
Anmol Sethi
6139c35af2
watch: Move xbrowser to util-go and fix
Closes #175
Closes #205
2022-12-01 11:48:49 -08:00
Anmol Sethi
a05ba67a36
go2: rm -rf 2022-12-01 10:49:15 -08:00
Anmol Sethi
83872ee1c0
Merge pull request #310 from nhooyr/testdata-2322
lib/diff: Delete in favour of util-go
2022-12-01 10:27:45 -08:00
Anmol Sethi
dd4a7bc2df
lib/diff: Delete in favour of util-go 2022-12-01 10:23:48 -08:00
Anmol Sethi
207a445766
Merge pull request #309 from nhooyr/urlenc-a461
compress -> urlenc
2022-12-01 10:15:52 -08:00
Anmol Sethi
712217050b
compress -> urlenc
And associated cleanup.

Blocked until oss.terrastruct.com/util-go is importable.
2022-12-01 10:06:28 -08:00
Anmol Sethi
349d902ffc
Merge pull request #308 from nhooyr/tocsubst-39f7
Add markdown TOC generation using pandoc and shell
2022-12-01 09:55:49 -08:00
Anmol Sethi
91ac1280b3
ci/fmt.sh: More efficient 2022-12-01 09:54:09 -08:00
Anmol Sethi
b81647e7e3
Add markdown TOC generation using pandoc and shell
See a875763ecc/lib/misc.sh (L28)

The TOC is generated via pandoc and inserted via shell. `<!-- toc -->`
marks the insertion point, the TOC is inserted right below.

I'm using this in utils-go too. We should use it anywhere else we need
TOCs. I'm sure pandoc can handle the frontmatter in d2-docs too.
2022-12-01 09:54:09 -08:00
Anmol Sethi
0cb71095b7
Merge pull request #292 from nhooyr/autofmt-f0d3
d2format: Expose in CLI under fmt subcommand
2022-12-01 09:52:30 -08:00
Anmol Sethi
cdffedb9df
pr292: Review fixes 2022-12-01 09:24:50 -08:00
Anmol Sethi
f7623a2057
main: Error on arguments to version subcmd 2022-12-01 09:24:48 -08:00
Anmol Sethi
fcb41107db
d2format: Expose in CLI under fmt subcommand
Closes #289
2022-12-01 09:24:48 -08:00
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