diff --git a/.github/workflows/build-gh-pages.yml b/.github/workflows/build-gh-pages.yml index 1b85be0..e4d98ec 100644 --- a/.github/workflows/build-gh-pages.yml +++ b/.github/workflows/build-gh-pages.yml @@ -2,11 +2,11 @@ name: build-gh-pages on: pull_request: - branches: [dev, main] + branches: [dev, main, gh-pages] paths-ignore: - "src/**" push: - branches: [dev, main] + branches: [dev, main, gh-pages] paths-ignore: - "src/**" diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 3fb2017..6b2db02 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -2,7 +2,7 @@ name: Deploy Jekyll and Avalonia WASM demo on: push: - branches: ["main"] + branches: ["main", "gh-pages"] paths-ignore: - "src/**" @@ -66,7 +66,7 @@ jobs: - name: Checkout demo repository uses: actions/checkout@v4 with: - repository: eesast/dotnet-workshop-solution + repository: ${{ vars.DOTNET_WORKSHOP_SOLUTION_REPOSITORY }} token: ${{ secrets.DOTNET_WORKSHOP_SOLUTION_READ }} path: dotnet-workshop-solution persist-credentials: false diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 0000000..81b08fc --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,46 @@ +label: 文档导航 +home_label: 项目主页 +open_label: 展开导航 +close_label: 隐藏导航 +home_url: / +sections: + - title: "`00-prepare`" + items: + - title: Guidance + url: /docs/00-prepare/guidance.html + - title: Tasks + url: /docs/00-prepare/tasks.html + - title: "`01-basic`" + items: + - title: Guidance + url: /docs/01-basic/guidance.html + - title: Tasks + url: /docs/01-basic/tasks.html + - title: "`02-multithreading`" + items: + - title: Guidance + url: /docs/02-multithreading/guidance.html + - title: Tasks + url: /docs/02-multithreading/tasks.html + - title: "`03-async-grpc`" + items: + - title: Guidance + url: /docs/03-async-grpc/guidance.html + - title: Tasks + url: /docs/03-async-grpc/tasks.html + - title: "`04-avalonia`" + items: + - title: Guidance + url: /docs/04-avalonia/guidance.html + - title: Tasks + url: /docs/04-avalonia/tasks.html + - title: "`05-advanced`" + items: + - title: Guidance + url: /docs/05-advanced/guidance.html + - title: Tasks + url: /docs/05-advanced/tasks.html + - title: "`appendix`" + items: + - title: 附录 A:部分名词不同语言对照表 + url: /docs/appendix/appendix-a-glossary.html diff --git a/_includes/sidebar.html b/_includes/sidebar.html new file mode 100644 index 0000000..5f1efff --- /dev/null +++ b/_includes/sidebar.html @@ -0,0 +1,58 @@ + + + + + diff --git a/_layouts/default.html b/_layouts/default.html index 2c179a6..9a7cab1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -17,6 +17,8 @@ src="{{ '/assets/js/prepare.js?v=' | append: site.github.build_revision | relative_url }}"> + {% include head-custom.html %} @@ -79,7 +81,16 @@