diff --git a/app/controllers/doc.go b/app/controllers/doc.go index ff002fc..cf18367 100644 --- a/app/controllers/doc.go +++ b/app/controllers/doc.go @@ -64,6 +64,8 @@ func (c *DocController) VersionHome(version string) { File(filepath.Join("static", version)) case "godoc": c.GoDoc() + case "examples": + c.Examples() default: queryStr := c.Req.URL().Query().Encode() targetURL := c.RouteURL("docs.show_doc", releases[0], version) @@ -90,6 +92,9 @@ func (c *DocController) VersionHome(version string) { func (c *DocController) ShowDoc(version, content string) { // handle certian doc path and updates switch content { + case "release-notes.html": + c.ReleaseNotes(version) + return case "error-handling.html": if util.VersionLtEq(version, "v0.9") { c.Reply().Redirect(c.RouteURL("docs.show_doc", version, "/centralized-error-handler.html")) diff --git a/config/env/dev.conf b/config/env/dev.conf index 5e0c31d..9f66532 100644 --- a/config/env/dev.conf +++ b/config/env/dev.conf @@ -9,7 +9,7 @@ dev { # -------------------- log { #receiver = "file" - #level = "trace" + level = "trace" #color = false #pattern = "%time:2006-01-02 15:04:05.000 %level:-5 %shortfile %line %appname %insname %reqid %principal %message %fields" } diff --git a/config/routes.conf b/config/routes.conf index 8df5812..52901c8 100644 --- a/config/routes.conf +++ b/config/routes.conf @@ -178,18 +178,18 @@ domains { path = "/*content" action = "ShowDoc" } - release_notes { - path = "/release-notes.html" - action = "ReleaseNotes" - } + # release_notes { + # path = "/release-notes.html" + # action = "ReleaseNotes" + # } } } - examples { - path = "/examples.html" - controller = "DocController" - action = "Examples" - } + # examples { + # path = "/examples.html" + # controller = "DocController" + # action = "Examples" + # } } # end - docs app routes diff --git a/go.mod b/go.mod index d739847..3c1ba28 100755 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module aahframework.org/website require ( aahframe.work v0.12.1 - aahframe.work/minify/html v0.1.0 + aahframe.work/minify/html v0.2.0 github.com/hashicorp/go-version v1.0.0 github.com/russross/blackfriday v1.5.2 github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95 // indirect diff --git a/go.sum b/go.sum index c78a104..a9a8518 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,10 @@ -aahframe.work v0.12.0/go.mod h1:pJFDfvHExiQFl3P3o5cvuhvJVZUBMtlbQmxafVhnbL0= aahframe.work v0.12.1 h1:yCqUu+Y7A2mmH2VAd+Ysofvni12/YhAyjAUlDuDN/IY= aahframe.work v0.12.1/go.mod h1:cwxvkz5siNsSfRiUdO203R4/ZgjWlf0G4e+nsI4okCc= -aahframe.work/minify/html v0.1.0 h1:CHfM7EYj2AxWdr7I5GS8JaBKVx5WykkJWHKCI3ePkPs= -aahframe.work/minify/html v0.1.0/go.mod h1:Qn72AfHnTkoXB42rgBEX6AjGnOS65nuxDPxD8LKcUuQ= +aahframe.work/minify/html v0.2.0 h1:1gtG3fqfUzfIeIIoaGt+h8W0ScskMog686RdxcEPJ6E= +aahframe.work/minify/html v0.2.0/go.mod h1:we9/8Q4XPI8tZJ84o+75rPXfp0b3TyTGnUVxCuv6bvI= cloud.google.com/go v0.30.0 h1:xKvyLgk56d0nksWq49J0UyGEeUIicTl4+UBiX1NPX9g= cloud.google.com/go v0.30.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-aah/forge v0.6.0/go.mod h1:noFuP/1ZMLfYHd/CpUGNdlXgqeRaYiEkj7WsCdqnlvc= github.com/go-aah/forge v0.7.0 h1:WgD53x4jUS14IRDeTON+m7tGkqUg0Oj+e5PhiKbtFTM= github.com/go-aah/forge v0.7.0/go.mod h1:+pz2ywtYKCMzKtHa2kyKIOBw2XhQpj+dgch/vMGWyqo= github.com/go-playground/locales v0.12.1 h1:2FITxuFt/xuCNP1Acdhv62OzaCiviiE4kotfhkmOqEc=