Permalink
Browse files

add render and deploy npm commands

  • Loading branch information...
1 parent 612abd3 commit f7b9be6f05f2c49bad0acf9da7d0c44981535231 @maxogden committed Jan 9, 2015
Showing with 405 additions and 1,024 deletions.
  1. +2 −0 .gitignore
  2. +312 −16 README.md
  3. +0 −395 dynamic.html
  4. +0 −613 index.html
  5. +50 −0 index.mustache
  6. +34 −0 package.json
  7. +7 −0 render.js
View
@@ -0,0 +1,2 @@
+node_modules
+index.html
View
Oops, something went wrong.
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -0,0 +1,50 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <title>JavaScript for Cats</title>
+
+ <link rel="stylesheet" href="stylesheets/style.css">
+ <link rel="stylesheet" href="stylesheets/rainbow.github.css">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!--[if lt IE 9]>
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ </head>
+<body>
+<div id="container">
+<div id="main">
+<div id="post" class="sticky-menu">
+<div class="inner clearfix">
+<div class="document prose">
+<div class="surface preview">
+<div class="content-preview-wrapper">
+<div class="content-preview">
+<div class="post-content" style="white-space: normal;">
+{{{content}}}
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+
+<script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-34180924-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+</script>
+
+</body>
+</html>
View
@@ -0,0 +1,34 @@
+{
+ "name": "javascript-for-cats",
+ "version": "1.0.0",
+ "description": "javascript for cats",
+ "main": "build.js",
+ "scripts": {
+ "render": "node render.js",
+ "deploy": "gh-pages-deploy"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/maxogden/javascript-for-cats.git"
+ },
+ "gh-pages-deploy": {
+ "prep": [
+ "build",
+ "render"
+ ],
+ "noprompt": "true"
+ },
+ "author": "max ogden",
+ "license": "BSD",
+ "bugs": {
+ "url": "https://github.com/maxogden/javascript-for-cats/issues"
+ },
+ "homepage": "https://github.com/maxogden/javascript-for-cats",
+ "dependencies": {
+ "marked": "^0.3.2",
+ "mustache": "^1.0.0"
+ },
+ "devDependencies": {
+ "gh-pages-deploy": "^0.1.1"
+ }
+}
View
@@ -0,0 +1,7 @@
+var fs = require('fs')
+var marked = require('marked')
+var mustache = require('mustache')
+
+var template = fs.readFileSync('./index.mustache').toString()
+var readme = fs.readFileSync('./README.md').toString()
+fs.writeFileSync('./index.html', mustache.render(template, {content: marked(readme)}))

0 comments on commit f7b9be6

Please sign in to comment.