MPXDOC-80 : Support global theme
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@280417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
b55787de94
commit
4de54a1135
4 files changed
+45
-4
No files matched your search
@@ -124,7 +124,22 @@
|
||||
|
||||
<j:set var="themeUrl" value="${maven.xdoc.theme.url}"/>
|
||||
<util:file var="projectCssFile" name="${maven.docs.src}/style/project.css"/>
|
||||
|
||||
|
||||
<j:set var="themefile" value="${maven.xdoc.theme.file}"/>
|
||||
<util:replace var="themeFile" oldChar="\" newChar="/" value="${themefile}"/>
|
||||
<j:if test="${!empty(themefile)}">
|
||||
<j:new className="java.lang.String" var="cssFile">
|
||||
<j:arg value="${themefile}" type="java.lang.String"/>
|
||||
</j:new>
|
||||
<j:invoke var="index" on="${cssFile}" method="lastIndexOf">
|
||||
<j:arg value="/" type="java.lang.String"/>
|
||||
</j:invoke>
|
||||
<j:invoke var="cssFileName" on="${cssFile}" method="substring">
|
||||
<j:arg value="${index}"/>
|
||||
</j:invoke>
|
||||
<util:file var="customCssFile" name="${maven.docs.dest}/style${cssFileName}"/>
|
||||
</j:if>
|
||||
|
||||
<style type="text/css" media="all"><![CDATA[
|
||||
@import url("${relativePathForLocale}style/maven-base.css");
|
||||
]]>
|
||||
@@ -137,6 +152,9 @@
|
||||
<j:if test="${projectCssFile.exists()}"><![CDATA[
|
||||
@import url("${relativePathForLocale}style/project.css");
|
||||
]]></j:if>
|
||||
<j:if test="${customCssFile.exists()}"><![CDATA[
|
||||
@import url("${relativePathForLocale}style${cssFileName}");
|
||||
]]></j:if>
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="${relativePathForLocale}style/print.css" media="print"/>
|
||||
|
||||
Reference in new issue
Block a user