Skip to content

Commit

Permalink
Begin site reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Jul 3, 2013
1 parent 59fad7f commit aac6f92
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion site/app/controllers/main.js
Expand Up @@ -48,6 +48,10 @@ var Main = function () {
};

this.documentation = function (req, resp, params) {

};

this.reference = function (req, resp, params) {
var self = this
, docs = []
, count = 0
Expand Down Expand Up @@ -102,7 +106,7 @@ var Main = function () {
if (count == total) {
self.respond({docs: docs}, {
format: 'html'
, template: 'app/views/main/documentation'
, template: 'app/views/main/reference'
});
}
}
Expand Down
@@ -1,7 +1,7 @@
#documentation
.row.title
.span12
h2 Framework documentation
h2 API reference
.row.content
.span6.toc
ul
Expand Down
1 change: 1 addition & 0 deletions site/config/router.js
Expand Up @@ -22,6 +22,7 @@ var router = new geddy.RegExpRouter();
router.get('/').to('Main.index');
router.get('/community(.:format)').to('Main.community');
router.get('/documentation(.:format)').to('Main.documentation');
router.get('/reference(.:format)').to('Main.reference');
router.get('/tutorial(.:format)').to('Main.tutorial');
router.get('/faq(.:format)').to('Main.faq');
router.get('/changelog(.:format)').to('Main.changelog');
Expand Down

0 comments on commit aac6f92

Please sign in to comment.