From 02a6ec41034761dc8a21e238b34fe6cdde2a016e Mon Sep 17 00:00:00 2001 From: Hengyu Ai Date: Wed, 5 Jun 2024 18:52:43 +0800 Subject: [PATCH] chore: basic ideas about nav --- gen_index.py | 2 +- index_base.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gen_index.py b/gen_index.py index 1b506bb..8efa237 100644 --- a/gen_index.py +++ b/gen_index.py @@ -35,7 +35,7 @@ def save_yaml(content, output_file): def main(): base_file = 'index_base.yaml' output_file = 'mkdocs.yaml' - file_dir = 'docs/' + file_dir = 'docs/guide/' markdown_files = get_markdown_files(file_dir) nav_section = generate_nav_section(markdown_files, file_dir) merged_content = merge_with_base_nav(base_file, nav_section) diff --git a/index_base.yaml b/index_base.yaml index ba18851..0617e5f 100644 --- a/index_base.yaml +++ b/index_base.yaml @@ -46,3 +46,11 @@ extra_javascript: - javascripts/mathjax.js - https://polyfill.io/v3/polyfill.min.js?features=es6 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js + +nav: +- 关于站点: + - 首页: 'index.md' + - 更新日志: 'log.md' + - 贡献: 'contributing.md' +- 学习资料: 'file.md' +- 寄语 : 'message.md' \ No newline at end of file