README: Update

This commit is contained in:
Anmol Sethi 2022-11-20 23:03:22 -08:00
parent 58780d6c5c
commit 9b8bd434e9
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
2 changed files with 11 additions and 4 deletions

View file

@ -58,8 +58,7 @@ A browser window will open with `out.svg` and live-reload on changes to `in.d2`.
## Install
For more detailed installation docs with examples for if you do not wish to use the
install script see [./doc/INSTALL.md](./doc/INSTALL.md).
For detailed installation docs with examples see [./docs/INSTALL.md](./docs/INSTALL.md).
### Install script
@ -76,8 +75,9 @@ curl -fsSL https://d2lang.com/install.sh | sh -s --
We have precompiled binaries on the [releases](https://github.com/terrastruct/d2/releases)
page for macOS and Linux. For both amd64 and arm64. We will release package manager
distributions like .rpm, .deb soon. We also want to get D2 on Homebrew for macOS
and release a docker image.
distributions like .rpm, .deb soon. d2 is on homebrew with our tap. See [./docs/INSTALL.md](./docs/INSTALL.md).
We'll have a docker image soon too.
To uninstall:

View file

@ -7,6 +7,7 @@ This file documents all the ways by which you can install d2.
- [install.sh](#installsh)
- [Standalone](#standalone)
- [macOS (Homebrew)](#macos-homebrew)
- [From Source](#from-source)
<!-- tocstop -->
@ -66,3 +67,9 @@ For macOS you may install as so:
brew tap terrastruct/d2
brew install d2
```
## From Source
```sh
go install oss.terrastruct.com/d2/cmd/d2@latest
```