update html template
This commit is contained in:
parent
1a10a5cbb6
commit
293ca2a81d
|
@ -29,50 +29,52 @@
|
|||
<%for(api in apiDocList){%>
|
||||
<%if(apiLP.first){%>
|
||||
<li><a class="dd" href="api.html#header">${api.order}. ${api.desc}</a>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%><a href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%><a href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}else{%>
|
||||
<li>
|
||||
<a class="dd" href="${api.alias}.html#header">${api.order}. ${api.desc}</a>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%>
|
||||
<a href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
|
||||
<li><a href="error.html#_error_code_list">${apiDocList.~size+1}.${errorListTitle}</a></li>
|
||||
<%}%><%if(isNotEmpty(dictList)){%>
|
||||
<li class="open"><a class="dd" href="dict.html#_dict_list">${dictListOrder}. ${dictListTitle}</a>
|
||||
<ul class="sectlevel2" style="display: block"><%for(dict in dictList){%>
|
||||
<li><a href="dict.html#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}. ${dict.title}</a>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}else{%>
|
||||
<li>
|
||||
<a class="dd" href="${api.alias}.html#header">${api.order}. ${api.desc}</a>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%>
|
||||
<a href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
|
||||
<li><a href="error.html#_error_code_list">${apiDocList.~size+1}.${errorListTitle}</a></li>
|
||||
<%}%><%if(isNotEmpty(dictList)){%>
|
||||
<li class="open"><a class="dd" href="dict.html#_dict_list">${dictListOrder}. ${dictListTitle}</a>
|
||||
<ul class="sectlevel2" style="display: block"><%for(dict in dictList){%>
|
||||
<li><a href="dict.html#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}. ${dict.title}</a>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<%if(isNotEmpty(dictList)){%>
|
||||
<div class="sect1"><h2 id="_dict_list"><a class="anchor" href="#_dict_list"></a><a class="link" href="#_dict_list">${dictListOrder}. ${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}. ${dict.title}</a>
|
||||
<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}. ${dict.title}</a>
|
||||
</h3>
|
||||
<table class="tableblock frame-all grid-all spread">
|
||||
<colgroup>
|
||||
|
@ -104,7 +106,8 @@
|
|||
<footer class="page-footer"><span class="copyright">Generated by smart-doc at 2020-12-15 00:22:14</span><span
|
||||
class="footer-modification">Suggestions,contact,support and error reporting on<a
|
||||
href="https://gitee.com/smart-doc-team/smart-doc" target="_blank"> Gitee</a> or<a
|
||||
href="https://github.com/smart-doc-group/smart-doc.git" target="_blank"> Github</a></span></footer>
|
||||
href="https://github.com/smart-doc-group/smart-doc.git" target="_blank"> Github</a></span>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
|
|
|
@ -41,56 +41,69 @@
|
|||
</li>
|
||||
<%}else{%>
|
||||
<li><a class="dd" href="${api.alias}.html#header">${api.order}. ${api.desc}</a>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%>
|
||||
<a href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
|
||||
<li class="open"><a href="error.html#_error_code_list">${apiDocList.~size+1}.${errorListTitle}</a>
|
||||
</li>
|
||||
<%}%><%if(isNotEmpty(dictList)){%>
|
||||
<li><a class="dd" href="dict.html#_dict_list">${dictListOrder}. ${dictListTitle}</a>
|
||||
<ul class="sectlevel2"><%for(dict in dictList){%>
|
||||
<li><a href="dict.html#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}. ${dict.title}</a>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%>
|
||||
<a href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
|
||||
<li class="open"><a href="error.html#header">${apiDocList.~size+1}.${errorListTitle}</a>
|
||||
<ul class="sectlevel2" style="display: block">
|
||||
<li><a href="dict.html#_${apiDocList.~size+1}_1_${errorListTitle}">${apiDocList.~size+1}.1. ${errorListTitle}</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%if(isNotEmpty(dictList)){%>
|
||||
<li><a class="dd" href="dict.html#_dict_list">${dictListOrder}. ${dictListTitle}</a>
|
||||
<ul class="sectlevel2"><%for(dict in dictList){%>
|
||||
<li><a href="dict.html#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}. ${dict.title}</a>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<%if(isNotEmpty(errorCodeList)){%>
|
||||
<div class="sect1"><h2 id="_error_code_list"><a class="anchor" href="#_error_code_list"></a><a class="link"
|
||||
href="#_error_code_list">${apiDocList.~size+1}. ${errorListTitle}</a>
|
||||
<div class="sect1">
|
||||
<h2 id="_error_code_list">
|
||||
<a class="anchor" href="#_error_code_list"></a>
|
||||
<a class="link" href="#_error_code_list">${apiDocList.~size+1}. ${errorListTitle}</a>
|
||||
</h2>
|
||||
<div class="sectionbody">
|
||||
<table class="tableblock frame-all grid-all spread">
|
||||
<colgroup>
|
||||
<col style="width: 50%;">
|
||||
<col style="width: 50%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tableblock halign-left valign-top">Error code</th>
|
||||
<th class="tableblock halign-left valign-top">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<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">${error.desc}</p></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="sect2">
|
||||
<h3 id="_${apiDocList.~size+1}_1_${errorListTitle}">
|
||||
<a class="anchor" href="#_${apiDocList.~size+1}_1_${errorListTitle}"></a>
|
||||
<a class="link" href="#_${apiDocList.~size+1}_1_${errorListTitle}">${apiDocList.~size+1}.1. ${errorListTitle}</a>
|
||||
</h3>
|
||||
<table class="tableblock frame-all grid-all spread">
|
||||
<colgroup>
|
||||
<col style="width: 50%;">
|
||||
<col style="width: 50%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tableblock halign-left valign-top">Error code</th>
|
||||
<th class="tableblock halign-left valign-top">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<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">${error.desc}</p></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%}%>
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<link rel="stylesheet" href="AllInOne.css?v=${version}"/>
|
||||
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.3.2/styles/xt256.min.css">
|
||||
<style> .literalblock pre, .listingblock pre:not(.highlight), .listingblock pre[class="highlight"], .listingblock pre[class^="highlight "], .listingblock pre.CodeRay, .listingblock pre.prettyprint {
|
||||
background: #000;
|
||||
}
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
padding: 0em;
|
||||
}
|
||||
.hljs {
|
||||
padding: 0em;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.3.2/highlight.min.js"></script>
|
||||
<script src="https://cdn.bootcss.com/jquery/1.12.2/jquery.js"></script>
|
||||
|
@ -28,82 +28,65 @@
|
|||
<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){%>
|
||||
<%
|
||||
var myStyle = "display: none";
|
||||
var liClass = "open";
|
||||
if(api.order==order){
|
||||
myStyle= "display: block";
|
||||
liClass = "";
|
||||
}%>
|
||||
<%if(api.order==order){ %>
|
||||
|
||||
<li class="open">
|
||||
<%}else{%>
|
||||
<li>
|
||||
<%}%>
|
||||
<li class="${liClass}">
|
||||
<a class="dd" href="api.html#header">${api.order}. ${api.desc}</a>
|
||||
<%if(api.order==order){%>
|
||||
<ul class="sectlevel2" style="display: block">
|
||||
<%}else{%>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%}%>
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%><a href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
<ul class="sectlevel2" style="${myStyle}">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%><a href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="api.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}else{%>
|
||||
<%if(api.order==order){%>
|
||||
<li class="open">
|
||||
<%}else{%>
|
||||
<li>
|
||||
<%}%>
|
||||
<a class="dd" href="${api.alias}.html#header">${api.order}. ${api.desc}</a>
|
||||
<%if(api.order==order){%>
|
||||
<ul class="sectlevel2" style="display: block">
|
||||
<%}else{%>
|
||||
<ul class="sectlevel2" style="display: none">
|
||||
<%}%>
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%>
|
||||
<a href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
|
||||
<li><a href="error.html#_error_code_list">${apiDocList.~size+1}.${errorListTitle}</a></li>
|
||||
<%}%><%if(isNotEmpty(dictList)){%>
|
||||
<li><a class="dd" href="dict.html#_dict_list">${dictListOrder}. ${dictListTitle}</a>
|
||||
<ul class="sectlevel2"><%for(dict in dictList){%>
|
||||
<li><a href="dict.html#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}. ${dict.title}</a>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}else{%>
|
||||
<li class="${liClass}">
|
||||
<a class="dd" href="${api.alias}.html#header">${api.order}. ${api.desc}</a>
|
||||
<ul class="sectlevel2" style="${myStyle}">
|
||||
<%for(doc in api.list){%>
|
||||
<li><%if(doc.deprecated){%>
|
||||
<a href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a
|
||||
href="${api.alias}.html#_${api.order}_${doc.order}_${doc.desc}">${api.order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%><%}%><%if(isNotEmpty(errorCodeList)){%>
|
||||
<li><a href="error.html#header">${apiDocList.~size+1}.${errorListTitle}</a></li>
|
||||
<%}%><%if(isNotEmpty(dictList)){%>
|
||||
<li><a class="dd" href="dict.html#header">${dictListOrder}. ${dictListTitle}</a>
|
||||
<ul class="sectlevel2"><%for(dict in dictList){%>
|
||||
<li><a href="dict.html#_${dictListOrder}_${dict.order}_${dict.title}">${dictListOrder}.${dict.order}. ${dict.title}</a>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div class="sect1"><h2 id="_${desc}"><a class="anchor" href="#_${desc}"></a><a class="link" href="#_${desc}">${order}. ${desc}</a>
|
||||
</h2>
|
||||
</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
|
||||
class="link" href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a class="link"
|
||||
href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</h3>
|
||||
class="link" href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}. <span
|
||||
class="line-through">${doc.desc}</span></a><%}else{%><a class="link"
|
||||
href="#_${order}_${doc.order}_${doc.desc}">${order}.${doc.order}. ${doc.desc}</a><%}%>
|
||||
</h3>
|
||||
<div class="paragraph"><p><strong>URL:</strong><a href="${doc.url}" class="bare"> ${doc.url}</a>
|
||||
</p></div>
|
||||
</p></div>
|
||||
<div class="paragraph"><p><strong>Type:</strong> ${doc.type}</p></div>
|
||||
<%if(isNotEmpty(doc.author)){%>
|
||||
<div class="paragraph"><p><strong>Author:</strong> ${doc.author}</p></div>
|
||||
|
@ -277,9 +260,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<footer class="page-footer"><span class="copyright">Generated by smart-doc at 2020-12-15 00:22:14</span><span
|
||||
class="footer-modification">Suggestions,contact,support and error reporting on<a
|
||||
href="https://gitee.com/smart-doc-team/smart-doc" target="_blank"> Gitee</a> or<a
|
||||
href="https://github.com/smart-doc-group/smart-doc.git" target="_blank"> Github</a></span></footer>
|
||||
class="footer-modification">Suggestions,contact,support and error reporting on<a
|
||||
href="https://gitee.com/smart-doc-team/smart-doc" target="_blank"> Gitee</a> or<a
|
||||
href="https://github.com/smart-doc-group/smart-doc.git" target="_blank"> Github</a></span>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
|
|
Loading…
Reference in New Issue