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

feat(content-docs): make docs:version command work on localized docs #7106

Merged
merged 4 commits into from
Apr 7, 2022

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

See #7104

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Tested locally by creating i18n/zh-CN/docusaurus-plugin-content-docs/current/foo.md and running yarn docusaurus docs:version foo. Things work as expected.

@Josh-Cena Josh-Cena added the pr: new feature This PR adds a new API or behavior. label Apr 3, 2022
@Josh-Cena Josh-Cena requested review from slorber and lex111 as code owners April 3, 2022 10:30
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 3, 2022
@netlify
Copy link

netlify bot commented Apr 3, 2022

[V2]

Name Link
🔨 Latest commit 061ec50
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/624f1e6599a7e50008a19230
😎 Deploy Preview https://deploy-preview-7106--docusaurus-2.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 settings.

@github-actions
Copy link

github-actions bot commented Apr 3, 2022

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 49
🟢 Accessibility 100
🟢 Best practices 92
🟢 SEO 100
🟢 PWA 90

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

@github-actions
Copy link

github-actions bot commented Apr 3, 2022

Size Change: +1.72 kB (0%)

Total Size: 805 kB

Filename Size Change
website/build/assets/css/styles.********.css 105 kB +179 B (0%)
website/build/assets/js/main.********.js 612 kB +1.48 kB (0%)
website/build/index.html 38.6 kB +57 B (0%)
ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 49.9 kB

compressed-size-action

@Josh-Cena Josh-Cena added the status: awaiting review This PR is ready for review, will be merged after maintainers' approval label Apr 3, 2022
Copy link
Collaborator

@slorber slorber left a comment

Choose a reason for hiding this comment

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

Thanks!

LGTM 👍

logger.interpolate`${pluginIdLogPrefix}: no docs found in path=${docsDir}.`,
);
} else {
logger.warn`${pluginIdLogPrefix}: no docs found in path=${docsDir}. Skipping.`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

wonder if this message will not be too aggressive and afraid users they did something wrong

we'll see

@slorber slorber merged commit 4134ebb into main Apr 7, 2022
@slorber slorber deleted the jc/version-i18n-docs branch April 7, 2022 17:43
@Josh-Cena Josh-Cena removed the status: awaiting review This PR is ready for review, will be merged after maintainers' approval label Apr 7, 2022
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: new feature This PR adds a new API or behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants