Fix incorrect command order of prepare-docs #92

Open
yp05327 wants to merge 2 commits from yp05327/gitea-docusaurus:fix-prepare-docs into main
First-time contributor

The command order of prepare-docs is incorrect.
We should prepare same version with different locale at once, otherwise the doc files for zh-cn in i18n folder will be incorrect.

Before: (files in current is as same as version 1.19)
image

After:
image

The command order of prepare-docs is incorrect. We should prepare same version with different locale at once, otherwise the doc files for `zh-cn` in `i18n` folder will be incorrect. Before: (files in current is as same as version 1.19) ![image](/attachments/81a25d85-ec8e-45dc-b1a1-31d945ae3bfa) After: ![image](/attachments/31831db4-4f89-45a0-8685-5252665d747b)
yp05327 added 1 commit 2023-11-27 01:57:36 +00:00
All checks were successful
checks / build-docs (pull_request) Successful in 6m28s
e81e9deb56
fix prepare-docs
lunny approved these changes 2023-11-28 04:30:09 +00:00
lunny added 1 commit 2023-11-28 04:30:17 +00:00
All checks were successful
checks / build-docs (pull_request) Successful in 6m31s
bfd76ba778
Merge branch 'main' into fix-prepare-docs
Author
First-time contributor

Wait a minute.
Maybe the best way to fix this issue is add clone process in prepare-****-zh-cn command,
as the root reason of this issue is that in prepare-****-zh-cn we don't have clone process.
And it will cause this error:
image
Or we can check whether we already have cloned files in local?

@lunny @techknowlogick
What do you think about this?

Wait a minute. Maybe the best way to fix this issue is add clone process in `prepare-****-zh-cn` command, as the root reason of this issue is that in `prepare-****-zh-cn` we don't have clone process. And it will cause this error: ![image](/attachments/f9350975-cf82-42d6-8079-7058ebd3153d) Or we can check whether we already have cloned files in local? @lunny @techknowlogick What do you think about this?
Member

Do we still have zh-cn docs? I thought we removed them...

Do we still have `zh-cn` docs? I thought we removed them...
All checks were successful
checks / build-docs (pull_request) Successful in 6m31s
Required
Details
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fix-prepare-docs:yp05327-fix-prepare-docs
git checkout yp05327-fix-prepare-docs
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/gitea-docusaurus#92
No description provided.