mirror of https://github.com/apache/nifi.git
NIFI-592:
- Fixing scrollbar issue with pages loaded in an iframe. - Updating build process to tweak the rest api documentation layout that is deployed to the website.
This commit is contained in:
parent
81e40d4348
commit
f0a5c11f1b
|
@ -145,6 +145,22 @@ module.exports = function (grunt) {
|
|||
"</script>\n" +
|
||||
"</head>"
|
||||
}]
|
||||
},
|
||||
moveTearDrop: {
|
||||
src: ['dist/docs/rest-api/index.html'],
|
||||
overwrite: true,
|
||||
replacements: [{
|
||||
from: /<img class="logo" src="images\/bgNifiLogo.png" alt="NiFi Logo"\/>/g,
|
||||
to: '<img class="logo" src="images/bgNifiLogo.png" alt="NiFi Logo" style="float: right;"/>'
|
||||
}]
|
||||
},
|
||||
removeVersion: {
|
||||
src: ['dist/docs/rest-api/index.html'],
|
||||
overwrite: true,
|
||||
replacements: [{
|
||||
from: /<div class="sub-title">.*<\/div>/g,
|
||||
to: '<div class="sub-title">NiFi Rest Api</div>'
|
||||
}]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -184,7 +200,7 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('img', ['newer:copy']);
|
||||
grunt.registerTask('css', ['clean:css', 'compass']);
|
||||
grunt.registerTask('js', ['clean:js', 'concat']);
|
||||
grunt.registerTask('generate-docs', ['clean:generated', 'exec:generateDocs', 'exec:generateRestApiDocs', 'copy:generated', 'replace:addGoogleAnalytics']);
|
||||
grunt.registerTask('generate-docs', ['clean:generated', 'exec:generateDocs', 'exec:generateRestApiDocs', 'copy:generated', 'replace:addGoogleAnalytics', 'replace:moveTearDrop', 'replace:removeVersion']);
|
||||
grunt.registerTask('default', ['clean', 'assemble', 'css', 'js', 'img', 'generate-docs', 'copy:dist']);
|
||||
grunt.registerTask('dev', ['default', 'watch']);
|
||||
};
|
||||
|
|
|
@ -187,6 +187,8 @@ div.external-guide {
|
|||
div.external-guide iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-width: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue