Skip to content

Commit

Permalink
Fix the doc site
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Mar 7, 2015
1 parent 13ed5ff commit 69633b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions site/app/controllers/main.js
Expand Up @@ -98,7 +98,7 @@ var BRANCH = 'v0.12'
BRANCH + '/'
// If set to true, uses the local copy on the filesystem
// Use for development work
, USE_LOCAL = false;
, USE_LOCAL = true;

md.setOptions({
gfm: true
Expand Down Expand Up @@ -239,6 +239,9 @@ var Main = function () {
this.community = function (req, resp, params) {
var self = this;
var gotStars = function (err, stars) {
if (typeof stars == 'string') {
stars = JSON.parse(stars);
}
self.respond({stars: stars}, {
format: 'html'
, template: 'app/views/main/community'
Expand All @@ -248,8 +251,7 @@ var Main = function () {
// get stargazers
var opts = {
url: 'https://api.github.com/repos/geddy/geddy/stargazers?page='+(Math.floor(Math.random()*10)+1)
, dataType: 'json'
, headers: {'User-Agent': 'GeddyJS documentation site'}
, headers: {'User-Agent': 'GeddyJS documentation site'}
};
geddy.request(opts, gotStars);
};
Expand Down
1 change: 0 additions & 1 deletion site/app/views/errors/default.html.ejs
@@ -1,4 +1,3 @@
<h2>Error: <%= statusCode %> <%= statusText %></h2>
<% if (stack) { %>
<code><%= stack %></code>
<% } else if (typeof message != 'undefined') { %>
Expand Down
3 changes: 3 additions & 0 deletions site/config/secrets.json
@@ -0,0 +1,3 @@
{
"secret": "jWin09QAwHODOH2RXnDnV37fgFQ0JStzUXCw2zZ8bD8U4Lpt9mDqRzC21eEY0UZwqhXVSOY500RDwWH9TOqblOBehjGdXBIh6Rq99mpIov7Ge7qzKPht1GFVhENAkdja"

This comment has been minimized.

Copy link
@OscarGodson

OscarGodson Mar 7, 2015

Member

Not so secret, this secret is

}

2 comments on commit 69633b6

@mde
Copy link
Contributor Author

@mde mde commented on 69633b6 Mar 7, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha. Yeah, it's been a long day. I should have just left this on the server. :)

@mde
Copy link
Contributor Author

@mde mde commented on 69633b6 Mar 7, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed this from Git, and regenerated the secret on the server. Thanks for catching this!

Please sign in to comment.