This commit is contained in:
shalousun 2021-08-29 22:54:40 +08:00
parent 390b94b70b
commit 47e132bc2d
2 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class HtmlApiDocBuilder {
IDocBuildTemplate docBuildTemplate = BuildTemplateFactory.getDocBuildTemplate(config.getFramework()); IDocBuildTemplate docBuildTemplate = BuildTemplateFactory.getDocBuildTemplate(config.getFramework());
List<ApiDoc> apiDocList = docBuildTemplate.getApiData(configBuilder); List<ApiDoc> apiDocList = docBuildTemplate.getApiData(configBuilder);
Template indexCssTemplate = BeetlTemplateUtil.getByName(ALL_IN_ONE_CSS); Template indexCssTemplate = BeetlTemplateUtil.getByName(ALL_IN_ONE_CSS);
FileUtil.nioWriteFile(indexCssTemplate.render(), config.getOutPath() + FILE_SEPARATOR + ALL_IN_ONE_CSS); FileUtil.nioWriteFile(indexCssTemplate.render(), config.getOutPath() + FILE_SEPARATOR + ALL_IN_ONE_CSS_OUT);
copyJarFile("js/"+HIGH_LIGHT_JS, config.getOutPath() + FILE_SEPARATOR + HIGH_LIGHT_JS); copyJarFile("js/"+HIGH_LIGHT_JS, config.getOutPath() + FILE_SEPARATOR + HIGH_LIGHT_JS);
copyJarFile("css/"+FONT_STYLE, config.getOutPath() + FILE_SEPARATOR + FONT_STYLE); copyJarFile("css/"+FONT_STYLE, config.getOutPath() + FILE_SEPARATOR + FONT_STYLE);
copyJarFile("js/"+JQUERY, config.getOutPath() + FILE_SEPARATOR + JQUERY); copyJarFile("js/"+JQUERY, config.getOutPath() + FILE_SEPARATOR + JQUERY);

View File

@ -93,6 +93,8 @@ public interface DocGlobalConstants {
String ALL_IN_ONE_CSS = "css/AllInOne.css"; String ALL_IN_ONE_CSS = "css/AllInOne.css";
String ALL_IN_ONE_CSS_OUT = "AllInOne.css";
String FONT_STYLE = "font.css"; String FONT_STYLE = "font.css";
String HIGH_LIGHT_JS = "highlight.min.js"; String HIGH_LIGHT_JS = "highlight.min.js";