mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
c82e0fcc8d716a6b59bebb621a5be3aec0118ef1
Close #4 Right now on MacOS, sed will produce backup files, because on Mac, If do something like below using bash script ``` $SED_INPLACE '1s/---/---\nisOutdated: true/' $file ``` It will become the following on executed, and a backup file will be produced: ``` sed -i ''\'''\''' '1s/---/---\nisOutdated: true/' ./docs/content/doc/help/faq.zh-cn.md ``` The way to fix this in this PR is to change the `SED_INPLACE` to a function. [Reference](https://github.com/pingcap/tipb/blob/aa19c2d12587e66b31069f790fc371b6be565504/generate-cpp.sh#L4) (Tested on my Mac and backup files with suffix '' will not be produced after changing to function) Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/36 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: HesterG <[email protected]> Co-committed-by: HesterG <[email protected]>
Gitea Docusaurus
How to build
make clean
make build
Development
make clean
make serve
Test en version
npm run start
Test zh-cn version
npm run start -- --locale zh-cn
Translate presets for zh-cn version
npx docusaurus write-translations --locale zh-cn
Test both zh-cn and en versions
npm run build
npm run serve
Languages
TypeScript
42.4%
MDX
30.9%
Astro
8.1%
JavaScript
6.4%
Shell
6%
Other
6.2%