You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ch...@apache.org on 2016/01/25 19:19:33 UTC

camel git commit: Added a link checking set to the gitbook generated docs. Once we get all the links fixed up, we should have it fail the build if links are bad.

Repository: camel
Updated Branches:
  refs/heads/master f6fea27ac -> fcb163d4a


Added a link checking set to the gitbook generated docs. Once we get all the links fixed up, we should have it fail the build if links are bad.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/fcb163d4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fcb163d4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fcb163d4

Branch: refs/heads/master
Commit: fcb163d4a40d58668fa3416491b7dc29d2d50111
Parents: f6fea27
Author: Hiram Chirino <hi...@hiramchirino.com>
Authored: Mon Jan 25 13:19:26 2016 -0500
Committer: Hiram Chirino <hi...@hiramchirino.com>
Committed: Mon Jan 25 13:19:26 2016 -0500

----------------------------------------------------------------------
 camel-website/Gruntfile.js | 46 +++++++++++++++++++++++++++++++++++++++++
 camel-website/package.json |  6 +++++-
 camel-website/pom.xml      |  8 +++++++
 3 files changed, 59 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fcb163d4/camel-website/Gruntfile.js
----------------------------------------------------------------------
diff --git a/camel-website/Gruntfile.js b/camel-website/Gruntfile.js
new file mode 100644
index 0000000..9ba175c
--- /dev/null
+++ b/camel-website/Gruntfile.js
@@ -0,0 +1,46 @@
+module.exports = function(grunt) {
+
+    // Project configuration.
+    grunt.initConfig({
+
+        'http-server': {
+            dev: {
+                root: 'target/classes/user-manual/',
+                port: 8282,
+                host: "0.0.0.0",
+                showDir: false,
+                autoIndex: true,
+                ext: "html",
+                runInBackground: true,
+                logFn: function(req, res, error) { },
+
+
+                // specify a logger function. By default the requests are 
+                // sent to stdout. 
+                // logFn: function(req, res, error) { },
+
+                // Proxies all requests which can't be resolved locally to the given url 
+                // Note this this will disable 'showDir' 
+                // proxy: "http://someurl.com",
+                // Tell grunt task to open the browser 
+                // openBrowser : false
+            }
+
+        },
+        linkChecker: {
+            dev: {
+                site: 'localhost',
+                options: {
+                    initialPort: 8282
+                }
+            }
+        }
+    });
+
+    grunt.loadNpmTasks('grunt-http-server');
+    grunt.loadNpmTasks('grunt-link-checker');
+
+    // Default task(s).
+    grunt.registerTask('default', ['http-server', 'linkChecker']);
+
+};

http://git-wip-us.apache.org/repos/asf/camel/blob/fcb163d4/camel-website/package.json
----------------------------------------------------------------------
diff --git a/camel-website/package.json b/camel-website/package.json
index 2bf96e5..d472ed0 100644
--- a/camel-website/package.json
+++ b/camel-website/package.json
@@ -8,6 +8,10 @@
     "url": "https://github.com/apache/camel"
   },
   "devDependencies": {
-      "gitbook-cli": "~0.3.6"
+    "gitbook-cli": "~0.3.6",
+    "grunt": "^0.4.5",
+    "grunt-cli": "^0.1.13",
+    "grunt-http-server": "^1.13.0",
+    "grunt-link-checker": "^0.1.0"
   }
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/fcb163d4/camel-website/pom.xml
----------------------------------------------------------------------
diff --git a/camel-website/pom.xml b/camel-website/pom.xml
index 7d4ca04..bb82469 100644
--- a/camel-website/pom.xml
+++ b/camel-website/pom.xml
@@ -94,6 +94,14 @@
                                  <arg value="${basedir}/target/classes/user-manual" />
                               </exec>
 
+                              <condition property="grunt.cmd" 
+                                         value="${basedir}/node_modules/.bin/grunt.cmd" 
+                                         else="${basedir}/node_modules/.bin/grunt">
+                                 <os family="windows" />
+                              </condition>
+                              <echo>executing ${grunt.cmd}</echo>
+                              <exec executable="${grunt.cmd}" failonerror="false"/>
+
                            </target>
                         </configuration>
                         <goals>