From c854abcac81b96848378349c626b29f009e3fe8d Mon Sep 17 00:00:00 2001 From: divya-mohan0209 Date: Thu, 22 Sep 2022 16:13:19 +0530 Subject: [PATCH 1/2] Create deploy.yml --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..c3a5cf271 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout main docs repo + uses: actions/checkout@v2 + - name: Setup Docusaurus + uses: actions/setup-node@v2 + with: + node-version: 16.x + cache: yarn + - name: Build website + run: | + yarn install --frozen-lockfile + yarn build + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build From 572b5cd292e6a2e2430e38fdc2ffdec2500a8f67 Mon Sep 17 00:00:00 2001 From: divya-mohan0209 Date: Thu, 22 Sep 2022 16:14:36 +0530 Subject: [PATCH 2/2] Update docusaurus.config.js --- docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 9eae4ea62..a176598bf 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -3,8 +3,8 @@ module.exports = { title: 'Fleet', tagline: '', - url: 'https://docs.fleet.io', - baseUrl: '/', + url: 'https://rancher.github.io', + baseUrl: '/fleet-docs/', onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico',