Skip to content

Commit

Permalink
chore: basic ideas about nav
Browse files Browse the repository at this point in the history
  • Loading branch information
AstatineAi committed Jun 5, 2024
1 parent 81b4bdd commit 02a6ec4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gen_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions index_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 02a6ec4

Please sign in to comment.