PalworldModding / Docs

Guides for modding palworld
19 stars 14 forks source link

Add Some SChinese Docs #8

Open MoRanYue opened 9 months ago

MoRanYue commented 9 months ago

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

localcc commented 9 months ago

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

MoRanYue commented 9 months ago

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 commented 9 months ago

Please solve the conflict.

i think, my batchfile is more simple

localcc commented 9 months ago

image

Docusaurus still tells me there are broken anchors 🤔

MoRanYue commented 9 months ago

image

Docusaurus still tells me there are broken anchors 🤔

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