浏览代码

样式等

haojianlong 4 年之前
父节点
当前提交
d4fe59c104
共有 4 个文件被更改,包括 17 次插入2 次删除
  1. 9 0
      docs/.vuepress/config.js
  2. 6 1
      docs/.vuepress/styles/palette.styl
  3. 1 1
      docs/dev/saga-graphy/scene-manage/undo.md
  4. 1 0
      package.json

+ 9 - 0
docs/.vuepress/config.js

@@ -21,6 +21,15 @@ module.exports = {
                 },
             },
         ],
+        [
+            'vuepress-plugin-mathjax',
+            {
+                target: 'svg',
+                macros: {
+                    '*': '\\times',
+                },
+            },
+        ],
     ],
     markdown: {
         lineNumbers: true

+ 6 - 1
docs/.vuepress/styles/palette.styl

@@ -1,3 +1,8 @@
 body{
-  user-select :none;
+  //user-select :none;
+}
+.theme-default-content:not(.custom),
+.page-edit,
+.page-nav{
+  max-width: 100%;
 }

+ 1 - 1
docs/dev/saga-graphy/scene-manage/undo.md

@@ -7,4 +7,4 @@
 
 ::: details 查看代码
 <<< @/docs/.vuepress/components/example/web/graph/scene/Undo1.vue
-:::
+:::

+ 1 - 0
package.json

@@ -24,6 +24,7 @@
   },
   "devDependencies": {
     "@vuepress/plugin-back-to-top": "^1.2.0",
+    "vuepress-plugin-mathjax": "^1.2.8",
     "node-ssh": "^6.0.0",
     "ts-loader": "^7.0.4",
     "typescript": "^3.9.2",