diff --git a/Gruntfile.js b/Gruntfile.js index 3782698dbe..ed99cbdea1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -13,13 +13,6 @@ * served from the /reference/ folder of the p5js * website (https://github.com/processing/p5.js-website). * - * grunt yui:dev - This will build the inline documentation but linking to - * remote JS/CSS and assets so pages look correct in local - * testing. The generated documentation is assumed - * to be served from a development web server running - * at the root of the repository. "grunt yui" should - * be run to build docs ready for production. - * * grunt test - This rebuilds the source and runs the automated tests on * both the minified and unminified code. If you need to debug * a test suite in a browser, `grunt test --keepalive` will @@ -64,6 +57,8 @@ function getYuidocOptions() { } }; + // note dev is no longer used, prod is used to build both testing and production ready docs + var o = { prod: JSON.parse(JSON.stringify(BASE_YUIDOC_OPTIONS)), dev: JSON.parse(JSON.stringify(BASE_YUIDOC_OPTIONS)) @@ -212,7 +207,7 @@ module.exports = function(grunt) { run: true, log: true, logErrors: true, - timeout: 5000 + timeout: 100000 } } }, @@ -358,11 +353,10 @@ module.exports = function(grunt) { // Create the multitasks. grunt.registerTask('build', ['browserify', 'uglify', 'requirejs']); - grunt.registerTask('test', ['jshint', 'jscs', 'build', 'yuidoc:dev', 'connect', 'mocha', 'mochaTest']); + grunt.registerTask('test', ['jshint', 'jscs', 'yuidoc:prod', 'build', 'connect', 'mocha', 'mochaTest']); grunt.registerTask('test:nobuild', ['jshint:test', 'jscs:test', 'connect', 'mocha']); grunt.registerTask('yui', ['yuidoc:prod', 'minjson']); - grunt.registerTask('yui:dev', ['yuidoc:dev', 'minjson']); - grunt.registerTask('yui:test', ['yuidoc:dev', 'connect', 'mocha:yui']); + grunt.registerTask('yui:test', ['yuidoc:prod', 'connect', 'mocha:yui']); grunt.registerTask('default', ['test']); grunt.registerTask('saucetest', ['connect', 'saucelabs-mocha']); }; diff --git a/docs/preprocessor.js b/docs/preprocessor.js index 80e7134052..cc3a8e343d 100644 --- a/docs/preprocessor.js +++ b/docs/preprocessor.js @@ -143,7 +143,7 @@ module.exports.register = function(Handlebars, options) { // } else { // return '/'+this.language; // } - return window.location.pathname+' hi' + return window.location.pathname }); }; diff --git a/docs/yuidoc-p5-theme/layouts/main.handlebars b/docs/yuidoc-p5-theme/layouts/main.handlebars index ef16db28ed..47f8a00e67 100755 --- a/docs/yuidoc-p5-theme/layouts/main.handlebars +++ b/docs/yuidoc-p5-theme/layouts/main.handlebars @@ -6,23 +6,23 @@
Processing Intuition times JavaScript power
@@ -57,7 +57,7 @@-