From d143432580bbdf16766f5ea50ff790b6df28e0cd Mon Sep 17 00:00:00 2001 From: Noam Cattan <62568565+noamcattan@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:38:57 +0300 Subject: [PATCH] doc: replace diagram examples links (#3435) * cmd/internal: fix help message for "new" command * doc: replace example links --- cmd/internal/base/base.go | 2 +- doc/md/schema-edges.mdx | 40 +++++++++---------- .../2023-01-26-visualizing-with-entviz.md | 5 ++- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/cmd/internal/base/base.go b/cmd/internal/base/base.go index b0c1ef40f..08a37a72a 100644 --- a/cmd/internal/base/base.go +++ b/cmd/internal/base/base.go @@ -81,7 +81,7 @@ func NewCmd() *cobra.Command { var target, tmplPath string cmd := &cobra.Command{ Use: "new [flags] [schemas]", - Short: "new an environment with zero or more schemas", + Short: "initialize a new environment with zero or more schemas", Example: examples( "ent new Example", "ent new --target entv1/schema User Group", diff --git a/doc/md/schema-edges.mdx b/doc/md/schema-edges.mdx index e18da490c..af86c39b3 100644 --- a/doc/md/schema-edges.mdx +++ b/doc/md/schema-edges.mdx @@ -18,10 +18,10 @@ Edges are the relations (or associations) of entities. For example, user's pets, -[![erd-group-users](https://entgo.io/images/assets/erd/edges-quick-summary.png)](https://gh.atlasgo.cloud/explore/38be6c19) +[![erd-group-users](https://entgo.io/images/assets/erd/edges-quick-summary.png)](https://gh.atlasgo.cloud/explore/saved/60129542144)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -211,10 +211,10 @@ Let's go over a few examples that show how to define different relation types us -[![edges-o2o-two-types](https://entgo.io/images/assets/erd/edges-o2o-two-types.png)](https://gh.atlasgo.cloud/explore/b6264668) +[![edges-o2o-two-types](https://entgo.io/images/assets/erd/edges-o2o-two-types.png)](https://gh.atlasgo.cloud/explore/saved/60129542145)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -309,10 +309,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-linked-list](https://entgo.io/images/assets/erd/edges-o2o-same-type.png)](https://gh.atlasgo.cloud/explore/6645164b) +[![edges-linked-list](https://entgo.io/images/assets/erd/edges-o2o-same-type.png)](https://gh.atlasgo.cloud/explore/saved/60129542146)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -419,10 +419,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-o2o-bidirectional](https://entgo.io/images/assets/erd/edges-o2o-bidirectional.png)](https://gh.atlasgo.cloud/explore/e2e76d55) +[![edges-o2o-bidirectional](https://entgo.io/images/assets/erd/edges-o2o-bidirectional.png)](https://gh.atlasgo.cloud/explore/saved/60129542147)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -529,10 +529,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-o2m-two-types](https://entgo.io/images/assets/erd/edges-o2m-two-types.png)](https://gh.atlasgo.cloud/explore/8a360fce) +[![edges-o2m-two-types](https://entgo.io/images/assets/erd/edges-o2m-two-types.png)](https://gh.atlasgo.cloud/explore/saved/60129542148)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -654,10 +654,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-o2m-same-type](https://entgo.io/images/assets/erd/edges-o2m-same-type.png)](https://gh.atlasgo.cloud/explore/74c74ac7) +[![edges-o2m-same-type](https://entgo.io/images/assets/erd/edges-o2m-same-type.png)](https://gh.atlasgo.cloud/explore/saved/60129542149)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -799,10 +799,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-m2m-two-types](https://entgo.io/images/assets/erd/edges-m2m-two-types.png)](https://gh.atlasgo.cloud/explore/25b70c29) +[![edges-m2m-two-types](https://entgo.io/images/assets/erd/edges-m2m-two-types.png)](https://gh.atlasgo.cloud/explore/saved/60129542150)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -920,10 +920,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-m2m-same-type](https://entgo.io/images/assets/erd/edges-m2m-same-type.png)](https://gh.atlasgo.cloud/explore/8cb4fd4e) +[![edges-m2m-same-type](https://entgo.io/images/assets/erd/edges-m2m-same-type.png)](https://gh.atlasgo.cloud/explore/saved/60129542151)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -1043,10 +1043,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp -[![edges-m2m-bidirectional](https://entgo.io/images/assets/erd/edges-m2m-bidirectional.png)](https://gh.atlasgo.cloud/explore/74c5bd30) +[![edges-m2m-bidirectional](https://entgo.io/images/assets/erd/edges-m2m-bidirectional.png)](https://gh.atlasgo.cloud/explore/saved/60129542152)
- ERD was generated by Atlas + ERD was generated by Atlas
@@ -1228,10 +1228,10 @@ is automatically set on creation. -[![edges-schema](https://entgo.io/images/assets/erd/edges-schema.png)](https://gh.atlasgo.cloud/explore/90e2415f) +[![edges-schema](https://entgo.io/images/assets/erd/edges-schema.png)](https://gh.atlasgo.cloud/explore/saved/60129542153)
- ERD was generated by Atlas + ERD was generated by Atlas
diff --git a/doc/website/blog/2023-01-26-visualizing-with-entviz.md b/doc/website/blog/2023-01-26-visualizing-with-entviz.md index dcc34603f..5e3c5ccf7 100644 --- a/doc/website/blog/2023-01-26-visualizing-with-entviz.md +++ b/doc/website/blog/2023-01-26-visualizing-with-entviz.md @@ -1,3 +1,4 @@ + --- title: Quickly visualize your Ent schemas with entviz author: Rotem Tamir @@ -80,11 +81,11 @@ go run -mod=mod ariga.io/entviz ./path/to/ent/schema ``` The tool will analyze your Ent schema and create a visualization on the [Atlas Playground](https://gh.atlasgo.cloud) and -create a shareable, public [link](https://gh.atlasgo.cloud/explore/c3aa3f24) for you: +create a shareable, public [link](https://gh.atlasgo.cloud/explore/saved/60129542154) for you: ``` Here is a public link to your schema visualization: - https://gh.atlasgo.cloud/explore/c3aa3f24 + https://gh.atlasgo.cloud/explore/saved/60129542154 ``` In this link you will be able to see your schema visually as an ERD or textually as either a SQL