From 043972f32546cd2d985d79525608a0943c07ef72 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 10 Sep 2024 16:01:41 +0200 Subject: [PATCH] ichore: Finish Signed-off-by: blam --- .github/workflows/deploy_microsite.yml | 16 ++-------------- microsite/{lighthouserc.js => lighthouserc.ts} | 4 ++-- 2 files changed, 4 insertions(+), 16 deletions(-) rename microsite/{lighthouserc.js => lighthouserc.ts} (97%) diff --git a/.github/workflows/deploy_microsite.yml b/.github/workflows/deploy_microsite.yml index 0a52cac742..aa5d06e4ba 100644 --- a/.github/workflows/deploy_microsite.yml +++ b/.github/workflows/deploy_microsite.yml @@ -3,7 +3,6 @@ on: push: branches: - master - pull_request: permissions: contents: read @@ -185,21 +184,10 @@ jobs: name: stable-reference path: docs/reference - - name: debug before - run: | - ls docs - ls docs/releases - - name: grab lastest releases docs - uses: actions/checkout@v4 - with: - clean: false - sparse-checkout: docs/releases - - - name: debug after run: | - ls docs - ls docs/releases + git fetch origin master --depth 1 + git checkout FETCH_HEAD -- docs/releases - name: generate stable docs run: yarn docusaurus docs:version stable diff --git a/microsite/lighthouserc.js b/microsite/lighthouserc.ts similarity index 97% rename from microsite/lighthouserc.js rename to microsite/lighthouserc.ts index f0024ee0b3..5775bd19ee 100644 --- a/microsite/lighthouserc.js +++ b/microsite/lighthouserc.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -var sidebars = require('./sidebars.json'); +import sidebars from './sidebars'; -module.exports = { +export default { ci: { collect: { url: [