From 2323b8925098c11bfdd7c9888a9ceac470e1d0eb Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Dec 2025 11:14:54 -0600 Subject: [PATCH 1/4] testing PT translation --- docs/en/index.md | 1 + scripts/translate.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/index.md b/docs/en/index.md index 234493daa..ea2244b0d 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -10,6 +10,7 @@ some_url: icon: material/home hide: - footer +auto-translate: true --- diff --git a/scripts/translate.py b/scripts/translate.py index 44a7fd4cb..687283257 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -55,7 +55,7 @@ # Keys and variables. Remove language if you do not want to automatically translate DEEPL_API_KEY = os.getenv("DEEPL_API_KEY") -ALL_LANGS = ["en", "es"] +ALL_LANGS = ["pt", "es"] ROOT_DIR = Path("docs") # DeepL API language codes mapping From c81ed59c4434a0deaa1b21fceff9d3a60122965f Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Dec 2025 11:16:43 -0600 Subject: [PATCH 2/4] test auto-translate --- docs/en/index.md | 1 - docs/es/index.md | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/index.md b/docs/en/index.md index ea2244b0d..234493daa 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -10,7 +10,6 @@ some_url: icon: material/home hide: - footer -auto-translate: true --- diff --git a/docs/es/index.md b/docs/es/index.md index d7ffaa6b0..2e205e8b8 100644 --- a/docs/es/index.md +++ b/docs/es/index.md @@ -10,6 +10,7 @@ some_url: icon: material/home hide: - footer +auto-translate: true --- From 33144441a807f5ad1f45208bd027f6ab17486316 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Dec 2025 12:13:22 -0600 Subject: [PATCH 3/4] testing fix script --- docs/es/index.md | 1 + scripts/translate.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/es/index.md b/docs/es/index.md index 2e205e8b8..bc6b7ef18 100644 --- a/docs/es/index.md +++ b/docs/es/index.md @@ -11,6 +11,7 @@ icon: material/home hide: - footer auto-translate: true + --- diff --git a/scripts/translate.py b/scripts/translate.py index 687283257..0ea40ff8d 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -249,10 +249,12 @@ def get_changed_markdown_files() -> list[Path]: # Detect the language of the files being changed # ------------------------- def detect_language(file_path: Path) -> str: + print(f"DEBUG file: {file_path}") parts = file_path.parts try: lang_index = parts.index("docs") + 1 lang = parts[lang_index] + print(f"DEBUG lang: {lang}") if lang not in ALL_LANGS: raise ValueError(f"Language not defined for automatic translations: {lang}") return lang @@ -263,7 +265,6 @@ def detect_language(file_path: Path) -> str: # Return a list (line_number, text added) for each new line based on the git diff # ------------------------- def get_added_lines_with_context(file_path: Path): - diff = subprocess.run( ["git", "diff", "-U0", "HEAD~1", "HEAD", "--", str(file_path)], capture_output=True, From cc74d8a10f0c517f9f0bb821ab6b73850196611f Mon Sep 17 00:00:00 2001 From: bedoyadaniel Date: Fri, 12 Dec 2025 18:13:40 +0000 Subject: [PATCH 4/4] updating with automated translations --- docs/pt/index.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 docs/pt/index.md diff --git a/docs/pt/index.md b/docs/pt/index.md new file mode 100644 index 000000000..09909a4c2 --- /dev/null +++ b/docs/pt/index.md @@ -0,0 +1,76 @@ +--- + +title: Página de inicio forensics ES +summary: Página de inicio +keywords: homepage, home, inicio +author: Daniel Bedoya Arroyo +lang: es +tags: [indice, home] +last_updated: 2025-07-21 +some_url: +icon: material/home +hide: + - footer + +translation-review-pending: true +--- + +# Repositório de documentação forense digital consensual para a defesa dos direitos humanos + + +Este é um repositório de **documentação técnica** que visa estabelecer uma base de conhecimento comprovada, flexível e acessível para **promover a perícia digital consensual em benefício da sociedade civil**. Seu desenvolvimento é liderado pela organização da sociedade civil [SocialTIC] (https://socialtic.org). + +**A análise forense digital permite a descoberta e o exame de dados de dispositivos e mídias eletrônicas com o objetivo de identificar, recuperar, documentar e interpretar informações digitais e sua conexão com ataques digitais. Este repositório descreve procedimentos padrão, aderindo às práticas recomendadas e concentrando-se em cenários em que existe **consentimento informado**. A intenção é que, por meio dessas investigações, sejam **geradas** evidências forenses de ataques digitais** para impulsionar ações de **responsabilidade**. + +
+ +- :material-robot-confused:{ .lg .middle } __Não sabe por onde começar? + + --- + + Se quiser __aprender mais sobre o repositório__, visite a seção **primeiros passos**. + + [:octicons-arrow-right-24: Comece aqui](home/getting-started/) + + +
+ +## Conteúdo publicado + +Para organizar o conteúdo, é utilizada a estrutura de documentação técnica [Diátaxis] (https://diataxis.fr). Seguindo essa metodologia, organizamos o conteúdo deste repositório nas seguintes categorias: + +
+ +- :material-telescope:{ .lg .middle } __Explicadores__ + + --- + + Aprendizagem de aspectos teóricos por meio do contexto de um tópico específico. + + [:octicons-arrow-right-24: Índice de explicadores](explicadores/) + +- :material-wrench-cog:{ .lg .middle } __Guias de como fazer__ + + --- + + Receitas para **executar tarefas** por meio de instruções passo a passo. + + [:octicons-arrow-right-24: Índice de guias de instruções](how-tos/) + +- :material-school:{ .lg .middle } __Tutoriais__ + + --- + + **Aprendizagem de conhecimentos práticos** por meio do desenvolvimento de uma atividade. + + [:octicons-arrow-right-24: Índice de tutoriais](tutorials/) + +- :material-ruler:{ .lg .middle } __Referências__ + + --- + + Conhecimento teórico que **facilita a execução de uma tarefa** de forma confiável e sem erros. + + [:octicons-arrow-right-24: Índice de referências](references/) + +