Skip to content

Commit

Permalink
[doc][ux] fixed edit link updated readme closes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
blakmatrix committed Nov 30, 2012
1 parent d150267 commit 4881a9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -17,13 +17,17 @@ docs.nodejitsu.com is an [open source project](http://github.com/nodejitsu/docs)

Browse /articles/ folder or http://docs.nodejitsu.com

### Install blacksmith

npm i blacksmith@0.0.13 -g

### To generate the docs

node bin/docs generate
blaksmith generate pages

### To start the docs server

node bin/docs serve
blacksmith serve pages


## Contribution Guide
Expand Down
6 changes: 4 additions & 2 deletions theme/article.html
Expand Up @@ -26,8 +26,10 @@
<script type="text/javascript">
//This changes the "edit this page" link to go to the "fork and edit" url of the docs.
document.ready = function () {
var edit = document.getElementById("edit");
edit.innerHTML = "<a href='https://github.com/nodejitsu/docs/edit/master"+window.location.pathname+"/article.md'>Edit this page on GitHub</a>";
var edit = document.getElementById("edit"),
location = window.location.pathname;
if ( location === "/") { location = "";}
edit.innerHTML = "<a href='https://github.com/nodejitsu/docs/edit/master/pages"+location+"/content.md'>Edit this page on GitHub</a>";
}
</script>

Expand Down

0 comments on commit 4881a9f

Please sign in to comment.