Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Conversation

josh-wong
Copy link
Member

@josh-wong josh-wong commented Sep 17, 2024

Description

This PR adds redirects to route visitors from pages on the ScalarDB Community docs site to the same page on the ScalarDB docs site.

Related issues and/or PRs

Changes made

  • Create static/redirects.js file to handle redirects for each page across versions.
  • Add the redirect script to docusaurus.config.js.
  • Updated docusaurus.config.js to include an announcement banner in case the redirect doesn't work for some reason.

Checklist

The following is a best-effort checklist. If any items in this checklist are not applicable to this PR or are dependent on other, unmerged PRs, please still mark the checkboxes after you have read and understood each item.

  • I have updated the side navigation as necessary. N/A
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes. N/A
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

N/A

Customize the error page message with a redirect that points to the ScalarDB docs site.
@josh-wong josh-wong added the enhancement New feature or request label Sep 17, 2024
@josh-wong josh-wong self-assigned this Sep 17, 2024
Copy link

netlify bot commented Sep 17, 2024

Deploy Preview for staging-scalardb-community-doc-reorg ready!

Name Link
🔨 Latest commit a1cfeb3
🔍 Latest deploy log https://app.netlify.com/sites/staging-scalardb-community-doc-reorg/deploys/66e96ff60a09ef0008b8cdef
😎 Deploy Preview https://deploy-preview-149--staging-scalardb-community-doc-reorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Not sure if the redirects will work until the changes have been merged since redirects in Docusaurus only work in production environments.
@josh-wong josh-wong force-pushed the add-redirects-to-unified-scalardb-docs-site branch from f2e3698 to f7433a4 Compare September 17, 2024 09:20
@josh-wong josh-wong force-pushed the add-redirects-to-unified-scalardb-docs-site branch from 8079c98 to 3814143 Compare September 17, 2024 10:22
@josh-wong josh-wong merged commit bded19a into main Sep 24, 2024
5 checks passed
@josh-wong josh-wong deleted the add-redirects-to-unified-scalardb-docs-site branch September 24, 2024 08:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant