press html document templates.

This commit is contained in:
shalousun 2021-09-04 23:30:11 +08:00
parent 20a6b14e5d
commit 445ac56958
7 changed files with 21 additions and 1208 deletions

View File

@ -45,7 +45,7 @@
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetl</artifactId>
<version>3.5.1.RELEASE</version>
<version>3.6.1.RELEASE</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.qdox</groupId>
@ -71,12 +71,12 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
<version>2.8.8</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<version>1.7.32</version>
</dependency>
</dependencies>
<build>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -60,9 +60,9 @@
<div class="sect1"><h2 id="_dict_list"><a class="anchor" href="#_dict_list"></a><a class="link" href="#_dict_list">${dictListOrder}.&nbsp;${dictListTitle}</a>
</h2>
<div class="sectionbody"><%for(dict in dictList){%>
<div class="sect2"><h3 id="_${dictListOrder}_${dict.order}_${dict.title}"><a class="anchor"
href="#_${dictListOrder}_${dict.order}_${dict.title}"></a><a
class="link" href="#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}.&nbsp;${dict.title}</a>
<div class="sect2"><h3 id="_${dictListOrder}_${dict.order}_${dict.title}">
<a class="anchor" href="#_${dictListOrder}_${dict.order}_${dict.title}"></a>
<a class="link" href="#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}.&nbsp;${dict.title}</a>
</h3>
<table class="tableblock frame-all grid-all spread">
<colgroup>
@ -81,8 +81,7 @@
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${dataDict.value}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${dataDict.type}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(dataDict.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(dataDict.desc)}</p></td>
</tr>
<%}%>
</tbody>

View File

@ -85,8 +85,7 @@
<tbody><%for(error in errorCodeList){%>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${error.value}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(error.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(error.desc)}</p></td>
</tr>
<%}%>
</tbody>

View File

@ -25,8 +25,7 @@
<div id="toctitle"><span>API Reference</span></div>
<ul id="accordion" class="sectlevel1"><%for(api in apiDocList){%><% var myStyle = "display: none"; var liClass =
""; if(api.order==order){ myStyle= "display: block"; liClass = "open"; }%><%if(apiLP.first){%>
<li class="${liClass}"><a class="dd"
href="${alias}.html#header">${api.order}.&nbsp;${htmlEscape(api.desc)}</a>
<li class="${liClass}"><a class="dd" href="${alias}.html#header">${api.order}.&nbsp;${htmlEscape(api.desc)}</a>
<ul class="sectlevel2" style="${myStyle}"><%for(doc in api.list){%>
<li><%if(doc.deprecated){%><a href="${alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}.&nbsp;<span
class="line-through">${htmlEscape(doc.desc)}</span></a><%}else{%><a
@ -63,11 +62,11 @@
<div class="sect1"><h2 id="_${desc}"><a class="anchor" href="#_${desc}"></a><a class="link" href="#_${desc}">${order}.&nbsp;${htmlEscape(desc)}</a>
</h2>
<div class="sectionbody"><%for(doc in list){%>
<div class="sect2"><h3 id="_${order}_${doc.order}_${doc.desc}"><a class="anchor"
href="#_${order}_${doc.order}_${doc.desc}"></a><%if(doc.deprecated){%><a
<div class="sect2"><h3 id="_${order}_${doc.order}_${doc.desc}">
<a class="anchor" href="#_${order}_${doc.order}_${doc.desc}"></a><%if(doc.deprecated){%><a
class="link" href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}.&nbsp;<span
class="line-through">${htmlEscape(doc.desc)}</span></a><%}else{%><a class="link"
href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}.&nbsp;${htmlEscape(doc.desc)}</a><%}%>
class="line-through">${htmlEscape(doc.desc)}</span></a><%}else{%>
<a class="link" href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}.&nbsp;${htmlEscape(doc.desc)}</a><%}%>
</h3>
<div class="paragraph"><p><strong>URL:</strong><a href="${doc.url}" class="bare">&nbsp;${doc.url}</a>
</p></div>
@ -100,8 +99,7 @@
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${header.name}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${header.type}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(header.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(header.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${header.required}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${header.since}</p></td>
</tr>
@ -131,8 +129,7 @@
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.field}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.type}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.required}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.version}</p></td>
</tr>
@ -162,8 +159,7 @@
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.field}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.type}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.required}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.version}</p></td>
</tr>
@ -193,8 +189,7 @@
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.field}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.type}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.required}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.version}</p></td>
</tr>
@ -229,8 +224,7 @@
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.field}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.type}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">
${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${htmlEscape(param.desc)}</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">${param.version}</p></td>
</tr>
<%}%>