Преглед изворни кода

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,7 +10,10 @@ repo_url: https://github.com/alemart/encantar-js
10 10
 theme:
11 11
   name: material
12 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 17
   palette:
15 18
     primary: deep purple
16 19
     accent: yellow
@@ -23,6 +26,9 @@ plugins:
23 26
   - mkdocs-simple-hooks:
24 27
       hooks:
25 28
         on_post_build: 'docs.hooks:copy_static_files'
29
+  - redirects:
30
+      redirect_maps:
31
+        'api/index.md': 'api/ar.md'
26 32
 
27 33
 markdown_extensions:
28 34
   - admonition
@@ -52,7 +58,7 @@ nav:
52 58
     - 'Demos': 'demos.md'
53 59
     - 'Add-Ons': 'addons/index.md'
54 60
     - 'Learn': 'tutorial/introduction.md'
55
-    - 'API Reference': 'api/ar.md'
61
+    - 'API Reference': 'api/index.md'
56 62
     - 'Recommendations': 'recommendations.md'
57 63
     - 'Guidelines for Images': 'guidelines-for-images.md'
58 64
     - 'Support my work': 'support-my-work.md'
@@ -78,7 +84,7 @@ nav:
78 84
     - 'Recommendations': 'recommendations.md'
79 85
     - 'Guidelines for Images': 'guidelines-for-images.md'
80 86
     - 'Questions & Answers': 'faq.md'
81
-    - 'API Reference': 'api/ar.md'
87
+    - 'API Reference': 'api/index.md'
82 88
   - 'API':
83 89
     - 'General':
84 90
       - 'AR': 'api/ar.md'

Loading…
Откажи
Сачувај