Prechádzať zdrojové kódy

Merge pull request #3060 from myhloli/dev

feat: enhance i18n plugin configuration with material reconfiguration and additional admonition translations
Xiaomeng Zhao 4 mesiacov pred
rodič
commit
2b1e50e58d
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      mkdocs.yml

+ 6 - 0
mkdocs.yml

@@ -99,6 +99,7 @@ nav:
 plugins:
   - search
   - i18n:
+      reconfigure_material: true
       docs_structure: folder
       fallback_to_default: true
       reconfigure_material: true
@@ -124,6 +125,11 @@ plugins:
             Reference: 参考资料
             Output File Format: 输出文件格式
             Demo: 在线演示
+          admonition_translations:
+            - Tip: 提示
+            - Warning: 警告
+            - Note: 注意
+            - Important: 重要
   - mkdocs-video
 
 markdown_extensions: