mirror of
https://github.com/labstack/echo.git
synced 2025-03-31 22:05:06 +02:00
Fixed broken links in website
Signed-off-by: Vishal Rana <vr@labstack.com> Fixed broken links in website Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
db77a731be
commit
1f7e699120
@ -2,18 +2,19 @@
|
|||||||
"baseurl": "http://labstack.com/echo",
|
"baseurl": "http://labstack.com/echo",
|
||||||
"languageCode": "en-us",
|
"languageCode": "en-us",
|
||||||
"title": "Echo",
|
"title": "Echo",
|
||||||
|
"canonifyurls": true,
|
||||||
|
|
||||||
"menu": {
|
"menu": {
|
||||||
"main": [{
|
"main": [{
|
||||||
"Name": "Guide",
|
"Name": "Guide",
|
||||||
"Pre": "<i class='fa fa-book'></i>",
|
"Pre": "<i class='fa fa-book'></i>",
|
||||||
"Weight": -110,
|
"Weight": 10,
|
||||||
"Identifier": "guide",
|
"Identifier": "guide",
|
||||||
"URL": "guide"
|
"URL": "guide"
|
||||||
}, {
|
}, {
|
||||||
"Name": "Recipes",
|
"Name": "Recipes",
|
||||||
"Pre": "<i class='fa fa-code'></i>",
|
"Pre": "<i class='fa fa-code'></i>",
|
||||||
"Weight": -100,
|
"Weight": 20,
|
||||||
"Identifier": "recipes",
|
"Identifier": "recipes",
|
||||||
"URL": "recipes"
|
"URL": "recipes"
|
||||||
}]
|
}]
|
||||||
|
@ -12,7 +12,7 @@ menu:
|
|||||||
|
|
||||||
Registers a custom `Echo.HTTPErrorHandler`.
|
Registers a custom `Echo.HTTPErrorHandler`.
|
||||||
|
|
||||||
Default handler rules
|
Default handler rules:
|
||||||
|
|
||||||
- If error is of type `Echo.HTTPError` it sends HTTP response with status code `HTTPError.Code`
|
- If error is of type `Echo.HTTPError` it sends HTTP response with status code `HTTPError.Code`
|
||||||
and message `HTTPError.Message`.
|
and message `HTTPError.Message`.
|
||||||
|
@ -9,7 +9,7 @@ menu:
|
|||||||
Echo advocates centralized HTTP error handling by returning `error` from middleware
|
Echo advocates centralized HTTP error handling by returning `error` from middleware
|
||||||
and handlers.
|
and handlers.
|
||||||
|
|
||||||
It allows you to
|
It allows you to:
|
||||||
|
|
||||||
- Debug by writing stack trace to the HTTP response.
|
- Debug by writing stack trace to the HTTP response.
|
||||||
- Customize HTTP responses.
|
- Customize HTTP responses.
|
||||||
@ -45,4 +45,4 @@ func welcome(c *echo.Context) error {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
See how [HTTPErrorHandler](#customization) handles it.
|
See how [HTTPErrorHandler](/guide/customization#http-error-handler) handles it.
|
||||||
|
@ -54,8 +54,9 @@ e.Use(mw.Gzip())
|
|||||||
|
|
||||||
### Recover
|
### Recover
|
||||||
|
|
||||||
Recover middleware recovers from panics anywhere in the chain and handles the control
|
Recover middleware recovers from panics anywhere in the chain and handles the
|
||||||
to the centralized [HTTPErrorHandler](#error-handling).
|
control to the centralized
|
||||||
|
[HTTPErrorHandler]({{< relref "guide/customization.md#http-error-handler">}}).
|
||||||
|
|
||||||
*Example*
|
*Example*
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ menu:
|
|||||||
weight: 30
|
weight: 30
|
||||||
---
|
---
|
||||||
|
|
||||||
Echo's router is [fast, optimized](https://github.com/labstack/echo#benchmark) and
|
Echo's router is [fast, optimized]({{< relref "index.md#performance">}}) and
|
||||||
flexible. It's based on [radix tree](http://en.wikipedia.org/wiki/Radix_tree) data
|
flexible. It's based on [radix tree](http://en.wikipedia.org/wiki/Radix_tree) data
|
||||||
structure which makes route lookup really fast. Router leverages [sync pool](https://golang.org/pkg/sync/#Pool)
|
structure which makes route lookup really fast. Router leverages [sync pool](https://golang.org/pkg/sync/#Pool)
|
||||||
to reuse memory and achieve zero dynamic memory allocation with no GC overhead.
|
to reuse memory and achieve zero dynamic memory allocation with no GC overhead.
|
||||||
|
@ -105,7 +105,7 @@ Hello, World! on the page.
|
|||||||
|
|
||||||
### Next?
|
### Next?
|
||||||
- Browse [recipes](https://github.com/labstack/echo/tree/master/recipes)
|
- Browse [recipes](https://github.com/labstack/echo/tree/master/recipes)
|
||||||
- Head over to [Guide](guide.md)
|
- Head over to [Guide]({{< relref "guide/installation.md" >}})
|
||||||
|
|
||||||
## Contribute
|
## Contribute
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<button class="mdl-mini-footer__social-btn social-btn__twitter"></button> -->
|
<button class="mdl-mini-footer__social-btn social-btn__twitter"></button> -->
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="{{ .Site.BaseURL }}/scripts/highlight.pack.min.js"></script>
|
<script src="/scripts/highlight.pack.min.js"></script>
|
||||||
<script>hljs.initHighlightingOnLoad();</script>
|
<script>hljs.initHighlightingOnLoad();</script>
|
||||||
<script>
|
<script>
|
||||||
(function(i, s, o, g, r, a, m) {
|
(function(i, s, o, g, r, a, m) {
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
|
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
|
||||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700">
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700">
|
||||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/styles/monokai.css">
|
<link rel="stylesheet" href="/styles/monokai.css">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/styles/echo.css">
|
<link rel="stylesheet" href="/styles/echo.css">
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<header class="mdl-layout__header">
|
<header class="mdl-layout__header">
|
||||||
<div class="mdl-layout__header-row">
|
<div class="mdl-layout__header-row">
|
||||||
<a href="{{ .Site.BaseURL }}" class="mdl-navigation__link mdl-layout-title">
|
<a href="/" class="mdl-navigation__link mdl-layout-title">
|
||||||
{{ .Site.Title }}
|
{{ .Site.Title }}
|
||||||
</a>
|
</a>
|
||||||
<div class="mdl-layout-spacer"></div>
|
<div class="mdl-layout-spacer"></div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user