From c37586d596ee4241386c63b2f9b533119bb97869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E5=85=89=EF=BC=9A=E5=9F=8E=E4=B8=AD=E5=9F=8E?= <806783409@qq.com> Date: Wed, 6 Mar 2019 23:39:38 +0800 Subject: [PATCH] =?UTF-8?q?wiki=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upgrade.properties | 8 +- .../wiki/controller/WikiCommonController.java | 2 +- .../src/main/resources/doc-wiki.html | 252 +++++++++++------- 3 files changed, 154 insertions(+), 108 deletions(-) diff --git a/upgrade.properties b/upgrade.properties index 9aebea2e..f39bff95 100644 --- a/upgrade.properties +++ b/upgrade.properties @@ -1,6 +1,6 @@ -# 本文件用于已部署好的系统检测自己是否需要升级使用 +# 鏈枃浠剁敤浜庡凡閮ㄧ讲濂界殑绯荤粺妫娴嬭嚜宸辨槸鍚﹂渶瑕佸崌绾т娇鐢 lastVersion=1.0.1 -upgradeContent=1、增加wiki文档模块;2、dubbo文档支持使用元数据生成参数和返回值;3、框架进行了大的拆分;4、增加升级通知;5、细节优化; -upgradeUrl= -nextStep= +upgradeContent=1銆佸鍔爓iki鏂囨。妯″潡;2銆乨ubbo鏂囨。鏀寔浣跨敤鍏冩暟鎹敓鎴愬弬鏁板拰杩斿洖鍊;3銆佹鏋惰繘琛屼簡澶х殑鎷嗗垎;4銆佸鍔犲崌绾ч氱煡;5銆佺粏鑺備紭鍖; +upgradeUrl=https://gitee.com/zyplayer/zyplayer-doc/releases +nextStep=1銆佹敮鎸佺洿鎺ュ悓姝ュ埌git鐨勬枃妗;2銆佹敮鎸佸井淇℃枃绔犳媺鍙; diff --git a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java index 399aa33e..64fd775b 100644 --- a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java +++ b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java @@ -53,7 +53,7 @@ public class WikiCommonController { DocUserDetails currentUser = DocUserUtil.getCurrentUser(); String path = uploadPath + "/" + DateTime.now().toString("yyyy/MM/dd") + "/"; File newFile = new File(path); - if (!newFile.exists() && !newFile.mkdir()) { + if (!newFile.exists() && !newFile.mkdirs()) { return DocResponseJson.warn("鍒涘缓鏂囦欢澶瑰け璐"); } String simpleUUID = RandomUtil.simpleUUID(); diff --git a/zyplayer-doc-wiki/src/main/resources/doc-wiki.html b/zyplayer-doc-wiki/src/main/resources/doc-wiki.html index 74a2ed28..9b85e49b 100644 --- a/zyplayer-doc-wiki/src/main/resources/doc-wiki.html +++ b/zyplayer-doc-wiki/src/main/resources/doc-wiki.html @@ -12,7 +12,7 @@
- +
鍒涘缓鏂囨。
@@ -22,100 +22,116 @@
- - -
娆㈣繋浣跨敤鍦ㄧ嚎鏂囨。
-
- -
- {{wikiPage.name}} -
- 缂栬緫 - 璁块棶鏉冮檺 -
-
-
- 鍒涘缓鏃堕棿锛歿{wikiPage.createUserName}}銆{{wikiPage.createTime}}銆銆鏈鍚庝慨鏀癸細{{wikiPage.updateUserName}}銆{{wikiPage.updateTime}} -
-
-
+ + + + + + 鎴戠殑璧勬枡 + 閫鍑虹櫥褰 + + + + + +
娆㈣繋浣跨敤鍦ㄧ嚎鏂囨。
+
+ +
+ {{wikiPage.name}}
- - - - - - 涓婁紶闄勪欢 - + 缂栬緫 + 璁块棶鏉冮檺
- - - - - - - - - - -
-
-
-
-
- - - - - - - 鎴愪负绗竴涓禐鍚岃 - {{wikiPage.zanNum}}浜璧炰簡瀹 - 鎴戣禐浜嗗畠 - 鎴戝拰{{wikiPage.zanNum-1}}涓叾浠栦汉璧炰簡瀹 - -
-
-
璇勮鍒楄〃锛
-
-
{{item.createUserName}}锛
{{item.createTime}}
-
銆{{item.content}}
+
+ 鍒涘缓鏃堕棿锛歿{wikiPage.createUserName}}銆{{wikiPage.createTime}}銆銆鏈鍚庝慨鏀癸細{{wikiPage.updateUserName}}銆{{wikiPage.updateTime}}
-
-
- -
- 鎻愪氦璇勮 +
+
+
+ + + + + + 涓婁紶闄勪欢 + +
+
+ + + + + + + + + +
-
- - -
- 鐖剁骇锛歿{lastClickNode.nodePath || '/'}}銆 - - 鏍圭洰褰 - -
- -
- 淇濆瓨 - 鍙栨秷 -
- +
+
+
+
+ + + + + + + 鎴愪负绗竴涓禐鍚岃 + {{wikiPage.zanNum}}浜璧炰簡瀹 + 鎴戣禐浜嗗畠 + 鎴戝拰{{wikiPage.zanNum-1}}涓叾浠栦汉璧炰簡瀹 + +
+
+
璇勮鍒楄〃锛
+
+
+
{{item.createUserName.substr(0,1)}}
+
+
+ {{item.createUserName}}銆{{item.createTime}} +
+
{{item.content}}
+
+
+
+ +
+ 鎻愪氦璇勮 +
+
+ + +
+ 鐖剁骇锛歿{lastClickNode.nodePath || '/'}}銆 + + 鏍圭洰褰 + +
+ +
+ 淇濆瓨 + 鍙栨秷 +
+ + @@ -153,6 +169,7 @@