From b69a6f19e92b198bc5802d7c00fccd35ff442910 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Thu, 11 Jul 2024 10:36:53 +0930 Subject: [PATCH] Test docs deployment 4th attempt and fix linting --- .github/workflows/deploy_app_docs.yml | 52 +++++++++++++-------------- documentation/docusaurus.config.ts | 2 ++ 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy_app_docs.yml b/.github/workflows/deploy_app_docs.yml index fdd427da..e355c448 100644 --- a/.github/workflows/deploy_app_docs.yml +++ b/.github/workflows/deploy_app_docs.yml @@ -45,32 +45,32 @@ jobs: - name: Upload static React site to S3 run: aws s3 sync apps/smart-forms-app/dist s3://smart-forms-react-app/ -# deploy-docusaurus-s3: -# name: Deploy Docusaurus to S3 -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v4 -# -# - name: Use Node.js 18.x -# uses: actions/setup-node@v4 -# with: -# node-version: 18 -# cache: npm -# -# - name: Configure AWS credentials -# uses: aws-actions/configure-aws-credentials@v4 -# with: -# role-to-assume: arn:aws:iam::209248795938:role/SmartFormsReactAppDeployment -# aws-region: ap-southeast-2 -# -# - name: Install dependencies -# run: npm ci -# -# - name: Build documentation website -# run: npm run build -w documentation -# -# - name: Upload static Docusaurus site to S3 -# run: aws s3 sync documentation/build s3://smart-forms-docs/docs + # deploy-docusaurus-s3: + # name: Deploy Docusaurus to S3 + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # + # - name: Use Node.js 18.x + # uses: actions/setup-node@v4 + # with: + # node-version: 18 + # cache: npm + # + # - name: Configure AWS credentials + # uses: aws-actions/configure-aws-credentials@v4 + # with: + # role-to-assume: arn:aws:iam::209248795938:role/SmartFormsReactAppDeployment + # aws-region: ap-southeast-2 + # + # - name: Install dependencies + # run: npm ci + # + # - name: Build documentation website + # run: npm run build -w documentation + # + # - name: Upload static Docusaurus site to S3 + # run: aws s3 sync documentation/build s3://smart-forms-docs/docs chromatic: name: Run Chromatic diff --git a/documentation/docusaurus.config.ts b/documentation/docusaurus.config.ts index 4f545b00..cd2ba413 100644 --- a/documentation/docusaurus.config.ts +++ b/documentation/docusaurus.config.ts @@ -22,6 +22,8 @@ const config: Config = { onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'throw', + trailingSlash: false, + // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans".