Skip to content

fix: resolve cp commands duplication in i18n tutorial documentation#11471

Closed
aadithyanr wants to merge 1 commit intofacebook:mainfrom
aadithyanr:fix/i18n-tutorial-cp-commands-duplication
Closed

fix: resolve cp commands duplication in i18n tutorial documentation#11471
aadithyanr wants to merge 1 commit intofacebook:mainfrom
aadithyanr:fix/i18n-tutorial-cp-commands-duplication

Conversation

@aadithyanr
Copy link

Description

Fixes the duplication issue in i18n tutorial documentation where cp commands were causing file duplication due to recursive copying with glob patterns.

Changes

  • Replaced problematic cp -r src/pages/**.md and cp -r src/pages/**.mdx commands
  • Used find command approach for more reliable file copying
  • Updated all versioned documentation files consistently
  • More cross-platform compatible solution

Testing

✅ Tested with nested directory structures
✅ Verified no duplication occurs
✅ Confirmed all .md and .mdx files are copied correctly

Files Changed

  • website/docs/i18n/i18n-tutorial.mdx
  • All versioned documentation files in website/versioned_docs/

Fixes #11158

- Replace problematic cp -r commands with find-based approach
- Fixes issue where recursive copying with glob patterns caused duplication
- Updated all versioned documentation files consistently
- More reliable and cross-platform solution

Fixes facebook#11158
@meta-cla
Copy link

meta-cla bot commented Oct 12, 2025

Hi @aadithyanr!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@slorber
Copy link
Collaborator

slorber commented Oct 13, 2025

Unless we find a way to solve this with our CLI, or write docs that work for all OS (see #8704), I'd rather keep the existing docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cp commands in i18n tutorial create duplicate file (recursing AND globbing)

2 participants