From b47af83625946619aa4dfc4551aaebf18b42beee Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Mon, 3 Aug 2026 11:21:07 -0700 Subject: [PATCH] docs: remove active Terrastruct references --- README.md | 9 ++------- ci/release/template/man/d2.1 | 2 +- d2cli/help.go | 2 +- d2lsp/completion.go | 4 ++-- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d565db9441..730f8a9f75 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,6 @@ [![changelog](https://img.shields.io/badge/changelog-read-blue)](./CHANGELOG.md) [![npm version](https://img.shields.io/npm/v/@terrastruct/d2)](https://www.npmjs.com/package/@terrastruct/d2) [![discord](https://img.shields.io/discord/1039184639652265985?label=discord)](https://discord.gg/NF6X8K4eDq) -[![twitter](https://img.shields.io/twitter/follow/terrastruct?style=social)](https://twitter.com/terrastruct) [![license](https://img.shields.io/github/license/d2lang/d2?color=9cf)](./LICENSE.txt) @@ -161,9 +160,7 @@ improved security but the install script is by no means insecure. In addition to being a runnable CLI tool, D2 can also be used to produce diagrams from Go programs. -For examples, see [./docs/examples/lib](./docs/examples/lib). This [blog -post](https://terrastruct.com/blog/post/generate-diagrams-programmatically/) also demos a -complete, runnable example of using D2 as a library for a real-world use case. +For examples, see [./docs/examples/lib](./docs/examples/lib). ## Themes @@ -235,8 +232,6 @@ let us know and we'll be happy to include it here! - **VSCode extension**: [https://github.com/d2lang/d2-vscode](https://github.com/d2lang/d2-vscode) - **Vim extension**: [https://github.com/d2lang/d2-vim](https://github.com/d2lang/d2-vim) - **Obsidian plugin**: [https://github.com/d2lang/d2-obsidian](https://github.com/d2lang/d2-obsidian) -- **Slack app**: [https://d2lang.com/tour/slack](https://d2lang.com/tour/slack) -- **Discord plugin**: [https://d2lang.com/tour/discord](https://d2lang.com/tour/discord) ### Community plugins @@ -276,7 +271,7 @@ let us know and we'll be happy to include it here! - **Comparison site**: [https://github.com/terrastruct/text-to-diagram-site](https://github.com/terrastruct/text-to-diagram-site) - **Playground**: [https://github.com/d2lang/d2-playground](https://github.com/d2lang/d2-playground) - **Language docs**: [https://github.com/d2lang/d2-docs](https://github.com/d2lang/d2-docs) -- **Hosted icons**: [https://icons.terrastruct.com](https://icons.terrastruct.com) +- **Hosted icons**: [https://icons.d2lang.com](https://icons.d2lang.com) ## FAQ diff --git a/ci/release/template/man/d2.1 b/ci/release/template/man/d2.1 index 61d2008cf8..eba7e091cc 100644 --- a/ci/release/template/man/d2.1 +++ b/ci/release/template/man/d2.1 @@ -57,7 +57,7 @@ See more docs, the source code and license at .Ns . .Pp Hosted icons at -.Lk https://icons.terrastruct.com +.Lk https://icons.d2lang.com .Ns . .Pp Playground runner at diff --git a/d2cli/help.go b/d2cli/help.go index 5a9e508756..a3397ec94a 100644 --- a/d2cli/help.go +++ b/d2cli/help.go @@ -44,7 +44,7 @@ Subcommands: %[1]s validate file.d2 - Validates file.d2 See more docs and the source code at https://oss.terrastruct.com/d2. -Hosted icons at https://icons.terrastruct.com. +Hosted icons at https://icons.d2lang.com. Playground runner at https://play.d2lang.com. `, filepath.Base(ms.Name), version.Version, ms.Opts.Defaults()) } diff --git a/d2lsp/completion.go b/d2lsp/completion.go index 86e683ce7d..b30b3c8918 100644 --- a/d2lsp/completion.go +++ b/d2lsp/completion.go @@ -429,10 +429,10 @@ func getTooltipCompletions() []CompletionItem { func getIconCompletions() []CompletionItem { return []CompletionItem{ { - Label: "(URL, e.g. https://icons.terrastruct.com/xyz.svg)", + Label: "(URL, e.g. https://icons.d2lang.com/xyz.svg)", Kind: KeywordCompletion, Detail: "icon URL", - InsertText: "https://icons.terrastruct.com/essentials%2F073-add.svg", + InsertText: "https://icons.d2lang.com/essentials%2F073-add.svg", }, } }