Permalink
Browse files

Restructing for new github pages setup

  • Loading branch information...
1 parent e044b4b commit b3d2e7a9ac975173aabb6617f7214d517cb0c3ee @balupton balupton committed Nov 7, 2013
View
@@ -68,6 +68,7 @@ Tested and working against:
<!-- /INSTALL -->
+
### Direct
- Use: `window.queryEngine` or `window.QueryEngine` whichever you prefer
- Install: http://bevry.github.io/query-engine/out/lib/query-engine.js
View
@@ -1,2 +1,11 @@
module.exports =
- prompts: false # REQUIRED!!! Don't ask for TOS on traivs
+ prompts: false # REQUIRED!!! Don't ask for TOS on traivs
+ templateData:
+ site:
+ url: 'http://bevry.github.io/query-engine/'
+ package: require('./package.json')
+ environments:
+ development:
+ templateData:
+ site:
+ url: '/'
View
@@ -49,14 +49,18 @@
"type": "git",
"url": "http://github.com/bevry/query-engine.git"
},
- "dependencies": {},
+ "dependencies": {
+ "docpad-plugin-cleanurls": "~2.5.1"
+ },
"peerDependencies": {},
"devDependencies": {
"exoskeleton": "~0.5.1",
"backbone": "~1.1.0",
"underscore": "~1.5.2",
"coffee-script": "~1.6.2",
"docpad": "~6.54.5",
+ "docpad-plugin-ghpages": "~2.4.0",
+ "docpad-plugin-eco": "~2.0.2",
"docpad-plugin-coffeescript": "~2.2.3",
"joe": "~1.3.2",
"joe-reporter-console": "~1.2.1",
@@ -70,4 +74,4 @@
"test": "node ./out/test/everything-test.js"
},
"main": "./out/lib/query-engine.js"
-}
+}
@@ -57,15 +57,15 @@ <h2>Result:</h2>
<!-- Scripts -->
- <script src="../vendor/coffeescript.js"></script>
- <script src="../vendor/jquery.js"></script>
- <script src="../vendor/underscore.js"></script>
- <script src="../vendor/backbone.js"></script>
- <script src="../vendor/js2coffee.js"></script>
- <script src="../vendor/ace/ace.js"></script>
- <script src="../vendor/ace/mode-coffee.js"></script>
- <script src="../lib/query-engine.js"></script>
- <script src="../demo/code.js"></script>
+ <script src="<%- @site.url %>vendor/coffeescript.js"></script>
+ <script src="<%- @site.url %>vendor/jquery.js"></script>
+ <script src="<%- @site.url %>vendor/underscore.js"></script>
+ <script src="<%- @site.url %>vendor/backbone.js"></script>
+ <script src="<%- @site.url %>vendor/js2coffee.js"></script>
+ <script src="<%- @site.url %>vendor/ace/ace.js"></script>
+ <script src="<%- @site.url %>vendor/ace/mode-coffee.js"></script>
+ <script src="<%- @site.url %>lib/query-engine.js"></script>
+ <script src="<%- @site.url %>demo/code.js"></script>
</body>
</html>
@@ -40,20 +40,20 @@
<!-- Header -->
<div class="header">
- <h1><a href="https://github.com/bevry/query-engine">Query Engine</a></h1>
+ <h1><a href="https://github.com/bevry/query-engine">Query Engine v<%= @package.version %></a></h1>
<p>Query-Engine is a <a href="http://www.mongodb.org/display/DOCS/Advanced+Queries">NoSQL</a> and <a href="http://www.mongodb.org/">MongoDb</a> compliant query engine. It can run on the server-side with <a href="http://nodejs.org/">Node.js</a>, or on the client-side within web browsers.</p>
</div>
<p>
- <a href="code.html">code demo</a>
+ <a href="<%- @site.url %>demo/code.html">code demo</a>
</p>
<p>
- <a href="search.html">search demo</a>
+ <a href="<%- @site.url %>demo/search.html">search demo</a>
</p>
<p>
- <a href="visual-search.html">visual search demo</a>
+ <a href="<%- @site.url %>demo/visual-search.html">visual search demo</a>
</p>
</body>
</html>
@@ -64,15 +64,15 @@ <h2>Result:</h2>
</div>
<!-- Scripts -->
- <script src="../vendor/coffeescript.js"></script>
- <script src="../vendor/jquery.js"></script>
- <script src="../vendor/underscore.js"></script>
- <script src="../vendor/backbone.js"></script>
- <script src="../vendor/js2coffee.js"></script>
- <script src="../vendor/ace/ace.js"></script>
- <script src="../vendor/ace/mode-coffee.js"></script>
- <script src="../lib/query-engine.js"></script>
- <script src="../demo/search.js"></script>
+ <script src="<%- @site.url %>vendor/coffeescript.js"></script>
+ <script src="<%- @site.url %>vendor/jquery.js"></script>
+ <script src="<%- @site.url %>vendor/underscore.js"></script>
+ <script src="<%- @site.url %>vendor/backbone.js"></script>
+ <script src="<%- @site.url %>vendor/js2coffee.js"></script>
+ <script src="<%- @site.url %>vendor/ace/ace.js"></script>
+ <script src="<%- @site.url %>vendor/ace/mode-coffee.js"></script>
+ <script src="<%- @site.url %>lib/query-engine.js"></script>
+ <script src="<%- @site.url %>demo/search.js"></script>
</body>
</html>
@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Stylesheets-->
- <link rel="stylesheet" href="../vendor/visualsearch/visualsearch-datauri.css" />
+ <link rel="stylesheet" href="<%- @site.url %>vendor/visualsearch/visualsearch-datauri.css" />
<!-- Information -->
<title>Query-Engine Visual Search Demo</title>
@@ -69,16 +69,16 @@ <h2>Result:</h2>
</div>
<!-- Scripts -->
- <script src="../vendor/coffeescript.js"></script>
- <script src="../vendor/visualsearch/dependencies.js"></script>
- <script src="../vendor/visualsearch/visualsearch.js"></script>
- <script src="../vendor/underscore.js"></script>
- <script src="../vendor/backbone.js"></script>
- <script src="../vendor/js2coffee.js"></script>
- <script src="../vendor/ace/ace.js"></script>
- <script src="../vendor/ace/mode-coffee.js"></script>
- <script src="../lib/query-engine.js"></script>
- <script src="../demo/visual-search.js"></script>
+ <script src="<%- @site.url %>vendor/coffeescript.js"></script>
+ <script src="<%- @site.url %>vendor/visualsearch/dependencies.js"></script>
+ <script src="<%- @site.url %>vendor/visualsearch/visualsearch.js"></script>
+ <script src="<%- @site.url %>vendor/underscore.js"></script>
+ <script src="<%- @site.url %>vendor/backbone.js"></script>
+ <script src="<%- @site.url %>vendor/js2coffee.js"></script>
+ <script src="<%- @site.url %>vendor/ace/ace.js"></script>
+ <script src="<%- @site.url %>vendor/ace/mode-coffee.js"></script>
+ <script src="<%- @site.url %>lib/query-engine.js"></script>
+ <script src="<%- @site.url %>demo/visual-search.js"></script>
</body>
</html>
@@ -1,25 +1,25 @@
<html>
<head>
<!-- Query Engine -->
- <script src="../vendor/underscore.js"></script>
- <script src="../vendor/backbone.js"></script>
- <script src="../lib/query-engine.js"></script>
+ <script src="<%- @site.url %>vendor/underscore.js"></script>
+ <script src="<%- @site.url %>vendor/backbone.js"></script>
+ <script src="<%- @site.url %>lib/query-engine.js"></script>
<!-- Joe -->
- <script src="../vendor/chai.js"></script>
+ <script src="<%- @site.url %>vendor/chai.js"></script>
<script>this.assert = this.chai.assert</script>
- <script src="../vendor/types.js"></script>
- <script src="../vendor/flow.js"></script>
- <script src="../vendor/joe/joe.js"></script>
- <script src="../vendor/joe/reporters/console.js"></script>
- <script src="../vendor/joe/reporters/list.js"></script>
+ <script src="<%- @site.url %>vendor/types.js"></script>
+ <script src="<%- @site.url %>vendor/flow.js"></script>
+ <script src="<%- @site.url %>vendor/joe/joe.js"></script>
+ <script src="<%- @site.url %>vendor/joe/reporters/console.js"></script>
+ <script src="<%- @site.url %>vendor/joe/reporters/list.js"></script>
<script>this.joe.setReporter(new this.joe.ListReporter());</script>
<!-- Tests -->
- <script src="../test/live-test.js"></script>
- <script src="../test/misc-test.js"></script>
- <script src="../test/queries-test.js"></script>
- <script src="../test/sort-test.js"></script>
+ <script src="<%- @site.url %>test/live-test.js"></script>
+ <script src="<%- @site.url %>test/misc-test.js"></script>
+ <script src="<%- @site.url %>test/queries-test.js"></script>
+ <script src="<%- @site.url %>test/sort-test.js"></script>
</head>
<body>
<p>open your developer console</p>

0 comments on commit b3d2e7a

Please sign in to comment.