From dba0b104ab017e6423162bb58c19b26f043f2921 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 13 Sep 2017 15:21:31 +0000 Subject: [PATCH] Added docs to GH Pages --- Gruntfile.js | 30 ++++++++++++++++++++++-------- docs/favicon.ico | Bin 1150 -> 1082 bytes docs/jsdoc.conf.json | 2 +- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index fb30e017..fbb650e2 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -111,7 +111,7 @@ module.exports = function (grunt) { prod: ["build/prod/*"], test: ["build/test/*"], node: ["build/node/*"], - docs: ["docs/*", "!docs/*.conf.json", "!docs/*.ico"], + docs: ["docs/*", "!docs/*.conf.json", "!docs/*.ico", "!docs/*.png"], }, eslint: { options: { @@ -319,15 +319,29 @@ module.exports = function (grunt) { copy: { ghPages: { options: { - process: function (content) { + process: function (content, srcpath) { // Add Google Analytics code to index.html - content = content.replace("", - grunt.file.read("src/web/static/ga.html") + ""); - return grunt.template.process(content); - } + if (srcpath.indexOf("index.html") >= 0) { + content = content.replace("", + grunt.file.read("src/web/static/ga.html") + ""); + return grunt.template.process(content, srcpath); + } else { + return content; + } + }, + noProcess: ["**", "!**/*.html"] }, - src: "build/prod/index.html", - dest: "build/prod/index.html" + files: [ + { + src: "build/prod/index.html", + dest: "build/prod/index.html" + }, + { + expand: true, + src: "docs/**", + dest: "build/prod/" + } + ] } }, chmod: { diff --git a/docs/favicon.ico b/docs/favicon.ico index d67a4081f69afa22c2aa9b4427f92ba5db0ef771..fa2deb032ee0845745e495fb77de2fab56e2871a 100755 GIT binary patch literal 1082 zcmZQzU}Ruq5a0*V3JfYN3=Con3=A3!3=9Gc3=DD%5OD?q;Q#;s1XLiTeSCZn93)mj zL4o~*2^0ML`uhAjIy$`D+S_lBoq6--EndBP^{M3KWNDBYAUt*I)MbwzJ%Zbf&3>3WK=htHdw%ESg9~uUmb?Vfqe=t2rG&o#A zaTOI6#e4GP$&+Y$!EV53|KY=jzb{y@;3z10Z{50eCMeuM>XFSs5C7ArPlMe8iifRR zw?1`tc9sD7pMimaf8V}+kDy@ywi{#)x_*%R4<0=DciXmYKlbk3`!h2$Q_tPq9clyv zLuY4a%IejtyQfc|UVHiS<+q@)1nB|!bJeO# zVL}Y~`T5F|Cr_^I@9&>eSy>t8m494i{(E0i?3;u&JOfQHA=?7tu8Md~z|Izip_#k~Ctl`}Nw;Nr5P*Bi+TxP)Z zg7oj-|KL9Z0|VF`klp+f`N8go>BnXUx_*$|APmwE!Z7z^(+l&1N9l?GFbpyeao!<{U91-21p+WgY^}%!y?XUO$nPsxuKW+eAhWRPK^CKyevsWD46+}DiLoDMH%K20!}NmmgD^fn z!1TlX4l)CzABIWM4>JR%7e?c=9~6#<4<81{A4oq4BkLoi7o;DALH>YYkRBKY$)V#P i@(c_Q_!$@uurn|mV202S*cli;@MB_-I1Gd2L3#mvg9!To diff --git a/docs/jsdoc.conf.json b/docs/jsdoc.conf.json index 3c247edc..36e9611b 100755 --- a/docs/jsdoc.conf.json +++ b/docs/jsdoc.conf.json @@ -19,7 +19,7 @@ "outputSourcePath": true, "dateFormat": "ddd MMM Do YYYY", "sort": false, - "logoFile": "../build/prod/images/cyberchef-32x32.png", + "logoFile": "cyberchef-32x32.png", "cleverLinks": false, "monospaceLinks": false, "protocol": "html://",