Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): fix i18n routes for Canny board #5902

Merged
merged 1 commit into from Nov 8, 2021

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Pass the base route as props so that canny can handle the route correctly.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Tested locally with yarn start --locale zh-Hans and https://localhost:3000/zh-Hans/feature-requests is not redirected to https://localhost:3000/feature-requests after Canny loads.

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 8, 2021
@Josh-Cena Josh-Cena added pr: maintenance This PR does not produce any behavior differences to end users when upgrading. CLA Signed Signed Facebook CLA and removed CLA Signed Signed Facebook CLA labels Nov 8, 2021
@netlify
Copy link

netlify bot commented Nov 8, 2021

✔️ [V2]

🔨 Explore the source changes: a735eeb

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/6188aff49c4ea9000768f088

😎 Browse the preview: https://deploy-preview-5902--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 92
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5902--docusaurus-2.netlify.app/

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

Size Change: +124 B (0%)

Total Size: 881 kB

Filename Size Change
website/build/assets/js/main.********.js 474 kB +127 B (0%)
ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 38.2 kB 0 B
website/build/assets/css/styles.********.css 94 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 66.1 kB 0 B
website/build/blog/index.html 36.8 kB 0 B
website/build/docs/index.html 44 kB 0 B
website/build/docs/installation/index.html 51.5 kB -3 B (0%)
website/build/index.html 29.5 kB 0 B
website/build/tests/docs/index.html 25.2 kB 0 B
website/build/tests/docs/standalone/index.html 21.7 kB 0 B

compressed-size-action

@Josh-Cena Josh-Cena merged commit c8904f1 into main Nov 8, 2021
@Josh-Cena Josh-Cena deleted the jc/feature-request-i18n branch November 8, 2021 05:17
exact: false,
component: '@site/src/featureRequests/FeatureRequestsPage',
modules: {
basePath: './feature-requests-plugin/default/paths.json',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createData returns the module path, you don't need to hardcode it :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, I never understood how these APIs work... I'll look deeper into how they're implemented and maybe improve the documentation on this😄

@Josh-Cena Josh-Cena added pr: documentation This PR works on the website or other text documents in the repo. and removed pr: maintenance This PR does not produce any behavior differences to end users when upgrading. labels Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: documentation This PR works on the website or other text documents in the repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants