change js and css to static resource
This commit is contained in:
parent
115486f30e
commit
d896d18770
|
@ -95,7 +95,7 @@ public interface DocGlobalConstants {
|
|||
|
||||
String TEMPLE_PATH = "../../../../template/";
|
||||
|
||||
String FONT_STYLE = "css.css";
|
||||
String FONT_STYLE = "font.css";
|
||||
|
||||
String HIGH_LIGHT = "highlight.min.js";
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@
|
|||
<meta name="generator" content="smart-doc">
|
||||
<%if(isNotEmpty(projectName)){%><title>${projectName}</title><%}else{%><title>API Reference</title><%}%>
|
||||
<link rel="stylesheet"
|
||||
href="${css_cdn}/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
|
||||
href="font.css">
|
||||
<link rel="stylesheet" href="AllInOne.css?v=${version}"/>
|
||||
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.3.2/styles/${style}.min.css">
|
||||
<style>.literalblock pre, .listingblock pre:not(.highlight), .listingblock pre[class="highlight"], .listingblock pre[class^="highlight "], .listingblock pre.CodeRay, .listingblock pre.prettyprint {
|
||||
<link rel="stylesheet" href="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: ${background}
|
||||
}
|
||||
|
||||
.hljs {
|
||||
padding: 0
|
||||
}</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/2.2.4/jquery.min.js"></script>
|
||||
<script src="highlight.min.js"></script>
|
||||
<script src="jquery.min.js"></script>
|
||||
</head>
|
||||
<body class="book toc2 toc-left">
|
||||
<div id="header"><%if(isNotEmpty(projectName)){%><h1>${projectName}</h1><%}%>
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
<meta name="generator" content="smart-doc">
|
||||
<%if(isNotEmpty(projectName)){%><title>${projectName}</title><%}else{%><title>API Reference</title><%}%>
|
||||
<link rel="stylesheet"
|
||||
href="css.css">
|
||||
href="font.css">
|
||||
<link rel="stylesheet" href="AllInOne.css?v=${version}"/>
|
||||
<%if(isNotEmpty(style)){%> <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.3.2/styles/${style}.min.css"><%}else{%><link rel="stylesheet" href="xt256.min.css"><%}%>
|
||||
<link rel="stylesheet" href="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: ${background}
|
||||
}
|
||||
|
|
|
@ -39,14 +39,14 @@ public class ApiDocTest {
|
|||
config.setDebugEnvUrl("http://127.0.0.1");
|
||||
//config.setTornaDebug(true);
|
||||
|
||||
config.setCreateDebugPage(true);
|
||||
config.setCreateDebugPage(false);
|
||||
config.setAllInOne(true);
|
||||
config.setOutPath("d:\\md3");
|
||||
config.setMd5EncryptedHtmlName(true);
|
||||
//不指定SourcePaths默认加载代码为项目src/main/java下的
|
||||
config.setSourceCodePaths(
|
||||
SourceCodePath.builder().setDesc("本项目代码")
|
||||
.setPath("C:\\Users\\xingzi\\Desktop\\smart-doc-example-cn")
|
||||
.setPath("C:\\Users\\xzli15\\Desktop\\smart-doc-example-cn")
|
||||
|
||||
//SourcePath.path().setPath("F:\\Personal\\project\\smart\\src\\main\\java")
|
||||
//SourcePath.path().setDesc("加载项目外代码").setPath("E:\\ApplicationPower\\ApplicationPower\\Common-util\\src\\main\\java")
|
||||
|
|
Loading…
Reference in New Issue