ent/doc: fix footer links

Reviewed By: alexsn

Differential Revision: D17183988

fbshipit-source-id: 4635c083c2057bbfa453112466039fac9e1f262c
This commit is contained in:
Ariel Mashraki
2019-09-04 09:08:23 -07:00
committed by Facebook Github Bot
parent b26334c93c
commit f1bea078e5
3 changed files with 10 additions and 15 deletions

View File

@@ -55,7 +55,7 @@ func (User) Edges() []ent.Edge {
```
Add 2 fields to the `User` schema, and then run `entc generate`:
Add 2 fields to the `User` schema:
```go
package schema
@@ -132,10 +132,6 @@ func main() {
log.Fatalf("failed opening connection to sqlite: %v", err)
}
defer db.Close()
drv := dialect.Driver(db)
if testing.Verbose() {
drv = dialect.Debug(drv)
}
client := ent.NewClient(ent.Driver(db))
// run the auto migration tool.
if err := client.Schema.Create(context.Background()); err != nil {

View File

@@ -29,14 +29,17 @@ class Footer extends React.Component {
<section className="sitemap">
<div>
<h5>Docs</h5>
<a href={this.docUrl('doc1.html', this.props.language)}>
Getting Started (or other categories)
<a href="docs/getting-started">
Getting Started
</a>
<a href={this.docUrl('doc2.html', this.props.language)}>
Guides (or other categories)
<a href="docs/schema-def">
Schema Guide
</a>
<a href={this.docUrl('doc3.html', this.props.language)}>
API Reference (or other categories)
<a href="docs/code-gen">
Code Generation
</a>
<a href="docs/migrate">
Schema Migration
</a>
</div>
<div>

View File

@@ -327,10 +327,6 @@ a {
height: 230px;
}
#gopher-schema-as-code {
height: 200px;
}
@media only screen and (max-width: 1500px) {
.gridBlock .twoByGridBlock img,
.gridBlock .threeByGridBlock img,