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

Add Some SChinese Docs #8

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

MoRanYue
Copy link

@MoRanYue MoRanYue commented Feb 6, 2024

Add some sChinese docs, and improve i18n files copying script.

@localcc
Copy link
Contributor

localcc commented Feb 8, 2024

Every page returns not found when I try to open the website in chinese, did you commit all the files?🤔

@MoRanYue
Copy link
Author

MoRanYue commented Feb 8, 2024

Every page returns not found when I try to open the website in chinese, did you commit all the files?🤔

Ok, you cant use yarn start or npm run start to view the webpages locally except editing defaultLanguage to zh-hans in Docusaurus.config.ts, the another way is to run yarn build or npm run build, then run the server that compiled.

As you see, the command yarn start only compiles the pages which defaultLanguage, so others wont be compiled. if you dont trust, you may try to view the pages in other languages, you will get the same result.

for testing, I kept that configuration be zh-hans. But in last second commit, it wasnt en so that there will have something wrong if the website runs online. Because of the reason, I pushed the latest commit to fix it.

@MoRanYue

This comment was marked as resolved.

@localcc
Copy link
Contributor

localcc commented Feb 10, 2024

image

Docusaurus still tells me there are broken anchors 🤔

@MoRanYue
Copy link
Author

MoRanYue commented Feb 13, 2024

image

Docusaurus still tells me there are broken anchors 🤔

its strange, there arent any problems on my device after doing it

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.

2 participants