我正在尝试使用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'
}
预先感谢
在您的customizations.css中您可以添加标题类的背景 - 背景:URL('../资产/images/images.png')no-repeat 0 50%;