diff --git a/.gitmodules b/.gitmodules index b3ec972..f20442f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "src/d2-vscode"] path = src/d2-vscode - url = https://github.com/terrastruct/d2-vscode + url = https://github.com/d2lang/d2-vscode [submodule "ci/sub"] path = ci/sub url = https://github.com/terrastruct/ci diff --git a/README.md b/README.md index cb43072..3c2223f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # D2 Documentation -[![ci](https://github.com/terrastruct/d2-docs/actions/workflows/ci.yml/badge.svg)](https://github.com/terrastruct/d2-docs/actions/workflows/ci.yml) -[![daily](https://github.com/terrastruct/d2-docs/actions/workflows/daily.yml/badge.svg)](https://github.com/terrastruct/d2-docs/actions/workflows/daily.yml) -[![license](https://img.shields.io/github/license/terrastruct/d2-docs?color=9cf)](./LICENSE) +[![ci](https://github.com/d2lang/d2-docs/actions/workflows/ci.yml/badge.svg)](https://github.com/d2lang/d2-docs/actions/workflows/ci.yml) +[![daily](https://github.com/d2lang/d2-docs/actions/workflows/daily.yml/badge.svg)](https://github.com/d2lang/d2-docs/actions/workflows/daily.yml) +[![license](https://img.shields.io/github/license/d2lang/d2-docs?color=9cf)](./LICENSE) This is language documentation for D2, a modern, open-source text-to-diagram DSL. The source repository for that is here: -[https://github.com/terrastruct/d2](https://github.com/terrastruct/d2). +[https://github.com/d2lang/d2](https://github.com/d2lang/d2). Deployed at [https://d2lang.com](https://d2lang.com). diff --git a/blog/animation.md b/blog/animation.md index 2988b40..45fd0de 100644 --- a/blog/animation.md +++ b/blog/animation.md @@ -8,7 +8,7 @@ This is a single SVG file created purely through D2 text:
-> D2 source to reproduce this is here: [here](https://github.com/terrastruct/d2-docs/blob/master/static/bespoke-d2/animated.d2), rendered with [these parameters](https://github.com/terrastruct/d2-docs/blob/master/ci/render.sh#L12). +> D2 source to reproduce this is here: [here](https://github.com/d2lang/d2-docs/blob/master/static/bespoke-d2/animated.d2), rendered with [these parameters](https://github.com/d2lang/d2-docs/blob/master/ci/render.sh#L12). Brief factsheet: @@ -52,11 +52,11 @@ Or a journey to build up to something. D2 is not yet 1.0. Of the many things planned in the near term, better ergonomics for creating these are a priority. The source code for all of these diagrams can be found -[here](https://github.com/terrastruct/d2-docs/tree/master/static/bespoke-d2). Some of +[here](https://github.com/d2lang/d2-docs/tree/master/static/bespoke-d2). Some of these are currently verbose and repetitive. We've released early to get feedback from the community, but in-progress things like globs (being able to target objects with `*`) and classes will make creating these animations much easier than they currently are. `--animate-interval` is available to use in D2 0.3.0 ([install -here](https://github.com/terrastruct/d2#install)), hope you can check it out and let us +here](https://github.com/d2lang/d2#install)), hope you can check it out and let us know what you think! diff --git a/blog/ascii.md b/blog/ascii.md index ef63233..311ba9b 100644 --- a/blog/ascii.md +++ b/blog/ascii.md @@ -17,7 +17,7 @@ d2 in.d2 out.txt -Here is an example of their rendering from the [D2 Vim extension](https://github.com/terrastruct/d2-vim). The user opens a `.d2` file and opens a preview window, which updates upon every save. +Here is an example of their rendering from the [D2 Vim extension](https://github.com/d2lang/d2-vim). The user opens a `.d2` file and opens a preview window, which updates upon every save. ![D2 Vim preview](/blog/ascii/preview.gif) @@ -44,7 +44,7 @@ the flag `--ascii-mode=standard`. Note that the ASCII renderer should be considered in alpha stage. There will be many corner cases, areas of improvements, and outright bugs. If you enjoy using it, we'd appreciate you taking the time to file any issues you run into: -[https://github.com/terrastruct/d2/issues](https://github.com/terrastruct/d2/issues). +[https://github.com/d2lang/d2/issues](https://github.com/d2lang/d2/issues). ::: The ASCII renderer is a downscale of the layout determined by the ELK layout engine with diff --git a/blog/dark_mode.md b/blog/dark_mode.md index e7569f7..5a89d14 100644 --- a/blog/dark_mode.md +++ b/blog/dark_mode.md @@ -4,7 +4,7 @@ title: Dark-mode responsive diagrams description: How diagrams in D2 are responsive to dark mode slug: dark-mode tags: [dark mode, show-and-tell] -image: https://raw.githubusercontent.com/terrastruct/d2-docs/master/static/img/blog/dark_mode.png +image: https://raw.githubusercontent.com/d2lang/d2-docs/master/static/img/blog/dark_mode.png hide_table_of_contents: false --- import WebPImage from '@site/src/components/WebPImage'; diff --git a/blog/powerpoint.md b/blog/powerpoint.md index f81eb70..988ce62 100644 --- a/blog/powerpoint.md +++ b/blog/powerpoint.md @@ -4,7 +4,7 @@ title: Text to PowerPoint description: Creating PowerPoint presentations from text with diagrams slug: powerpoint tags: [powerpoint, show-and-tell] -image: https://raw.githubusercontent.com/terrastruct/d2-docs/master/static/img/screenshots/wcc_pptx.png +image: https://raw.githubusercontent.com/d2lang/d2-docs/master/static/img/screenshots/wcc_pptx.png hide_table_of_contents: false --- import CodeBlock from '@theme/CodeBlock'; @@ -16,7 +16,7 @@ create full PowerPoint presentations with just text. It's not D2's primary function, but rather a natural byproduct of a powerful language. D2 built features for grid diagrams and animations, and users built [pixel -art](https://github.com/terrastruct/d2/issues/1218#issuecomment-1512628007). And now, with +art](https://github.com/d2lang/d2/issues/1218#issuecomment-1512628007). And now, with Markdown and Powerpoint, D2 is the easiest way to programmatically create PowerPoint presentations. @@ -52,7 +52,7 @@ Be sure to go into Present mode to click on objects and navigate around. - Download: [wcc.pptx](pathname:///img/generated/wcc.pptx) - Google Slides: [https://docs.google.com/presentation/d/18rRh4izu3k_43On8PXtVYdqRxmoQJd4y/view](https://docs.google.com/presentation/d/18rRh4izu3k_43On8PXtVYdqRxmoQJd4y/view) -The source code for this is a bit longer, and can be found [here](https://github.com/terrastruct/d2/blob/master/docs/examples/wcc/wcc.d2). +The source code for this is a bit longer, and can be found [here](https://github.com/d2lang/d2/blob/master/docs/examples/wcc/wcc.d2). ## Limitations diff --git a/blog/sketch.md b/blog/sketch.md index cdabdbe..361c0f8 100644 --- a/blog/sketch.md +++ b/blog/sketch.md @@ -4,7 +4,7 @@ title: Hand-drawn diagram aesthetic description: How you can make diagrams look hand-drawn in D2 slug: hand-drawn-diagrams tags: [hand-drawn, show-and-tell] -image: https://raw.githubusercontent.com/terrastruct/d2-docs/master/static/img/blog/sketch.png +image: https://raw.githubusercontent.com/d2lang/d2-docs/master/static/img/blog/sketch.png hide_table_of_contents: false --- import CodeBlock from '@theme/CodeBlock'; diff --git a/docs/examples/overview.md b/docs/examples/overview.md index 87cfefc..c8e831e 100644 --- a/docs/examples/overview.md +++ b/docs/examples/overview.md @@ -26,4 +26,4 @@ and more. Some of these examples originally were split into multiple files, and combined for a simplified gallery. We welcome contributions. These are all open-source; simply submit a PR -[here](https://github.com/terrastruct/d2-docs/tree/master/ci/examples). +[here](https://github.com/d2lang/d2-docs/tree/master/ci/examples). diff --git a/docs/releases/0.7.1.md b/docs/releases/0.7.1.md index 06468e1..2a6c2a9 100644 --- a/docs/releases/0.7.1.md +++ b/docs/releases/0.7.1.md @@ -1,25 +1,25 @@ #### Features ๐Ÿš€ -- ASCII renders. Output `txt` for d2 to render diagrams as ASCII art [#2572](https://github.com/terrastruct/d2/pull/2572) -- `cross` arrowhead shape is available [#2190](https://github.com/terrastruct/d2/pull/2190) -- `style.underline` support for class fields and methods [#2544](https://github.com/terrastruct/d2/pull/2544) -- markdown, latex, and code can be used as edge labels [#2545](https://github.com/terrastruct/d2/pull/2545) -- border-x label positioning functionality [#2549](https://github.com/terrastruct/d2/pull/2549) -- tooltips with `near` set always show even without hover [#2564](https://github.com/terrastruct/d2/pull/2564) -- CLI supports customizing monospace fonts with `--font-mono`, `--font-mono-bold`, `--font-mono-italic`, and `--font-mono-semibold` flags [#2590](https://github.com/terrastruct/d2/pull/2590) +- ASCII renders. Output `txt` for d2 to render diagrams as ASCII art [#2572](https://github.com/d2lang/d2/pull/2572) +- `cross` arrowhead shape is available [#2190](https://github.com/d2lang/d2/pull/2190) +- `style.underline` support for class fields and methods [#2544](https://github.com/d2lang/d2/pull/2544) +- markdown, latex, and code can be used as edge labels [#2545](https://github.com/d2lang/d2/pull/2545) +- border-x label positioning functionality [#2549](https://github.com/d2lang/d2/pull/2549) +- tooltips with `near` set always show even without hover [#2564](https://github.com/d2lang/d2/pull/2564) +- CLI supports customizing monospace fonts with `--font-mono`, `--font-mono-bold`, `--font-mono-italic`, and `--font-mono-semibold` flags [#2590](https://github.com/d2lang/d2/pull/2590) #### Improvements ๐Ÿงน -- labels on scenario/step boards can be set with primary value (like layers) [#2579](https://github.com/terrastruct/d2/pull/2579) -- autoformatter preserves order of boards [#2580](https://github.com/terrastruct/d2/pull/2580) -- rename "Legend" with a title/label of your choosing (especially useful for non-English diagrams) [#2582](https://github.com/terrastruct/d2/pull/2582) -- sketch mode fonts will use custom fonts if provided [#2582](https://github.com/terrastruct/d2/pull/2591) +- labels on scenario/step boards can be set with primary value (like layers) [#2579](https://github.com/d2lang/d2/pull/2579) +- autoformatter preserves order of boards [#2580](https://github.com/d2lang/d2/pull/2580) +- rename "Legend" with a title/label of your choosing (especially useful for non-English diagrams) [#2582](https://github.com/d2lang/d2/pull/2582) +- sketch mode fonts will use custom fonts if provided [#2582](https://github.com/d2lang/d2/pull/2591) #### Bugfixes โ›‘๏ธ -- actors in sequence diagrams with labels and icons together no longer overlap, position keywords now work too [#2548](https://github.com/terrastruct/d2/pull/2548) -- fix double glob behavior in scenarios (wasn't propagating correctly) [#2557](https://github.com/terrastruct/d2/pull/2557) -- fix diagram bounding box not accounting for legend in some cases [#2584](https://github.com/terrastruct/d2/pull/2584) +- actors in sequence diagrams with labels and icons together no longer overlap, position keywords now work too [#2548](https://github.com/d2lang/d2/pull/2548) +- fix double glob behavior in scenarios (wasn't propagating correctly) [#2557](https://github.com/d2lang/d2/pull/2557) +- fix diagram bounding box not accounting for legend in some cases [#2584](https://github.com/d2lang/d2/pull/2584) #### Breaking Changes @@ -27,4 +27,4 @@ --- -For the latest d2.js changes, see separate [changelog](https://github.com/terrastruct/d2/blob/master/d2js/js/CHANGELOG.md). +For the latest d2.js changes, see separate [changelog](https://github.com/d2lang/d2/blob/master/d2js/js/CHANGELOG.md). diff --git a/docs/releases/intro.md b/docs/releases/intro.md index 582085e..afc70ab 100644 --- a/docs/releases/intro.md +++ b/docs/releases/intro.md @@ -4,7 +4,7 @@ Version: [0.7.1](/releases/0.7.1) (released August 19, 2025) -Downloads: [Assets](https://github.com/terrastruct/d2/releases/tag/v0.7.1) +Downloads: [Assets](https://github.com/d2lang/d2/releases/tag/v0.7.1) ::: diff --git a/docs/tour/api.md b/docs/tour/api.md index 30670f2..47e92d2 100644 --- a/docs/tour/api.md +++ b/docs/tour/api.md @@ -7,7 +7,7 @@ pagination_next: tour/man D2 has an API built on top of its AST for **programmatically creating diagrams in Go**. This package is `d2/d2oracle`. -This API is exercised heavily by Terrastruct to implement [bidirectional edits](https://youtu.be/EhxVVkxv2Ns?t=150). We have [comprehensive test coverage](https://github.com/terrastruct/d2/blob/master/d2oracle/edit_test.go) of these functions. If there's any confusion from the docs, there's almost certainly a test that answers your question. (We're also happy to help, just file a GitHub issue!) +This API is exercised heavily by Terrastruct to implement [bidirectional edits](https://youtu.be/EhxVVkxv2Ns?t=150). We have [comprehensive test coverage](https://github.com/d2lang/d2/blob/master/d2oracle/edit_test.go) of these functions. If there's any confusion from the docs, there's almost certainly a test that answers your question. (We're also happy to help, just file a GitHub issue!) For a blog post detailing an example usage (building a SQL table diagram), see [https://terrastruct.com/blog/post/generate-diagrams-programmatically/](https://terrastruct.com/blog/post/generate-diagrams-programmatically/). diff --git a/docs/tour/community.md b/docs/tour/community.md index 10493d1..8ed99cc 100644 --- a/docs/tour/community.md +++ b/docs/tour/community.md @@ -4,7 +4,7 @@ href="https://discord.gg/NF6X8K4eDq">https://discord.gg/NF6X8K4eDq. If you have a question or need help, you'll find responses quickest through this channel. - Have a proposal, running into a bug, or anything else you want to discuss with the team - and community? D2 uses [GitHub Issues](https://github.com/terrastruct/d2) to track all - TODOs, and [GitHub Discussions](https://github.com/terrastruct/d2/discussions) for + and community? D2 uses [GitHub Issues](https://github.com/d2lang/d2) to track all + TODOs, and [GitHub Discussions](https://github.com/d2lang/d2/discussions) for feature requests and ideas. - If you have a private enquiry, please email us: hi@d2lang.com. diff --git a/docs/tour/editor-support.md b/docs/tour/editor-support.md index 6dfaa80..1d61177 100644 --- a/docs/tour/editor-support.md +++ b/docs/tour/editor-support.md @@ -5,8 +5,8 @@ We have first class language support for both Vim and VS Code. Automatic indentation and syntax highlighting are fully supported and make working with the D2 language far more pleasant. -- https://github.com/terrastruct/d2-vim -- https://github.com/terrastruct/d2-vscode +- https://github.com/d2lang/d2-vim +- https://github.com/d2lang/d2-vscode The syntax highlighting will even catch basic errors for you if your color theme highlights illegal syntax. diff --git a/docs/tour/exports.md b/docs/tour/exports.md index 9970461..6d6e7ce 100644 --- a/docs/tour/exports.md +++ b/docs/tour/exports.md @@ -62,7 +62,7 @@ npm install -g @playwright npx playwright install --with-deps chromium ``` -See [#744](https://github.com/terrastruct/d2/issues/744#issuecomment-1446641870) for more. +See [#744](https://github.com/d2lang/d2/issues/744#issuecomment-1446641870) for more. ::: ## PDF diff --git a/docs/tour/faq.md b/docs/tour/faq.md index 4dc138a..a510446 100644 --- a/docs/tour/faq.md +++ b/docs/tour/faq.md @@ -56,12 +56,12 @@ instructions and examples so you can include it in your browser projects. ...e.g., an item in the middle of a venn diagram. Not currently and not in the near future. See -[discussion](https://github.com/terrastruct/d2/discussions/328) for more. +[discussion](https://github.com/d2lang/d2/discussions/328) for more. ### Can I specify ports? Not currently, but in the near future. See -[discussion](https://github.com/terrastruct/d2/discussions/605) for more. +[discussion](https://github.com/d2lang/d2/discussions/605) for more. ## Exports @@ -107,4 +107,3 @@ tldr; when it's treated as an image, the interactivity is lost. - diff --git a/docs/tour/future.md b/docs/tour/future.md index 0dd5a5d..b514ea8 100644 --- a/docs/tour/future.md +++ b/docs/tour/future.md @@ -3,7 +3,7 @@ import WebPImage from '@site/src/components/WebPImage'; :::info TLDR -[https://github.com/terrastruct/d2/issues?q=is%3Aopen+is%3Aissue+label%3Afeature](https://github.com/terrastruct/d2/issues?q=is%3Aopen+is%3Aissue+label%3Afeature) +[https://github.com/d2lang/d2/issues?q=is%3Aopen+is%3Aissue+label%3Afeature](https://github.com/d2lang/d2/issues?q=is%3Aopen+is%3Aissue+label%3Afeature) ::: D2's long-term goal is to significantly reduce the amount of time and effort it takes to @@ -152,7 +152,7 @@ unforeseen ones for the infinite workflows out there. D2's plugin system further makes the language extensible. These allow you to add "hooks" to stages of D2 compilation. For example, while not core to D2, a hypothetical set of plugins can add a styled border, add your signature/credits, make everything [look -hand-drawn](https://github.com/terrastruct/d2/pull/91), then increase contrast for +hand-drawn](https://github.com/d2lang/d2/pull/91), then increase contrast for accessibility. ### How success is measured @@ -185,7 +185,7 @@ unplanned usage. ## Your feedback If you have any suggestions or feedback, we'd love to hear from you! Please open an issue -on [Github](https://github.com/terrastruct/d2). +on [Github](https://github.com/d2lang/d2). ## Notes @@ -203,7 +203,7 @@ widely released and their live editor still won't allow it. visit [https://terrastruct.com/tala](https://terrastruct.com/tala). [4] If you still miss the hand-drawn aesthetic, D2 has just the thing: -https://github.com/terrastruct/d2/pull/492 +https://github.com/d2lang/d2/pull/492 [5] Actually, gopls single-handedly brings my machine back to 2005 speeds with how much CPU it consumes. Not the fault of vim-go though! diff --git a/docs/tour/grid-diagrams.md b/docs/tour/grid-diagrams.md index 1cbca9b..695c48c 100644 --- a/docs/tour/grid-diagrams.md +++ b/docs/tour/grid-diagrams.md @@ -108,7 +108,7 @@ It would do the opposite. :::info These animations are also pure D2, so you can animate grid diagrams being built-up. Use the `animate-interval` flag with this -[code](https://github.com/terrastruct/d2-docs/blob/f5c762223ce192338d9d7865df3ca8533d683cdc/static/bespoke-d2/grid-row-dominant.d2#L1). +[code](https://github.com/d2lang/d2-docs/blob/f5c762223ce192338d9d7865df3ca8533d683cdc/static/bespoke-d2/grid-row-dominant.d2#L1). More on this later, in the [composition](/tour/composition/) section. ::: @@ -131,7 +131,7 @@ Setting `grid-gap` is equivalent to setting both `vertical-gap` and `horizontal-
-> [D2 source](https://github.com/terrastruct/d2/blob/master/docs/examples/japan-grid/japan.d2) +> [D2 source](https://github.com/d2lang/d2/blob/master/docs/examples/japan-grid/japan.d2) #### Or a table of data @@ -160,7 +160,7 @@ Connections for grids themselves work normally as you'd expect.
-> Source code [here](https://github.com/terrastruct/d2-docs/blob/eda2d8739ce21c656e7608be48cb9067df36eb53/static/d2/grid-connected.d2). +> Source code [here](https://github.com/d2lang/d2-docs/blob/eda2d8739ce21c656e7608be48cb9067df36eb53/static/d2/grid-connected.d2). ### Connections between grid cells @@ -171,11 +171,11 @@ i.e., no path-finding.
-> Source code [here](https://github.com/terrastruct/d2/blob/master/e2etests/testdata/files/simple_grid_edges.d2). +> Source code [here](https://github.com/d2lang/d2/blob/master/e2etests/testdata/files/simple_grid_edges.d2).
-> Source code [here](https://github.com/terrastruct/d2/blob/master/docs/examples/vector-grid/vector-grid.d2). +> Source code [here](https://github.com/d2lang/d2/blob/master/docs/examples/vector-grid/vector-grid.d2). ## Nesting diff --git a/docs/tour/help.md b/docs/tour/help.md index 7eaae2c..14126fd 100644 --- a/docs/tour/help.md +++ b/docs/tour/help.md @@ -1,7 +1,7 @@ # Contributing Contributions are welcome! Please see the full doc on contributing on D2's Github: -[https://github.com/terrastruct/d2/blob/master/docs/CONTRIBUTING.md](https://github.com/terrastruct/d2/blob/master/docs/CONTRIBUTING.md). +[https://github.com/d2lang/d2/blob/master/docs/CONTRIBUTING.md](https://github.com/d2lang/d2/blob/master/docs/CONTRIBUTING.md). ## Help wanted @@ -12,11 +12,11 @@ Below is a list of features that could use your help. If you're interested in ta initiative, feel free to just start, or you can comment on a GitHub issue, discuss in Discord, or email us (alex at terrastruct). -- [ownCloud Infinite Scale Extension](https://github.com/terrastruct/d2/issues/1422) -- [IntelliJ plugin](https://github.com/terrastruct/d2/issues/747) -- [Chocolatey package](https://github.com/terrastruct/d2/issues/154) -- [Docusaurus plugin](https://github.com/terrastruct/d2/issues/1448) -- [Visual Studio Extension](https://github.com/terrastruct/d2/discussions/237) -- [PrismJS highlighter](https://github.com/terrastruct/d2-docs/issues/185) +- [ownCloud Infinite Scale Extension](https://github.com/d2lang/d2/issues/1422) +- [IntelliJ plugin](https://github.com/d2lang/d2/issues/747) +- [Chocolatey package](https://github.com/d2lang/d2/issues/154) +- [Docusaurus plugin](https://github.com/d2lang/d2/issues/1448) +- [Visual Studio Extension](https://github.com/d2lang/d2/discussions/237) +- [PrismJS highlighter](https://github.com/d2lang/d2-docs/issues/185) Want to add something to this wishlist? Just make an Issue on D2's GitHub! diff --git a/docs/tour/install.md b/docs/tour/install.md index f27eca0..46cc7f4 100644 --- a/docs/tour/install.md +++ b/docs/tour/install.md @@ -5,7 +5,7 @@ pagination_next: tour/hello-world :::tip There are more detailed install instructions for Mac, Windows, and Linux, using a variety of -methods, [here](https://github.com/terrastruct/d2/blob/master/docs/INSTALL.md). This page +methods, [here](https://github.com/d2lang/d2/blob/master/docs/INSTALL.md). This page is an abridged version. ::: @@ -44,7 +44,7 @@ go install oss.terrastruct.com/d2@latest :::info You can also download precompiled binaries specific to your OS on the Github releases page: -[https://github.com/terrastruct/d2/releases](https://github.com/terrastruct/d2/releases). +[https://github.com/d2lang/d2/releases](https://github.com/d2lang/d2/releases). ::: # Try it out diff --git a/docs/tour/intro.md b/docs/tour/intro.md index 4a5f5b5..ec704a2 100644 --- a/docs/tour/intro.md +++ b/docs/tour/intro.md @@ -36,10 +36,10 @@ href="/tour/hello-world/">Getting Started takes :::info The source code for D2 is hosted here: -[https://github.com/terrastruct/d2](https://github.com/terrastruct/d2). +[https://github.com/d2lang/d2](https://github.com/d2lang/d2). The source code for these docs are here: -[https://github.com/terrastruct/d2-docs](https://github.com/terrastruct/d2-docs). +[https://github.com/d2lang/d2-docs](https://github.com/d2lang/d2-docs). ::: :::info diff --git a/docs/tour/man.md b/docs/tour/man.md index c7dd5bc..1bbf18b 100644 --- a/docs/tour/man.md +++ b/docs/tour/man.md @@ -60,7 +60,7 @@ OPTIONS Be aware that explicit styles set in D2 code will still be applied and this may produce unexpected results. We plan on resolving this by making style maps in D2 light/dark mode - specific. See https://github.com/terrastruct/d2/issues/831. + specific. See https://github.com/d2lang/d2/issues/831. -s, --sketch false Renders the diagram to look like it was sketched by hand. diff --git a/docs/tour/obsidian.md b/docs/tour/obsidian.md index 544751a..f80521e 100644 --- a/docs/tour/obsidian.md +++ b/docs/tour/obsidian.md @@ -12,4 +12,4 @@ Currently it only supports rendering of D2 diagrams. **Github:** -[https://github.com/terrastruct/d2-obsidian](https://github.com/terrastruct/d2-obsidian) +[https://github.com/d2lang/d2-obsidian](https://github.com/d2lang/d2-obsidian) diff --git a/docs/tour/vim.md b/docs/tour/vim.md index f829f02..265523b 100644 --- a/docs/tour/vim.md +++ b/docs/tour/vim.md @@ -1,10 +1,10 @@ # Vim plugin D2 has an official, creator-maintained plugin for Vim. You can use any plugin manager to -include `terrastruct/d2-vim`. For example: +include `d2lang/d2-vim`. For example: ``` -Plug 'terrastruct/d2-vim' +Plug 'd2lang/d2-vim' ``` Automatic indentation and syntax highlighting are fully supported and make working with @@ -14,4 +14,4 @@ The syntax highlighting will even catch basic errors for you if your color theme highlights illegal syntax. **Github:** -[https://github.com/terrastruct/d2-vim](https://github.com/terrastruct/d2-vim) +[https://github.com/d2lang/d2-vim](https://github.com/d2lang/d2-vim) diff --git a/docs/tour/vscode.md b/docs/tour/vscode.md index 667a9c0..d887315 100644 --- a/docs/tour/vscode.md +++ b/docs/tour/vscode.md @@ -13,5 +13,4 @@ The syntax highlighting will even catch basic errors for you if your color theme highlights illegal syntax. **Github:** -[https://github.com/terrastruct/d2-vscode](https://github.com/terrastruct/d2-vscode) - +[https://github.com/d2lang/d2-vscode](https://github.com/d2lang/d2-vscode) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 80442e0..1384515 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -41,10 +41,7 @@ const config: Config = { name: "Terrastruct", url: "https://terrastruct.com", }, - sameAs: [ - "https://github.com/terrastruct/d2", - "https://discord.com/invite/pbUXgvmTpU", - ], + sameAs: ["https://github.com/d2lang/d2", "https://discord.com/invite/pbUXgvmTpU"], }), }, { @@ -189,7 +186,7 @@ const config: Config = { icon: { alt: "github logo", src: `/logos/github.svg`, - href: "https://github.com/terrastruct/d2", + href: "https://github.com/d2lang/d2", target: "_blank", }, }, diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/tour/community.md b/i18n/ko/docusaurus-plugin-content-docs/current/tour/community.md index 9f6001a..bc5ff7b 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/tour/community.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/tour/community.md @@ -1,5 +1,5 @@ # ์ปค๋ฎค๋‹ˆํ‹ฐ - ์งˆ๋ฌธ์ด๋‚˜ ๋„์›€์ด ํ•„์š”ํ•œ ๊ฒฝ์šฐ [Discord ์ฑ„๋„](https://discord.gg/NF6X8K4eDq)์„ ํ†ตํ•ด ๋น ๋ฅด๊ฒŒ ๋‹ต๋ณ€์„ ๋ฐ›์œผ์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. -- ์ œ์•ˆ, ๋ฒ„๊ทธ ๋ฐœ์ƒ ๋˜๋Š” ํŒ€ ๋ฐ ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ๋…ผ์˜ํ•˜๊ณ  ์‹ถ์€ ์‚ฌํ•ญ์ด ์žˆ์œผ์‹ ๊ฐ€์š”? D2๋Š” [GitHub Issues](https://github.com/terrastruct/d2/issues)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ด์Šˆ๋“ค์„ ๊ด€๋ฆฌํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, [GitHub Discussions](https://github.com/terrastruct/d2/discussions)์œผ๋กœ ๊ธฐ๋Šฅ ์š”์ฒญ ๋ฐ ์•„์ด๋””์–ด๋ฅผ ํ™•์ธํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. +- ์ œ์•ˆ, ๋ฒ„๊ทธ ๋ฐœ์ƒ ๋˜๋Š” ํŒ€ ๋ฐ ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ๋…ผ์˜ํ•˜๊ณ  ์‹ถ์€ ์‚ฌํ•ญ์ด ์žˆ์œผ์‹ ๊ฐ€์š”? D2๋Š” [GitHub Issues](https://github.com/d2lang/d2/issues)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ด์Šˆ๋“ค์„ ๊ด€๋ฆฌํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, [GitHub Discussions](https://github.com/d2lang/d2/discussions)์œผ๋กœ ๊ธฐ๋Šฅ ์š”์ฒญ ๋ฐ ์•„์ด๋””์–ด๋ฅผ ํ™•์ธํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. - ๊ฐœ์ธ์ ์ธ ๋ฌธ์˜์‚ฌํ•ญ์ด ์žˆ์œผ์‹  ๊ฒฝ์šฐ hi@d2lang.com์œผ๋กœ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด์ฃผ์„ธ์š”. diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/tour/future.md b/i18n/ko/docusaurus-plugin-content-docs/current/tour/future.md index 7d8ccbd..5974875 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/tour/future.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/tour/future.md @@ -3,7 +3,7 @@ import WebPImage from '@site/src/components/WebPImage'; :::info ๊ฐ„๋žต ์š”์•ฝ -D2 ํ”„๋กœ์ ํŠธ์˜ ํ˜„์žฌ ์ž‘์—…๋“ค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ [์—ฌ๊ธฐ](https://github.com/terrastruct/d2/issues?q=is%3Aopen+is%3Aissue+label%3Afeature)๋ฅผ ํ™•์ธํ•˜์„ธ์š”. +D2 ํ”„๋กœ์ ํŠธ์˜ ํ˜„์žฌ ์ž‘์—…๋“ค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ [์—ฌ๊ธฐ](https://github.com/d2lang/d2/issues?q=is%3Aopen+is%3Aissue+label%3Afeature)๋ฅผ ํ™•์ธํ•˜์„ธ์š”. ::: D2 ํ”„๋กœ์ ํŠธ์˜ ์žฅ๊ธฐ์ ์ธ ๋ชฉํ‘œ๋Š” ์‹ค๋ฌด์—์„œ ์“ฐ์ด๋Š” ๋†’์€ ์ˆ˜์ค€์˜ ๋‹ค์ด์–ด๊ทธ๋žจ์„ ๋งŒ๋“ค๊ณ  ์œ ์ง€ํ•˜๋Š” ๋ฐ ์†Œ์š”๋˜๋Š” ์‹œ๊ฐ„๊ณผ ๋…ธ๋ ฅ์„ ํฌ๊ฒŒ ์ค„์ด๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. @@ -130,7 +130,7 @@ D2์—๋Š” ๊ณต์‹ Vim ๋ฐ VSCode ํ™•์žฅ์ด ์žˆ์Šต๋‹ˆ๋‹ค. D2์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ ์‹œ์Šคํ…œ์€ ์ด ์–ธ์–ด๋ฅผ ๋”์šฑ ํ™•์žฅ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž๋Š” D2 ์ปดํŒŒ์ผ ๊ณผ์ •์˜ ์—ฌ๋Ÿฌ ๋‹จ๊ณ„์— "ํ›…(hooks)"์„ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. -์˜ˆ๋ฅผ ๋“ค์–ด, D2์˜ ํ•ต์‹ฌ ๊ธฐ๋Šฅ์€ ์•„๋‹ˆ์ง€๋งŒ, ๊ฐ€์ƒ์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์Šคํƒ€์ผ์ด ์žˆ๋Š” ํ…Œ๋‘๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ์‚ฌ์šฉ์ž์˜ ์„œ๋ช…์ด๋‚˜ ํฌ๋ ˆ๋”ง์„ ์ถ”๊ฐ€ํ•˜๋ฉฐ, ๋ชจ๋“  ๊ฒƒ์„ [์†์œผ๋กœ ๊ทธ๋ฆฐ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด๊ฒŒ](https://github.com/terrastruct/d2/pull/91)[4] ํ•  ์ˆ˜ ์žˆ๊ณ , ์ ‘๊ทผ์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•ด ๋Œ€๋น„๋ฅผ ์ฆ๊ฐ€์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. +์˜ˆ๋ฅผ ๋“ค์–ด, D2์˜ ํ•ต์‹ฌ ๊ธฐ๋Šฅ์€ ์•„๋‹ˆ์ง€๋งŒ, ๊ฐ€์ƒ์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ธํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์Šคํƒ€์ผ์ด ์žˆ๋Š” ํ…Œ๋‘๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ์‚ฌ์šฉ์ž์˜ ์„œ๋ช…์ด๋‚˜ ํฌ๋ ˆ๋”ง์„ ์ถ”๊ฐ€ํ•˜๋ฉฐ, ๋ชจ๋“  ๊ฒƒ์„ [์†์œผ๋กœ ๊ทธ๋ฆฐ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด๊ฒŒ](https://github.com/d2lang/d2/pull/91)[4] ํ•  ์ˆ˜ ์žˆ๊ณ , ์ ‘๊ทผ์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•ด ๋Œ€๋น„๋ฅผ ์ฆ๊ฐ€์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ### ํ‰๊ฐ€ ๋ฐฉ๋ฒ• @@ -167,7 +167,7 @@ D2์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ์ด ๊ทธ๋ ‡๊ฒŒ ๋˜์–ด์„œ๋Š” ์•ˆ๋˜๊ฒ ์ฃ . ## ์—ฌ๋Ÿฌ๋ถ„์˜ ํ”ผ๋“œ๋ฐฑ ์ œ์•ˆ ์‚ฌํ•ญ์ด๋‚˜ ํ”ผ๋“œ๋ฐฑ์ด ์žˆ์œผ์‹œ๋ฉด ์–ธ์ œ๋“ ์ง€ ์•Œ๋ ค์ฃผ์„ธ์š”! -[Github](https://github.com/terrastruct/d2)์—์„œ ์ด์Šˆ๋ฅผ ์—ด์–ด์ฃผ์„ธ์š”. +[Github](https://github.com/d2lang/d2)์—์„œ ์ด์Šˆ๋ฅผ ์—ด์–ด์ฃผ์„ธ์š”. ## ์ฃผ์„ @@ -195,7 +195,7 @@ MermaidJS๋Š” ์ปจํ…Œ์ด๋„ˆ์— ๋Œ€ํ•œ ์ง€์›๋„ ๊ตฌํ˜„ํ•œ ๊ฒƒ์œผ๋กœ ๋ณด์ด์ง€๋งŒ [4] -์ˆ˜์ž‘์—…์˜ โ€‹โ€‹๋‚ญ๋งŒ์„ ์›ํ•œ๋‹ค๋ฉด D2์—์„œ ๋„์™€๋“œ๋ฆด ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [๋งํฌ](https://github.com/terrastruct/d2/pull/492)๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”. +์ˆ˜์ž‘์—…์˜ โ€‹โ€‹๋‚ญ๋งŒ์„ ์›ํ•œ๋‹ค๋ฉด D2์—์„œ ๋„์™€๋“œ๋ฆด ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [๋งํฌ](https://github.com/d2lang/d2/pull/492)๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”. [5] diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/tour/grid-diagrams.md b/i18n/ko/docusaurus-plugin-content-docs/current/tour/grid-diagrams.md index e631288..348ef42 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/tour/grid-diagrams.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/tour/grid-diagrams.md @@ -121,7 +121,7 @@ grid-rows: 4 :::info ์œ„์˜ ์• ๋‹ˆ๋ฉ”์ด์…˜์€ D2๋งŒ์œผ๋กœ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ฆ‰, ๊ทธ๋ฆฌ๋“œ ๋‹ค์ด์–ด๊ทธ๋žจ์˜ ๊ตฌ์„ฑ ๊ณผ์ •์„ ์• ๋‹ˆ๋ฉ”์ด์…˜ํ™” ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. -์ด [์ฝ”๋“œ](https://github.com/terrastruct/d2-docs/blob/f5c762223ce192338d9d7865df3ca8533d683cdc/static/bespoke-d2/grid-row-dominant.d2)์™€ ํ•จ๊ป˜ `animate-interval` ํ”Œ๋ž˜๊ทธ๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”. +์ด [์ฝ”๋“œ](https://github.com/d2lang/d2-docs/blob/f5c762223ce192338d9d7865df3ca8533d683cdc/static/bespoke-d2/grid-row-dominant.d2)์™€ ํ•จ๊ป˜ `animate-interval` ํ”Œ๋ž˜๊ทธ๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”. ์ด์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๋’ค์— ๋‚˜์˜ค๋Š” [composition](/tour/composition/) ์„น์…˜์—์„œ ํ™•์ธํ•˜์„ธ์š”. ::: @@ -143,7 +143,7 @@ grid-rows: 4
-> [์†Œ์Šค ์ฝ”๋“œ](https://github.com/terrastruct/d2/blob/master/docs/examples/japan-grid/japan.d2) +> [์†Œ์Šค ์ฝ”๋“œ](https://github.com/d2lang/d2/blob/master/docs/examples/japan-grid/japan.d2) ### ๋˜๋Š” ํ…Œ์ด๋ธ”ํ˜• ๋ฐ์ดํ„ฐ์—๋„ ์ €์žฅ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. @@ -189,7 +189,7 @@ D2์˜ ์ผ๋ฐ˜ ๊ฐ์ฒด์ฒ˜๋Ÿผ ๊ทธ๋ฆฌ๋“œ์™€ ๋‹ค๋ฅธ ๊ฐ์ฒด๋ฅผ ์—ฐ๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ
-> [์†Œ์Šค ์ฝ”๋“œ](https://github.com/terrastruct/d2-docs/blob/eda2d8739ce21c656e7608be48cb9067df36eb53/static/d2/grid-connected.d2) +> [์†Œ์Šค ์ฝ”๋“œ](https://github.com/d2lang/d2-docs/blob/eda2d8739ce21c656e7608be48cb9067df36eb53/static/d2/grid-connected.d2) ## ์ค‘์ฒฉ diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/tour/install.md b/i18n/ko/docusaurus-plugin-content-docs/current/tour/install.md index 58acde7..64f7716 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/tour/install.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/tour/install.md @@ -5,7 +5,7 @@ pagination_next: tour/hello-world # ์„ค์น˜ํ•˜๊ธฐ :::tip -[์—ฌ๊ธฐ](https://github.com/terrastruct/d2/blob/master/docs/INSTALL.md)์— Mac, Windows ๋ฐ Linux์—์„œ์˜ ๋‹ค์–‘ํ•˜๊ณ  ์ž์„ธํ•œ ์„ค์น˜ ์ง€์นจ์ด ์žˆ์Šต๋‹ˆ๋‹ค. +[์—ฌ๊ธฐ](https://github.com/d2lang/d2/blob/master/docs/INSTALL.md)์— Mac, Windows ๋ฐ Linux์—์„œ์˜ ๋‹ค์–‘ํ•˜๊ณ  ์ž์„ธํ•œ ์„ค์น˜ ์ง€์นจ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ํŽ˜์ด์ง€๋Š” ๊ทธ์— ๋Œ€ํ•œ ์š”์•ฝ ๋ฒ„์ „์ž…๋‹ˆ๋‹ค. ::: @@ -41,7 +41,7 @@ go install oss.terrastruct.com/d2@latest ``` :::info -[Github ๋ฆด๋ฆฌ์Šค ํŽ˜์ด์ง€](https://github.com/terrastruct/d2/releases)์—์„œ OS์— ๋งž๊ฒŒ ๋ฏธ๋ฆฌ ์ปดํŒŒ์ผ๋œ ๋ฐ”์ด๋„ˆ๋ฆฌ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. +[Github ๋ฆด๋ฆฌ์Šค ํŽ˜์ด์ง€](https://github.com/d2lang/d2/releases)์—์„œ OS์— ๋งž๊ฒŒ ๋ฏธ๋ฆฌ ์ปดํŒŒ์ผ๋œ ๋ฐ”์ด๋„ˆ๋ฆฌ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ::: # ์‚ฌ์šฉํ•ด๋ณด๊ธฐ diff --git a/i18n/ko/docusaurus-plugin-content-docs/current/tour/intro.md b/i18n/ko/docusaurus-plugin-content-docs/current/tour/intro.md index d5a3605..c710409 100644 --- a/i18n/ko/docusaurus-plugin-content-docs/current/tour/intro.md +++ b/i18n/ko/docusaurus-plugin-content-docs/current/tour/intro.md @@ -76,8 +76,8 @@ D2์˜ ์‚ฌ์šฉ๋ฒ•์„ ์•Œ์•„๋ณด๋Š” ์ด ๊ณผ์ •์€ ์•ฝ 5~10๋ถ„ ์•ˆ์— ๋๋‚ผ ์ˆ˜ ์žˆ :::info D2์˜ ์†Œ์Šค ์ฝ”๋“œ๋Š” ๋‹ค์Œ์—์„œ ํ˜ธ์ŠคํŒ…๋ฉ๋‹ˆ๋‹ค. -[https://github.com/terrastruct/d2](https://github.com/terrastruct/d2). +[https://github.com/d2lang/d2](https://github.com/d2lang/d2). ์ด ๋ฌธ์„œ์˜ ์†Œ์Šค ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. -[https://github.com/terrastruct/d2-docs](https://github.com/terrastruct/d2-docs). +[https://github.com/d2lang/d2-docs](https://github.com/d2lang/d2-docs). ::: diff --git a/src/components/Directory/MoreFeatures.jsx b/src/components/Directory/MoreFeatures.jsx index 22c6590..4f7b2a5 100644 --- a/src/components/Directory/MoreFeatures.jsx +++ b/src/components/Directory/MoreFeatures.jsx @@ -14,7 +14,7 @@ const moreFeatures = [ description: "MacOS, Linux, and Windows. D2 is included in many popular package managers like Homebrew and Winget.", icon: "os.svg", - href: "https://github.com/terrastruct/d2/releases", + href: "https://github.com/d2lang/d2/releases", }, { title: "VSCode and Vim",