Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.

Commit 183ac66

Browse files
committed
use gobook instead gitbook
1 parent c98b520 commit 183ac66

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

actions/docs.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package actions
22

3-
import "github.com/go-xweb/xweb"
3+
import (
4+
"strings"
5+
6+
"github.com/go-xweb/xweb"
7+
)
48

59
// DocsRouter serves about page.
610
type DocsAction struct {
@@ -9,9 +13,14 @@ type DocsAction struct {
913
get xweb.Mapper `xweb:"/"`
1014
}
1115

16+
func toLower(l string) string {
17+
return strings.ToLower(l)
18+
}
19+
1220
// Get implemented Get method for DocsRouter.
1321
func (this *DocsAction) Get() error {
1422
return this.Render("docs.html", &xweb.T{
15-
"IsDocs": true,
23+
"IsDocs": true,
24+
"toLower": toLower,
1625
})
1726
}

templates/docs.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
<div id="wrapper">
1818
{{include "base/navbar.html"}}
1919
<div id="main">
20-
<div class="container main-container">
21-
<iframe frameBorder=0 marginwidth=0 marginheight=0 src="http://lunny.gitbooks.io/xorm-manual-{{.Lang}}/content/" style="width:100%;height:1500px;"></iframe>
20+
<div>
21+
<iframe frameBorder=0 marginwidth=0 marginheight=0 src="http://gobook.io/read/go-xorm/manual-{{toLower .Lang}}/" style="width:100%;height:1500px;"></iframe>
2222
{{include "base/disqus.html"}}
2323
</div>
2424
</div>
2525
</div>
26-
</div>
2726
{{include "base/footer.html"}}
2827
</body>
2928
</html>

0 commit comments

Comments
 (0)