Skip to content

Commit

Permalink
Deploy documentation to S3 attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Jul 4, 2024
1 parent 2662dbf commit 0c3273f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm run build -w documentation

- name: Upload static Docusaurus site to S3
run: aws s3 sync documentation/build s3://smart-forms-docs/docz
run: aws s3 sync documentation/build s3://smart-forms-docs/docs

deploy-storybook:
name: Deploy Storybook to S3
Expand Down
10 changes: 5 additions & 5 deletions deployment/cloudfront/SmartFormsRedirectToCorrectRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ function handler(event) {
}


// Handle Docs routes
if (uri.includes('/docs')) {
// Reroute to smartforms.csiro.au/docs/index.html
if (uri === '/docs/') {
// Handle Docz routes
if (uri.includes('/docz')) {
// Reroute to smartforms.csiro.au/docz/index.html
if (uri === '/docz/') {
request.uri += 'index.html';
return request;
}

if (uri === '/docs') {
if (uri === '/docz') {
request.uri = '/redirect.html';
return request;
}
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/sdc/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The SDC specification provides a set of guidance around the use of Questionnaire

:::tip

Before diving into this section, it might be worth reading the [usage examples guide](/docs/components#usage-examples) in the Components section.
Before diving into this section, it might be worth reading the [usage examples guide](/docs/components#usage-examples-guide) in the Components section.

:::

Expand Down
2 changes: 1 addition & 1 deletion documentation/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config: Config = {
url: 'https://smartforms.csiro.au',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/docz',
baseUrl: '/docs',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down

0 comments on commit 0c3273f

Please sign in to comment.