Contributed by Anderson Costa.
-
Fork the Wokwi docs repository on GitHub: (https://github.com/wokwi/wokwi-docs).
-
Clone your repository to your local machine: (e.g.
git clone https://github.com/<your-github-account>/wokwi-docs
). -
Add an upstream remote: (e.g.
git remote add upstream https://github.com/wokwi/wokwi-docs/
). -
Fetch all branches from the upstream remote: (e.g.
git fetch upstream
). -
Checkout the main branch (
git checkout main
). -
Rebase the main branch to incorporate updates from the upstream remote (e.g.
git rebase upstream/main
).If necessary, force a push to your own Github repository (e.g.
git push -f origin main
). -
Create a new branch for your updates (e.g. git branch
pt-br#01
). -
Checkout the new branch (e.g. git checkout
pt-br#01
). -
Make changes to the translation files inside the folder (./wokwi-docs/i18n//docusaurus-plugin-content-docs/current/). (e.g. ./wokwi-docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/)
-
Add the changed files (e.g.
git add file1 file2
, orgit add .
for all changes). -
Commit the changes with a descriptive message (e.g.
git commit -m "feat(i18n): update pt-BR texts"
). -
Push the changes to your remote repository (e.g.
git push --set-upstream origin pt-br#01
). -
Create a pull request from your repository to the official Wokwi docs repository (https://github.com/wokwi/wokwi-docs/).
-
Wait for the checks to pass and for approval from the administrator "urish". Note: If an error message appears, wait for a response from the administrator.