mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
Clone once (#52)
Closes #30 Closes #31 Closes #42 Rather than partially cloning, instead we clone once and then `clean` (to remove generated files), `reset` (to reset changed files), and `checkout` branches as needed. This should allow the outdated translation check to continue to work while also reducing build times significantly. Before:  After:  Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/52 Co-authored-by: John Olheiser <[email protected]> Co-committed-by: John Olheiser <[email protected]>
This commit is contained in:
committed by
Lunny Xiao
parent
30a23a1ee4
commit
53e27a0e86
+3
-7
@@ -1,9 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The script takes two params:
|
||||
# version: "latest" or a specific version number
|
||||
# locale
|
||||
# This script checks if a specific locale version of document is up to date with English version
|
||||
# This script takes `locale` as a param and checks if a specific locale version of document is up to date with English version
|
||||
# If latest commit timestamp of English version is greater than the specific locale version,
|
||||
# The specific locale version document will be marked as outdated
|
||||
|
||||
@@ -17,10 +14,9 @@ SED_INPLACE() {
|
||||
fi
|
||||
}
|
||||
|
||||
version="$1"
|
||||
locale="$2"
|
||||
locale="$1"
|
||||
cur_path=`pwd`
|
||||
cd .tmp/upstream-docs-"$version"
|
||||
cd .tmp/upstream-docs
|
||||
|
||||
for file in `find ./docs/content -name "*.${locale}.md"`; do
|
||||
file_en="${file/.${locale}/.en-us}"
|
||||
|
||||
Reference in New Issue
Block a user