Skip to content
Browse files

[doc][ux] fixed edit link updated readme closes #71

  • Loading branch information...
1 parent d150267 commit 4881a9fd3485800ae0c5f3b7089eb62da5f93826 @blakmatrix blakmatrix committed
Showing with 10 additions and 4 deletions.
  1. +6 −2 README.md
  2. +4 −2 theme/article.html
View
8 README.md
@@ -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
View
6 theme/article.html
@@ -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>

0 comments on commit 4881a9f

Please sign in to comment.
Something went wrong with that request. Please try again.