mirror of
https://github.com/gchq/CyberChef
synced 2024-12-26 04:23:10 +00:00
Added docs to GH Pages
This commit is contained in:
parent
174cabdc74
commit
dba0b104ab
3 changed files with 23 additions and 9 deletions
20
Gruntfile.js
20
Gruntfile.js
|
@ -111,7 +111,7 @@ module.exports = function (grunt) {
|
||||||
prod: ["build/prod/*"],
|
prod: ["build/prod/*"],
|
||||||
test: ["build/test/*"],
|
test: ["build/test/*"],
|
||||||
node: ["build/node/*"],
|
node: ["build/node/*"],
|
||||||
docs: ["docs/*", "!docs/*.conf.json", "!docs/*.ico"],
|
docs: ["docs/*", "!docs/*.conf.json", "!docs/*.ico", "!docs/*.png"],
|
||||||
},
|
},
|
||||||
eslint: {
|
eslint: {
|
||||||
options: {
|
options: {
|
||||||
|
@ -319,15 +319,29 @@ module.exports = function (grunt) {
|
||||||
copy: {
|
copy: {
|
||||||
ghPages: {
|
ghPages: {
|
||||||
options: {
|
options: {
|
||||||
process: function (content) {
|
process: function (content, srcpath) {
|
||||||
// Add Google Analytics code to index.html
|
// Add Google Analytics code to index.html
|
||||||
|
if (srcpath.indexOf("index.html") >= 0) {
|
||||||
content = content.replace("</body></html>",
|
content = content.replace("</body></html>",
|
||||||
grunt.file.read("src/web/static/ga.html") + "</body></html>");
|
grunt.file.read("src/web/static/ga.html") + "</body></html>");
|
||||||
return grunt.template.process(content);
|
return grunt.template.process(content, srcpath);
|
||||||
|
} else {
|
||||||
|
return content;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
noProcess: ["**", "!**/*.html"]
|
||||||
|
},
|
||||||
|
files: [
|
||||||
|
{
|
||||||
src: "build/prod/index.html",
|
src: "build/prod/index.html",
|
||||||
dest: "build/prod/index.html"
|
dest: "build/prod/index.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
expand: true,
|
||||||
|
src: "docs/**",
|
||||||
|
dest: "build/prod/"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chmod: {
|
chmod: {
|
||||||
|
|
BIN
docs/favicon.ico
BIN
docs/favicon.ico
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -19,7 +19,7 @@
|
||||||
"outputSourcePath": true,
|
"outputSourcePath": true,
|
||||||
"dateFormat": "ddd MMM Do YYYY",
|
"dateFormat": "ddd MMM Do YYYY",
|
||||||
"sort": false,
|
"sort": false,
|
||||||
"logoFile": "../build/prod/images/cyberchef-32x32.png",
|
"logoFile": "cyberchef-32x32.png",
|
||||||
"cleverLinks": false,
|
"cleverLinks": false,
|
||||||
"monospaceLinks": false,
|
"monospaceLinks": false,
|
||||||
"protocol": "html://",
|
"protocol": "html://",
|
||||||
|
|
Loading…
Reference in a new issue