try fix translations

This commit is contained in:
carlospolop 2025-05-20 06:46:35 +02:00
parent 4397d90461
commit f64428c175
16 changed files with 50 additions and 17 deletions

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -1,4 +1,4 @@
name: Translator to ES (Spanish)
name: Translator to ES (Spachins)
on:
push:
@ -53,6 +53,7 @@ jobs:
wget https://raw.githubusercontent.com/carlospolop/hacktricks-cloud/master/scripts/translator.py
cd ..
- name: Run translation script on changed files
run: |
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
@ -65,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -94,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

View File

@ -66,6 +66,8 @@ jobs:
- name: Build mdBook
run: |
git checkout "$BRANCH"
git pull
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
- name: Update searchindex.js in repo
@ -95,4 +97,4 @@ jobs:
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name '*.md' -print | head -n 3 | xargs -r cat
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat