loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix document error about 'make trans-copy' (#29710)

Change document to 'make docs'

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
(cherry picked from commit 607ed27b4fb8ead346f89b379d9788f5c76fb799)

authored by

Daniel YC Lin
techknowlogick
and committed by
Earl Warren
4eb8a094 edf28c74

+2 -49
-4
Makefile
··· 881 881 release-docs: | $(DIST_DIRS) docs 882 882 tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs . 883 883 884 - .PHONY: docs 885 - docs: 886 - cd docs; bash scripts/trans-copy.sh; 887 - 888 884 .PHONY: deps 889 885 deps: deps-frontend deps-backend deps-tools deps-py 890 886
+1 -6
docs/content/development/hacking-on-gitea.en-us.md
··· 333 333 can test your changes to ensure that they pass continuous integration using: 334 334 335 335 ```bash 336 - # from the docs directory within Gitea 337 - make trans-copy clean build 336 + make lint-md 338 337 ``` 339 - 340 - You will require a copy of [Hugo](https://gohugo.io/) to run this task. Please 341 - note: this may generate a number of untracked Git objects, which will need to 342 - be cleaned up. 343 338 344 339 ## Visual Studio Code 345 340
+1 -5
docs/content/development/hacking-on-gitea.zh-cn.md
··· 307 307 该网站的文档位于 `docs/` 中。如果你改变了文档内容,你可以使用以下测试方法进行持续集成: 308 308 309 309 ```bash 310 - # 来自 Gitea 中的 docs 目录 311 - make trans-copy clean build 310 + make lint-md 312 311 ``` 313 - 314 - 运行此任务依赖于 [Hugo](https://gohugo.io/)。请注意:这可能会生成一些未跟踪的 Git 对象, 315 - 需要被清理干净。 316 312 317 313 ## Visual Studio Code 318 314
-34
docs/scripts/trans-copy.sh
··· 1 - #!/usr/bin/env bash 2 - set -e 3 - 4 - # 5 - # This script is used to copy the en-US content to our available locales as a 6 - # fallback to always show all pages when displaying a specific locale that is 7 - # missing some documents to be translated. 8 - # 9 - # Just execute the script without any argument and you will get the missing 10 - # files copied into the content folder. We are calling this script within the CI 11 - # server simply by `make trans-copy`. 12 - # 13 - 14 - declare -a LOCALES=( 15 - "fr-fr" 16 - "nl-nl" 17 - "pt-br" 18 - "zh-cn" 19 - "zh-tw" 20 - ) 21 - 22 - ROOT=$(realpath $(dirname $0)/..) 23 - 24 - for SOURCE in $(find ${ROOT}/content -type f -iname *.en-us.md); do 25 - for LOCALE in "${LOCALES[@]}"; do 26 - DEST="${SOURCE%.en-us.md}.${LOCALE}.md" 27 - 28 - if [[ ! -f ${DEST} ]]; then 29 - cp ${SOURCE} ${DEST} 30 - sed -i.bak "s/en\-us/${LOCALE}/g" ${DEST} 31 - rm ${DEST}.bak 32 - fi 33 - done 34 - done