doc: fix Github Link entgo.io -> github.com/ent (#1257)

* doc: fix github link

* doc: fix Link entgo.io -> github.com/ent
This commit is contained in:
森 優太
2021-02-16 17:40:14 +09:00
committed by GitHub
parent 41c3445b95
commit 361663954e
3 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ func VersionHook() ent.Hook {
The preferred way for writing such an extension is to use [ent.Mixin](schema-mixin.md). Use the `Fields` option for
setting the fields that are shared between all schemas that import the mixed-schema, and use the `Hooks` option for
attaching a mutation-hook for all mutations that are being applied on these schemas. Here's an example, based on a
discussion in the [repository issue-tracker](https://entgo.io/ent/issues/830):
discussion in the [repository issue-tracker](https://github.com/ent/ent/issues/830):
```go
// AuditMixin implements the ent.Mixin for sharing
@@ -182,7 +182,7 @@ users := client.User.
```
For more examples, go to the [predicates](predicates.md#custom-predicates) page, or search in the repository
issue-tracker for more advance examples like [issue-842](https://entgo.io/ent/issues/842#issuecomment-707896368).
issue-tracker for more advance examples like [issue-842](https://github.com/ent/ent/issues/842#issuecomment-707896368).
#### How to add custom predicates to the codegen assets?

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
[ent/ent/issues/852](https://entgo.io/ent/issues/852) to get more context about it.
[ent/ent/issues/852](https://github.com/ent/ent/issues/852) to get more context about it.
#### Schema Config

View File

@@ -126,10 +126,10 @@ func (User) Fields() []ent.Field {
## Examples
- A custom template for implementing the `Node` API for GraphQL -
[Github](https://entgo.io/ent/blob/master/entc/integration/template/ent/template/node.tmpl).
[Github](https://github.com/ent/ent/blob/master/entc/integration/template/ent/template/node.tmpl).
- An example for executing external templates with custom functions. See [configuration](https://entgo.io/ent/blob/master/examples/entcpkg/ent/entc.go) and its
[README](https://entgo.io/ent/blob/master/examples/entcpkg) file.
- An example for executing external templates with custom functions. See [configuration](https://github.com/ent/ent/blob/master/examples/entcpkg/ent/entc.go) and its
[README](https://github.com/ent/ent/blob/master/examples/entcpkg) file.
## Documentation