Skip to content

Commit

Permalink
Apply code block css to javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gstamatelat committed Jun 27, 2018
1 parent 0542a4a commit 9c6def1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ wrapper {
gradleVersion = '4.4'
}

javadoc {
doLast {
new File(destinationDir, 'stylesheet.css').append(file('src/javadoc/stylesheet.css').text)
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
Expand Down
5 changes: 5 additions & 0 deletions src/javadoc/stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Code blocks */
.block pre {
background-color: #F6F8FA !important;
padding: 0 1rem !important;
}

0 comments on commit 9c6def1

Please sign in to comment.