1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-19 21:17:58 +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:
Vishal Rana 2015-10-02 19:48:47 -07:00
parent db77a731be
commit 1f7e699120
9 changed files with 15 additions and 13 deletions

@ -2,18 +2,19 @@
"baseurl": "http://labstack.com/echo",
"languageCode": "en-us",
"title": "Echo",
"canonifyurls": true,
"menu": {
"main": [{
"Name": "Guide",
"Pre": "<i class='fa fa-book'></i>",
"Weight": -110,
"Weight": 10,
"Identifier": "guide",
"URL": "guide"
}, {
"Name": "Recipes",
"Pre": "<i class='fa fa-code'></i>",
"Weight": -100,
"Weight": 20,
"Identifier": "recipes",
"URL": "recipes"
}]

@ -12,7 +12,7 @@ menu:
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`
and message `HTTPError.Message`.

@ -9,7 +9,7 @@ menu:
Echo advocates centralized HTTP error handling by returning `error` from middleware
and handlers.
It allows you to
It allows you to:
- Debug by writing stack trace to the HTTP response.
- 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 middleware recovers from panics anywhere in the chain and handles the control
to the centralized [HTTPErrorHandler](#error-handling).
Recover middleware recovers from panics anywhere in the chain and handles the
control to the centralized
[HTTPErrorHandler]({{< relref "guide/customization.md#http-error-handler">}}).
*Example*

@ -6,7 +6,7 @@ menu:
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
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.

@ -105,7 +105,7 @@ Hello, World! on the page.
### Next?
- 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

@ -34,7 +34,7 @@
<button class="mdl-mini-footer__social-btn social-btn__twitter"></button> -->
</div>
</footer>
<script src="{{ .Site.BaseURL }}/scripts/highlight.pack.min.js"></script>
<script src="/scripts/highlight.pack.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
(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/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="{{ .Site.BaseURL }}/styles/monokai.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/styles/echo.css">
<link rel="stylesheet" href="/styles/monokai.css">
<link rel="stylesheet" href="/styles/echo.css">
</head>

@ -1,6 +1,6 @@
<header class="mdl-layout__header">
<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 }}
</a>
<div class="mdl-layout-spacer"></div>