doc: update repository path to ent/ent

This commit is contained in:
Ariel Mashraki
2021-02-13 07:59:44 +02:00
committed by Ariel Mashraki
parent d1a3b1985a
commit d75fa8a01d
13 changed files with 28 additions and 28 deletions

View File

@@ -140,7 +140,7 @@ func main() {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/entcpkg).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/entcpkg).
## Schema Description

View File

@@ -71,7 +71,7 @@ The `schema/snapshot` option tells `entc` (ent codegen) to store a snapshot of t
and use it to automatically solve merge conflicts when user's schema can't be built.
This option can be added to projects using the `--feature schema/snapshot` flag, but please see
[facebook/ent/issues/852](https://entgo.io/ent/issues/852) to get more context about it.
[ent/ent/issues/852](https://entgo.io/ent/issues/852) to get more context about it.
#### Schema Config

View File

@@ -612,4 +612,4 @@ Now when we have a graph with data, we can run a few queries on it:
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/start).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/start).

View File

@@ -265,7 +265,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/privacyadmin).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/privacyadmin).
### Multi Tenancy
@@ -274,7 +274,7 @@ The helper packages `viewer` and `rule` (as mentioned above) also exist in this
![tenant-example](https://s3.eu-central-1.amazonaws.com/entgo.io/assets/tenant_medium.png)
Let's start building this application piece by piece. We begin by creating 3 different schemas (see the full code [here](https://github.com/facebook/ent/tree/master/examples/privacytenant/ent/schema)),
Let's start building this application piece by piece. We begin by creating 3 different schemas (see the full code [here](https://github.com/ent/ent/tree/master/examples/privacytenant/ent/schema)),
and since we want to share some logic between them, we create another [mixed-in schema](schema-mixin.md) and add it to all other schemas as follows:
```go
@@ -563,6 +563,6 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/privacytenant).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/privacytenant).
Please note that this documentation is under active development.

View File

@@ -252,7 +252,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/o2o2types).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/o2o2types).
## O2O Same Type
@@ -348,7 +348,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/o2orecur).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/o2orecur).
## O2O Bidirectional
@@ -422,7 +422,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/o2obidi).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/o2obidi).
## O2M Two Types
@@ -503,7 +503,7 @@ func Do(ctx context.Context, client *ent.Client) error {
return nil
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/o2m2types).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/o2m2types).
## O2M Same Type
@@ -612,7 +612,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/o2mrecur).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/o2mrecur).
## M2M Two Types
@@ -704,7 +704,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/m2m2types).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/m2m2types).
## M2M Same Type
@@ -797,7 +797,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/m2mrecur).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/m2mrecur).
## M2M Bidirectional
@@ -860,7 +860,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/m2mbidi).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/m2mbidi).
## Required

View File

@@ -147,7 +147,7 @@ func Do(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/edgeindex).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/edgeindex).
## Dialect Support

View File

@@ -58,7 +58,7 @@ func rollback(tx *ent.Tx, err error) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/traversal).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/traversal).
## Transactional Client
@@ -88,7 +88,7 @@ func Gen(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/traversal).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/traversal).
## Best Practices

View File

@@ -213,4 +213,4 @@ func Traverse(ctx context.Context, client *ent.Client) error {
}
```
The full example exists in [GitHub](https://github.com/facebook/ent/tree/master/examples/traversal).
The full example exists in [GitHub](https://github.com/ent/ent/tree/master/examples/traversal).

View File

@@ -38,7 +38,7 @@ const siteConfig = {
headerLinks: [
{doc: 'getting-started', label: 'Docs'},
{href: 'https://pkg.go.dev/entgo.io/ent?tab=doc', label: 'GoDoc'},
{href: 'https://github.com/facebook/ent', label: 'Github'},
{href: 'https://github.com/ent/ent', label: 'Github'},
{ blog: true, label: 'Blog' },
],
@@ -142,7 +142,7 @@ const siteConfig = {
// You may provide arbitrary config keys to be used as needed by your
// template. For example, if you need your repo's URL...
// repoUrl: 'https://github.com/facebook/test-site',
gaTrackingId: 'UA-44373548-44',
gaTrackingId: 'UA-189726777-1',
algolia: {
apiKey: 'bfc8175da1bd5078f1c02e5c8a6fe782',

View File

@@ -2,8 +2,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="entgo.io/ent git https://github.com/facebook/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/facebook/ent https://github.com/facebook/ent/tree/master{/dir} https://github.com/facebook/ent/blob/master{/dir}/{file}#L{line}">
<meta name="go-import" content="entgo.io/ent git https://github.com/ent/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/ent/ent https://github.com/ent/ent/tree/master{/dir} https://github.com/ent/ent/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/entgo.io/ent/cmd/ent">
</head>
<body>

View File

@@ -2,8 +2,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="entgo.io/ent git https://github.com/facebook/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/facebook/ent https://github.com/facebook/ent/tree/master{/dir} https://github.com/facebook/ent/blob/master{/dir}/{file}#L{line}">
<meta name="go-import" content="entgo.io/ent git https://github.com/ent/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/ent/ent https://github.com/ent/ent/tree/master{/dir} https://github.com/ent/ent/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/entgo.io/ent/entc/gen">
</head>
<body>

View File

@@ -2,8 +2,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="entgo.io/ent git https://github.com/facebook/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/facebook/ent https://github.com/facebook/ent/tree/master{/dir} https://github.com/facebook/ent/blob/master{/dir}/{file}#L{line}">
<meta name="go-import" content="entgo.io/ent git https://github.com/ent/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/ent/ent https://github.com/ent/ent/tree/master{/dir} https://github.com/ent/ent/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/entgo.io/ent/entc">
</head>
<body>

View File

@@ -2,8 +2,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="entgo.io/ent git https://github.com/facebook/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/facebook/ent https://github.com/facebook/ent/tree/master{/dir} https://github.com/facebook/ent/blob/master{/dir}/{file}#L{line}">
<meta name="go-import" content="entgo.io/ent git https://github.com/ent/ent">
<meta name="go-source" content="entgo.io/ent https://github.com/ent/ent https://github.com/ent/ent/tree/master{/dir} https://github.com/ent/ent/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/entgo.io/ent">
</head>
<body>