aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config.yml1
-rwxr-xr-xscripts/assert-translations.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/_config.yml b/_config.yml
index b5fb265..7bec895 100644
--- a/_config.yml
+++ b/_config.yml
@@ -31,6 +31,7 @@ exclude:
- metadata.json
- tests.sh
- images/graphviz/
+ - drafts
collections:
articles:
diff --git a/scripts/assert-translations.sh b/scripts/assert-translations.sh
index ce4161c..e12d968 100755
--- a/scripts/assert-translations.sh
+++ b/scripts/assert-translations.sh
@@ -5,7 +5,7 @@ cd ../
TRANSLATIONS=(pt fr eo)
-for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site'); do
+for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site' | grep '^./drafts/'); do
file_lang="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$file_lang" = 'en' ]]; then
for l in "${TRANSLATIONS[@]}"; do
@@ -16,7 +16,7 @@ for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site
fi
done
-for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site'); do
+for f in $(find . -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_site/' | grep './drafts/'); do
l="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$l" != 'en' ]]; then
ref="$(grep '^ref: ' "$f" | awk '{print $2}')"