mirror of https://github.com/go-gorm/gorm.git
Update README
This commit is contained in:
parent
2a9c03002c
commit
118c8b836f
|
@ -1,6 +1,14 @@
|
|||
# Summary
|
||||
|
||||
* [GORM](README.md)
|
||||
* [GORM GITHUB](http://github.com/jinzhu/gorm)
|
||||
* [Getting Start](README.md)
|
||||
{% for path, chapter in book.chapters %}
|
||||
* [{{ chapter.name }}]({{ path }})
|
||||
{% for section in chapter.sections %}
|
||||
* [{{ section.name }}]({{ section.path }})
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
* [Database](database/database.md)
|
||||
* [Connecting to a Database](database/connect-database.md)
|
||||
* [Migration](database/migration.md)
|
||||
|
|
|
@ -16,5 +16,22 @@
|
|||
"base": "https://github.com/jinzhu/gorm/edit/gh-pages",
|
||||
"label": "Edit This Page"
|
||||
}
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"content": "<h1>Hello</h1>",
|
||||
"type": "normal"
|
||||
}
|
||||
],
|
||||
"variables": {
|
||||
"chapters": {
|
||||
"database/database.md": {
|
||||
"name": "Databae",
|
||||
"sections": [
|
||||
{"name": "Connection to a Database", "path": "database/connect-database.md"},
|
||||
{"name": "Migration", "path": "database/migration.md"}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
## Database
|
||||
|
||||
<!-- toc -->
|
||||
{% for section in book.chapters["database/database.md"].sections %}
|
||||
* [**{{section.name}}**](../{{section.path}})
|
||||
{% endfor %}
|
||||
{{book.chapters}}
|
||||
|
||||
<script>
|
||||
window.chapters = {}
|
||||
{% for path, chapter in book.chapters %}
|
||||
chapters["{{path}}"] = {}
|
||||
chapters["{{path}}"]["name"] = "{{chapter.name}}"
|
||||
chapters["{{path}}"]["sections"] = [];
|
||||
{% for section in chapter.sections %}
|
||||
var section = {
|
||||
"name": "{{section.name}}",
|
||||
"path": "{{section.path}}",
|
||||
}
|
||||
chapters["{{path}}"]["sections"].push(section);
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue