浏览代码

Upgrade to Material for Mkdocs 9

customisations
alemart 5 个月前
父节点
当前提交
75fdb9b71a
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. 0
    0
      docs/api/index.md
  2. 9
    3
      mkdocs.yml

+ 0
- 0
docs/api/index.md 查看文件


+ 9
- 3
mkdocs.yml 查看文件

10
 theme:
10
 theme:
11
   name: material
11
   name: material
12
   custom_dir: docs_overrides
12
   custom_dir: docs_overrides
13
-  features: [ 'navigation.tabs', 'navigation.tabs.sticky' ]
13
+  features:
14
+    - navigation.tabs
15
+    - navigation.tabs.sticky
16
+    - navigation.footer
14
   palette:
17
   palette:
15
     primary: deep purple
18
     primary: deep purple
16
     accent: yellow
19
     accent: yellow
23
   - mkdocs-simple-hooks:
26
   - mkdocs-simple-hooks:
24
       hooks:
27
       hooks:
25
         on_post_build: 'docs.hooks:copy_static_files'
28
         on_post_build: 'docs.hooks:copy_static_files'
29
+  - redirects:
30
+      redirect_maps:
31
+        'api/index.md': 'api/ar.md'
26
 
32
 
27
 markdown_extensions:
33
 markdown_extensions:
28
   - admonition
34
   - admonition
52
     - 'Demos': 'demos.md'
58
     - 'Demos': 'demos.md'
53
     - 'Add-Ons': 'addons/index.md'
59
     - 'Add-Ons': 'addons/index.md'
54
     - 'Learn': 'tutorial/introduction.md'
60
     - 'Learn': 'tutorial/introduction.md'
55
-    - 'API Reference': 'api/ar.md'
61
+    - 'API Reference': 'api/index.md'
56
     - 'Recommendations': 'recommendations.md'
62
     - 'Recommendations': 'recommendations.md'
57
     - 'Guidelines for Images': 'guidelines-for-images.md'
63
     - 'Guidelines for Images': 'guidelines-for-images.md'
58
     - 'Support my work': 'support-my-work.md'
64
     - 'Support my work': 'support-my-work.md'
78
     - 'Recommendations': 'recommendations.md'
84
     - 'Recommendations': 'recommendations.md'
79
     - 'Guidelines for Images': 'guidelines-for-images.md'
85
     - 'Guidelines for Images': 'guidelines-for-images.md'
80
     - 'Questions & Answers': 'faq.md'
86
     - 'Questions & Answers': 'faq.md'
81
-    - 'API Reference': 'api/ar.md'
87
+    - 'API Reference': 'api/index.md'
82
   - 'API':
88
   - 'API':
83
     - 'General':
89
     - 'General':
84
       - 'AR': 'api/ar.md'
90
       - 'AR': 'api/ar.md'

正在加载...
取消
保存