1
0
mirror of https://github.com/labstack/echo.git synced 2025-09-16 09:16:29 +02:00

Updated website and examples

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2017-01-17 10:47:16 -08:00
parent a89cf4d0c2
commit 49321f5829
72 changed files with 57 additions and 57 deletions

4
.gitattributes vendored
View File

@@ -14,7 +14,7 @@
*.json text eol=lf
LICENSE text eol=lf
# Exclude `website` and `examples` from GitHub's language statistics
# Exclude `website` and `cookbook` from GitHub's language statistics
# https://github.com/github/linguist#using-gitattributes
examples/* linguist-documentation
cookbook/* linguist-documentation
website/* linguist-documentation

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -5,7 +5,7 @@ import (
"strconv"
"github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/model"
"github.com/labstack/echo/cookbook/twitter/model"
mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)

View File

@@ -6,7 +6,7 @@ import (
jwt "github.com/dgrijalva/jwt-go"
"github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/model"
"github.com/labstack/echo/cookbook/twitter/model"
mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)

View File

@@ -2,7 +2,7 @@ package main
import (
"github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/handler"
"github.com/labstack/echo/cookbook/twitter/handler"
"github.com/labstack/echo/middleware"
"github.com/labstack/gommon/log"
mgo "gopkg.in/mgo.v2"

View File

@@ -6,6 +6,6 @@ googleAnalytics = "UA-85059636-2"
[permalinks]
guide = "/guide/:filename"
middleware = "/middleware/:filename"
examples = "/examples/:filename"
example = "/cookbook/:filename"
[params]
description = "Echo is a high performance, extensible, minimalist web framework for Go (Golang)."

View File

@@ -0,0 +1,13 @@
+++
title = "Cookbook"
description = "Echo cookbook"
type = "cookbook"
[menu.main]
name = "Cookbook"
pre = "<i class='fa fa-code'></i>"
weight = 2
identifier = "cookbook"
url = "/cookbook"
+++
<script>location = '/cookbook/hello-world';</script>

View File

@@ -1,9 +1,9 @@
+++
title = "Auto TLS Example"
title = "Auto TLS"
description = "Automatic TLS certificates from Let's Encrypt example for Echo"
[menu.main]
name = "Auto TLS"
parent = "examples"
parent = "cookbook"
weight = 2
+++

View File

@@ -1,10 +1,10 @@
+++
title = "CORS Example"
title = "CORS"
description = "CORS example for Echo"
[menu.main]
name = "CORS"
identifier = "middleware-cors"
parent = "examples"
parent = "cookbook"
weight = 3
+++

View File

@@ -1,9 +1,9 @@
+++
title = "CRUD Example"
title = "CRUD"
description = "CRUD (Create, read, update and delete) example for Echo"
[menu.main]
name = "CRUD"
parent = "examples"
parent = "cookbook"
weight = 2
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Embed Resources Example"
title = "Embed Resources"
description = "Embed resources example for Echo"
[menu.main]
name = "Embed Resources"
parent = "examples"
parent = "cookbook"
weight = 14
+++

View File

@@ -1,9 +1,9 @@
+++
title = "File Upload Example"
title = "File Upload"
description = "File upload example for Echo"
[menu.main]
name = "File Upload"
parent = "examples"
parent = "cookbook"
weight = 7
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Google App Engine Example"
title = "Google App Engine"
description = "Google App Engine example for Echo"
[menu.main]
name = "Google App Engine"
parent = "examples"
parent = "cookbook"
weight = 12
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Graceful Shutdown Example"
title = "Graceful Shutdown"
description = "Graceful shutdown example for Echo"
[menu.main]
name = "Graceful Shutdown"
parent = "examples"
parent = "cookbook"
weight = 13
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Hello World Example"
title = "Hello World"
description = "Hello world example for Echo"
[menu.main]
name = "Hello World"
parent = "examples"
parent = "cookbook"
weight = 1
+++

View File

@@ -1,9 +1,9 @@
+++
title = "HTTP/2 Example"
title = "HTTP/2"
description = "HTTP/2 example for Echo"
[menu.main]
name = "HTTP/2"
parent = "examples"
parent = "cookbook"
weight = 3
+++

View File

@@ -1,9 +1,9 @@
+++
title = "JSONP Example"
title = "JSONP"
description = "JSONP example for Echo"
[menu.main]
name = "JSONP"
parent = "examples"
parent = "cookbook"
weight = 6
+++

View File

@@ -1,10 +1,10 @@
+++
title = "JWT Example"
title = "JWT"
description = "JWT example for Echo"
[menu.main]
name = "JWT"
identifier = "example-jwt"
parent = "examples"
parent = "cookbook"
weight = 11
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Middleware Example"
title = "Middleware"
description = "Middleware example for Echo"
[menu.main]
name = "Middleware"
parent = "examples"
parent = "cookbook"
weight = 3
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Streaming Response Example"
title = "Streaming Response"
description = "Streaming response example for Echo"
[menu.main]
name = "Streaming Response"
parent = "examples"
parent = "cookbook"
weight = 3
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Subdomains Example"
title = "Subdomains"
description = "Subdomains example for Echo"
[menu.main]
name = "Subdomains"
parent = "examples"
parent = "cookbook"
weight = 10
+++

View File

@@ -1,9 +1,9 @@
+++
title = "Twitter Like API Example"
title = "Twitter Like API"
description = "Twitter Like API example for Echo"
[menu.main]
name = "Twitter"
parent = "examples"
parent = "cookbook"
weight = 2
+++

View File

@@ -1,9 +1,9 @@
+++
title = "WebSocket Example"
title = "WebSocket"
description = "WebSocket example for Echo"
[menu.main]
name = "WebSocket"
parent = "examples"
parent = "cookbook"
weight = 5
+++

View File

@@ -1,13 +0,0 @@
+++
title = "Examples"
description = "Echo examples"
type = "examples"
[menu.main]
name = "Examples"
pre = "<i class='fa fa-code'></i>"
weight = 2
identifier = "examples"
url = "/examples"
+++
<script>location = '/examples/hello-world';</script>

View File

@@ -45,4 +45,4 @@ description = "Migration"
- Moved website and examples to the main repo
- Updated docs and fixed numerous issues
## [Examples](/examples/hello-world)
## [Cookbook](/cookbook)

View File

@@ -129,7 +129,7 @@ func(c echo.Context) error {
Go type into JSON and send it as JSONP payload constructed using a callback, with
status code.
[*Example*](/examples/jsonp)
[*Example*](/cookbook/jsonp)
## Send XML

View File

@@ -105,4 +105,4 @@ e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Example above skips Logger middleware when request host starts with localhost.
## [Writing Custom Middleware]({{< ref "examples/middleware.md">}})
## [Writing Custom Middleware]({{< ref "cookbook/middleware.md">}})

View File

@@ -80,4 +80,4 @@ DefaultJWTConfig = JWTConfig{
}
```
## [Example]({{< ref "examples/jwt.md">}})
## [Example]({{< ref "cookbook/jwt.md">}})

View File

@@ -1 +1 @@
<pre data-src="https://raw.githubusercontent.com/labstack/echo/master/examples/{{ .Get 0 }}"></pre>
<pre data-src="https://raw.githubusercontent.com/labstack/echo/master/cookbook/{{ .Get 0 }}"></pre>

View File

@@ -1 +1 @@
https://github.com/labstack/echo/tree/master/examples/{{ .Get 0 }}
https://github.com/labstack/echo/tree/master/cookbook/{{ .Get 0 }}