我正在尝试使用doclava生成javadoc,需要在javadoc的左上角添加徽标/图像。 我可以设法添加项目名称,但在标识方面苦苦挣扎。
task generateJavadoc(type: Javadoc) {
title = null
ext.assetsDir = new File(projectDir,"/assets")
description "Generate html Javadoc for " + project.name.capitalize()
source = variant.javaCompile.source
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
options.docletpath = configurations.jaxDoclet.files.asType(List)
options.doclet "com.google.doclava.Doclava"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
options.addStringOption('hdf project.name',project.name.capitalize())
options.addStringOption('templatedir',assetsDir.toString())
exclude '**/BuildConfig.java'
exclude '**/R.java'
}
提前致谢
答案 0 :(得分:0)
在customizations.css中,您可以为标题类添加背景 - background:url(' ../ assets / images / image.png')no-repeat 0 50%;