From d829cf5f9c17bab7a518c44bb457063492ea418f Mon Sep 17 00:00:00 2001 From: marsonshine Date: Thu, 25 Jun 2026 12:43:57 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=A1=B5=E5=85=B1=E4=BA=AB=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- README.md | 1 + _layouts/default.html | 156 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 _layouts/default.html diff --git a/README.md b/README.md index d713160..9e7d461 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ dotnet list package --vulnerable --include-transitive ## 文档入口 +- [文档中心总览](docs/) - [上下文边界](docs/Context-Bounded.md) - [领域命令模式处理程序](docs/Domain-Command-Patterns-Handlers.md) - [领域命令验证](docs/Domain-Command-Validation.md) diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..34132f4 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,156 @@ + + + + + +{% seo %} + + + + + + + + {% include head-custom.html %} + + + Skip to the content. + + + +
+ {% if page.path contains 'docs/' and page.path != 'docs/README.md' %} + {% assign sibling_pages = site.pages | where_exp: "item", "item.path contains 'docs/' and item.path contains '.md' and item.dir == page.dir" | sort: "url" %} + {% assign section_home = sibling_pages | where_exp: "item", "item.name == 'README.md'" | first %} + {% assign prev_page = nil %} + {% assign next_page = nil %} + {% assign seen_current = false %} + + {% for item in sibling_pages %} + {% if item.url == page.url %} + {% assign seen_current = true %} + {% elsif seen_current and next_page == nil %} + {% assign next_page = item %} + {% elsif seen_current == false %} + {% assign prev_page = item %} + {% endif %} + {% endfor %} + + {% endif %} + + {{ content }} + + {% if page.path contains 'docs/' and page.path != 'docs/README.md' and sibling_pages.size > 1 %} + + {% endif %} + + +
+ +