From a320a3c9aa102ab06566ad382907d873b10f0c55 Mon Sep 17 00:00:00 2001 From: SpatialOnee Date: Wed, 27 Nov 2024 19:21:53 +0800 Subject: [PATCH] add redirects --- .github/workflows/deploy.yaml | 2 ++ swift-6-beta.docc/_redirects | 1 + 2 files changed, 3 insertions(+) create mode 100644 swift-6-beta.docc/_redirects diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8ac07fa6..04ce6799 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,6 +27,8 @@ jobs: run: swift --version - name: Build run: xcrun docc convert swift-6-beta.docc --output-path ./docs --transform-for-static-hosting --experimental-enable-custom-templates + - name: Copy Redirects + run: cp swift-6-beta.docc/_redirects ./docs/_redirects - name: Publish uses: cloudflare/pages-action@v1 with: diff --git a/swift-6-beta.docc/_redirects b/swift-6-beta.docc/_redirects new file mode 100644 index 00000000..1b79d577 --- /dev/null +++ b/swift-6-beta.docc/_redirects @@ -0,0 +1 @@ +/ /documentation/the-swift-programming-language 301!