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 zcma)5ORG{*6yAc+AmZLTC;}mZBAV2oKTs&*K)KECK$?g-5Ct77+Cv0i;R8h_5fLv0 zJ_b5a2dQMD-h84?ZxG^Z(k!Tm&Tg%9^{{bb`|zFpopbiL_FC)PhY%55$43P2cgcM* zA-4!24*|!3I{EZdclDHl@Si zICZ<-XF8qk39DgwEEfAXolfawGT|{EkGX6%OACd90E@*EW;HDL`Fxpfw@W*n4v%)b z%_R~EnoK4I==J(HtcK;qV)0_L+0fN$#bdc#a{Ydv4u?Y?qtS>)qtSC#!}3z8)LpOF zf_|}BaJ^oS4h91r7$+PKXHcWjXuvT-#9}eo^*)!&T^!Owj+d!a>O7y%_q1BA1Y_WU zygtn5b760+VSoQ!9yr%(wLeCq@eyh>nat~L-5k^`#K8L5{8@dqTK($x`(McA^6Sv^ z&%2&6Gan1|9IM-MzOU$&TCKkE1qP%0ul-xC*3Wc0-G=l<<#PEw_6_r8Ka8VBqcLZ_$2j|X%)Qxc{;gChzv}h+Z#YYj6$-^w1h{*>-k0FZyLdeQ zYBrmF$6lfa>jZBvK|`HRXB3v67z~DIJE24(*tmN|OeWL4NF-tn27^hf)p{nCN^ip1 nc>tcD2#bK=Z;SYL4FD&KpOK3Q`LxAbSjS`g`~$vI_zV64z;+{# literal 1150 zcmb`EA&-MV5QXQ`CMT(?ZDrm40(_G?bc4R&tGT~$|KKbdful_@6<9nq=#%H>=56y5 zZf^;_EIr)v_#|{C)oW z%ke`YvWVd65y!D1zw04Kc6WH2rc!1LY~4mu-|-x2>Sp4 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://",