From 50461e3a469fc1b94d35e94f165e8590b23e60df Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 14 Jul 2023 00:20:10 +0800 Subject: [PATCH] test more! --- docs/.gitignore | 2 ++ docs/book.toml | 7 ++++--- docs/src/contributing.md | 2 ++ docs/src/test.ps1 | 8 ++++++++ docs/theme/index.hbs | 25 +++++++++++++++++++++++-- 5 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 docs/src/test.ps1 diff --git a/docs/.gitignore b/docs/.gitignore index 66796bf..bf26c8a 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -3,3 +3,5 @@ index.html book #theme + +README-en.html \ No newline at end of file diff --git a/docs/book.toml b/docs/book.toml index c101849..e5ff6ee 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -41,6 +41,9 @@ page-break = true # insert page-break after each chapter [rust] edition = "2021" # the default edition for code blocks +# 从本地运行一些东西拿到 markdown 里来 +[preprocessor.cmdrun] + ### 扩展部分 # 检查文档内链接 @@ -55,12 +58,10 @@ edition = "2021" # the default edition for code blocks # 添加右侧目录 [preprocessor.theme] +turn-off = true pagetoc = true pagetoc-width = "13%" sidebar-width = "300px" -# 从本地运行一些东西拿到 markdown 里来 -[preprocessor.cmdrun] - # 在新页面中打开链接 [preprocessor.external-links] diff --git a/docs/src/contributing.md b/docs/src/contributing.md index 1882b29..ba15f41 100644 --- a/docs/src/contributing.md +++ b/docs/src/contributing.md @@ -18,3 +18,5 @@ - `python -m pip install -r requre` 3. 使用 `build_rs.ps1` 尝试编译一次 `DR_rs` - `./build_rs.ps1` 38/39/310/311 + + diff --git a/docs/src/test.ps1 b/docs/src/test.ps1 new file mode 100644 index 0000000..40569c1 --- /dev/null +++ b/docs/src/test.ps1 @@ -0,0 +1,8 @@ + +# ls 之后将每一行输出包裹在 ` 里面 +echo "``````" +Get-ChildItem . | ForEach-Object { + echo $_ +} + +echo "``````" \ No newline at end of file diff --git a/docs/theme/index.hbs b/docs/theme/index.hbs index 79dd49e..5c988c0 100644 --- a/docs/theme/index.hbs +++ b/docs/theme/index.hbs @@ -110,12 +110,34 @@ + + +
{{> header}} -