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,
-[](https://gh.atlasgo.cloud/explore/38be6c19)
+[](https://gh.atlasgo.cloud/explore/saved/60129542144)
@@ -211,10 +211,10 @@ Let's go over a few examples that show how to define different relation types us
-[](https://gh.atlasgo.cloud/explore/b6264668)
+[](https://gh.atlasgo.cloud/explore/saved/60129542145)
@@ -309,10 +309,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/6645164b)
+[](https://gh.atlasgo.cloud/explore/saved/60129542146)
@@ -419,10 +419,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/e2e76d55)
+[](https://gh.atlasgo.cloud/explore/saved/60129542147)
@@ -529,10 +529,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/8a360fce)
+[](https://gh.atlasgo.cloud/explore/saved/60129542148)
@@ -654,10 +654,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/74c74ac7)
+[](https://gh.atlasgo.cloud/explore/saved/60129542149)
@@ -799,10 +799,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/25b70c29)
+[](https://gh.atlasgo.cloud/explore/saved/60129542150)
@@ -920,10 +920,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/8cb4fd4e)
+[](https://gh.atlasgo.cloud/explore/saved/60129542151)
@@ -1043,10 +1043,10 @@ The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examp
-[](https://gh.atlasgo.cloud/explore/74c5bd30)
+[](https://gh.atlasgo.cloud/explore/saved/60129542152)
@@ -1228,10 +1228,10 @@ is automatically set on creation.
-[](https://gh.atlasgo.cloud/explore/90e2415f)
+[](https://gh.atlasgo.cloud/explore/saved/60129542153)
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