From 9c6def1e1817b824dee98f5144e437043e09031b Mon Sep 17 00:00:00 2001 From: Giorgos Stamatelatos Date: Wed, 27 Jun 2018 19:28:19 +0300 Subject: [PATCH] Apply code block css to javadoc --- build.gradle | 6 ++++++ src/javadoc/stylesheet.css | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 src/javadoc/stylesheet.css diff --git a/build.gradle b/build.gradle index 5e5f49c..5497937 100644 --- a/build.gradle +++ b/build.gradle @@ -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 diff --git a/src/javadoc/stylesheet.css b/src/javadoc/stylesheet.css new file mode 100644 index 0000000..0549b63 --- /dev/null +++ b/src/javadoc/stylesheet.css @@ -0,0 +1,5 @@ +/* Code blocks */ +.block pre { + background-color: #F6F8FA !important; + padding: 0 1rem !important; +}