Skip to content

Commit df4bffe

Browse files
committed
add neo4j labs logO
1 parent f2bdc16 commit df4bffe

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

doc/build.gradle

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ buildscript {
2626
plugins {
2727
id 'base'
2828
id 'org.neo4j.doc.build.saxon' version '1.0-alpha02'
29-
id 'org.neo4j.doc.build.docbook' version '1.0-alpha03'
29+
id 'org.neo4j.doc.build.docbook' version '1.0-alpha12'
3030
}
3131

3232
if (!project.hasProperty('streamsVersion')) { ext.streamsVersion = '3.5.6.0' }
@@ -211,6 +211,27 @@ html {
211211
'css/extra.css'
212212
].join(" ")
213213

214+
def javascript =
215+
'''\
216+
217+
$(document).ready(function() {
218+
CodeMirror.colorize();
219+
tabTheSource($('body'));
220+
var $header = $('header').first();
221+
$header.prepend(
222+
$('<a href="" id="logo"><img src="https://s3.amazonaws.com/dev.assets.neo4j.com/wp-content/uploads/20190802073913/labs-logo6.png" alt="Neo4j Labs Logo"/></a>')
223+
);
224+
var sidebar = $('<div id=\"sidebar-wrapper\"/>');
225+
$.get('toc.html', function (d){
226+
$(d).appendTo(sidebar);
227+
highlightToc();
228+
highlightLibraryHeader();
229+
});
230+
sidebar.insertAfter($('header').first());
231+
});
232+
233+
'''
234+
214235
stylesheet "classpath:xsl/chunk-from-toc/xhtml/chunktoc.xsl"
215236
input sourceFile
216237

@@ -230,6 +251,7 @@ html {
230251
"html.stylesheet": styles,
231252
"chunk.toc": "${contentMap}",
232253
"current.docid": "$docId",
254+
"neo.embedded.javascript": javascript
233255
])
234256
doLast {
235257
copy {

doc/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip

doc/settings.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
pluginRepositories {
2-
maven {
3-
url "https://neo.jfrog.io/neo/docs-maven" // System.env.ARTIFACTORY_URI
1+
pluginManagement {
2+
repositories {
3+
// mavenLocal()
4+
maven {
5+
url "https://neo.jfrog.io/neo/docs-maven" // System.env.ARTIFACTORY_URI
46
/*
57
credentials {
68
username System.env.ARTIFACTORY_USERNAME
79
password System.env.ARTIFACTORY_PASSWORD
810
}
911
*/
12+
}
13+
gradlePluginPortal()
14+
1015
}
11-
gradlePluginPortal()
12-
}
16+
}

0 commit comments

Comments
 (0)