diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f20fcc61..3ea519c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,17 +87,17 @@ jobs: - name: set env if: ${{ github.event_name == 'pull_request' && github.repository == 'deepflowio/docs' && github.event.pull_request.base.ref == 'main' }} run: | - echo "IMAGE_TAG_PREFIX=${{ github.event.pull_request.head.ref }}"|sed 's|main|latest|' >> $GITHUB_ENV + echo "IMAGE_TAG_PREFIX=${{ github.event.pull_request.head.ref }}"|sed 's|main|latest|; s|/|-|g' >> $GITHUB_ENV - name: set env if: ${{ github.event_name == 'push' && github.repository == 'deepflowio/docs'}} run: | - echo "IMAGE_TAG_PREFIX=${{ github.ref_name }}"|sed 's|main|latest|' >> $GITHUB_ENV + echo "IMAGE_TAG_PREFIX=${{ github.ref_name }}"|sed 's|main|latest|; s|/|-|g' >> $GITHUB_ENV - name: set env if: ${{ github.event_name == 'workflow_dispatch' && github.repository == 'deepflowio/docs'}} run: | - echo "IMAGE_TAG_PREFIX=${{ github.ref_name }}"|sed 's|main|latest|' >> $GITHUB_ENV + echo "IMAGE_TAG_PREFIX=${{ github.ref_name }}"|sed 's|main|latest|; s|/|-|g' >> $GITHUB_ENV - name: Build and push docs image if: ${{ github.repository == 'deepflowio/docs'}} diff --git a/.vitepress/theme/assets/docs-logo-dark.png b/.vitepress/theme/assets/docs-logo-dark.png new file mode 100644 index 00000000..49b3967f Binary files /dev/null and b/.vitepress/theme/assets/docs-logo-dark.png differ diff --git a/.vitepress/theme/assets/docs-logo-light.png b/.vitepress/theme/assets/docs-logo-light.png new file mode 100644 index 00000000..9ce51d51 Binary files /dev/null and b/.vitepress/theme/assets/docs-logo-light.png differ diff --git a/.vitepress/theme/components/DocBreadcrumb.vue b/.vitepress/theme/components/DocBreadcrumb.vue new file mode 100644 index 00000000..c19e32ef --- /dev/null +++ b/.vitepress/theme/components/DocBreadcrumb.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/.vitepress/theme/components/DocHeader.vue b/.vitepress/theme/components/DocHeader.vue index b3d598b4..e076ac13 100644 --- a/.vitepress/theme/components/DocHeader.vue +++ b/.vitepress/theme/components/DocHeader.vue @@ -2,15 +2,30 @@
- - - DeepFlow + + + + Docs
@@ -78,7 +93,9 @@