Skip to content

Commit

Permalink
Fixed broken links in website
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>

Fixed broken links in website

Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Oct 3, 2015
1 parent db77a73 commit 1f7e699
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
5 changes: 3 additions & 2 deletions website/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}]
Expand Down
2 changes: 1 addition & 1 deletion website/content/guide/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions website/content/guide/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
5 changes: 3 additions & 2 deletions website/content/guide/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down
2 changes: 1 addition & 1 deletion website/content/guide/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion website/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion website/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion website/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 1f7e699

Please sign in to comment.