aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-12-16 00:27:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-12-16 00:27:16 -0300
commit629a734be3a5594ee470710f1b4035cd4312f637 (patch)
tree5a592c0de4231c0548a0ffc4c95606ab16f3acb7
parent997a3b450648556e209b4466e9a23d0b03bc0ce3 (diff)
downloadtemplates-629a734be3a5594ee470710f1b4035cd4312f637.tar.gz
templates-629a734be3a5594ee470710f1b4035cd4312f637.tar.bz2
Feat: i18n
-rw-r--r--docs/atividades/provedor/README.en.md (renamed from docs/english/provider/README.md)0
-rw-r--r--docs/atividades/provedor/hospedagem.en.md (renamed from docs/english/provider/hosting/README.md)0
-rw-r--r--docs/atividades/provedor/hospedagem/carta.en.md (renamed from docs/english/provider/hosting/letter.md)0
-rw-r--r--docs/atividades/provedor/hospedagem/politica.en.md (renamed from docs/english/provider/hosting/policy.md)0
-rw-r--r--docs/atividades/provedor/hospedagem/recusa.en.md (renamed from docs/english/provider/hosting/refusal.md)0
-rw-r--r--docs/atividades/provedor/hospedagem/termo.en.md (renamed from docs/english/provider/hosting/terms.md)0
-rw-r--r--docs/english/README.md1
-rw-r--r--docs/index.en.md3
-rw-r--r--docs/social/coletivo/organizacao.en.md (renamed from docs/english/organization.md)0
-rw-r--r--docs/social/rede.en.md (renamed from docs/english/network.md)0
-rw-r--r--docs/todo.md4
-rw-r--r--mkdocs.yml22
-rwxr-xr-xscripts/provision2
13 files changed, 24 insertions, 8 deletions
diff --git a/docs/english/provider/README.md b/docs/atividades/provedor/README.en.md
index 44fc700..44fc700 100644
--- a/docs/english/provider/README.md
+++ b/docs/atividades/provedor/README.en.md
diff --git a/docs/english/provider/hosting/README.md b/docs/atividades/provedor/hospedagem.en.md
index 6d34898..6d34898 100644
--- a/docs/english/provider/hosting/README.md
+++ b/docs/atividades/provedor/hospedagem.en.md
diff --git a/docs/english/provider/hosting/letter.md b/docs/atividades/provedor/hospedagem/carta.en.md
index 5bfaff4..5bfaff4 100644
--- a/docs/english/provider/hosting/letter.md
+++ b/docs/atividades/provedor/hospedagem/carta.en.md
diff --git a/docs/english/provider/hosting/policy.md b/docs/atividades/provedor/hospedagem/politica.en.md
index 554627e..554627e 100644
--- a/docs/english/provider/hosting/policy.md
+++ b/docs/atividades/provedor/hospedagem/politica.en.md
diff --git a/docs/english/provider/hosting/refusal.md b/docs/atividades/provedor/hospedagem/recusa.en.md
index 7cd4648..7cd4648 100644
--- a/docs/english/provider/hosting/refusal.md
+++ b/docs/atividades/provedor/hospedagem/recusa.en.md
diff --git a/docs/english/provider/hosting/terms.md b/docs/atividades/provedor/hospedagem/termo.en.md
index 91b5f3f..91b5f3f 100644
--- a/docs/english/provider/hosting/terms.md
+++ b/docs/atividades/provedor/hospedagem/termo.en.md
diff --git a/docs/english/README.md b/docs/english/README.md
deleted file mode 100644
index a4c9eb7..0000000
--- a/docs/english/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# English version
diff --git a/docs/index.en.md b/docs/index.en.md
new file mode 100644
index 0000000..774fcb6
--- /dev/null
+++ b/docs/index.en.md
@@ -0,0 +1,3 @@
+# Sociotechnic Protocols
+
+**Blueprints, boilerplates, models, lists, templates! Ready to use and to organize yourself and your team!**
diff --git a/docs/english/organization.md b/docs/social/coletivo/organizacao.en.md
index 0702bd8..0702bd8 100644
--- a/docs/english/organization.md
+++ b/docs/social/coletivo/organizacao.en.md
diff --git a/docs/english/network.md b/docs/social/rede.en.md
index 3793d5a..3793d5a 100644
--- a/docs/english/network.md
+++ b/docs/social/rede.en.md
diff --git a/docs/todo.md b/docs/todo.md
index 0ecaaea..cd611d2 100644
--- a/docs/todo.md
+++ b/docs/todo.md
@@ -2,10 +2,6 @@
Lista de tarefas deste projeto.
-## MkDocs
-
-* Setup [mkdocs-i18n](https://pypi.org/project/mkdocs-i18n/).
-
## Protocol Suite
Um desenvolvimento posterior deste projeto poderia inclusive permitir a
diff --git a/mkdocs.yml b/mkdocs.yml
index 148a499..c6873f7 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -2,13 +2,16 @@
# Mkdocs configuration
#
-site_name: Protocolos
+site_name: Protocolos Sociotécnicos
docs_dir : docs
site_dir : site
+repo_url: https://git.fluxo.info/templates
+edit_uri: ''
+
# Site address is bind to 0.0.0.0 so it works find inside a Docker container.
# A better config would be desirable.
-dev_addr : '0.0.0.0:8040'
+#dev_addr: '0.0.0.0:8040'
theme:
name : material
@@ -28,5 +31,20 @@ plugins:
# bib_dir : "catalogs/biblio"
# csl_file : "apa.csl"
+ - i18n:
+ default_language: pt
+ languages:
+ en:
+ name: English
+ build: true
+ site_name: Sociotechnic Protocols
+ pt:
+ name: Português
+ build: true
+
+ nav_translations:
+ en:
+ Provedor: Provider
+
markdown_extensions:
- footnotes
diff --git a/scripts/provision b/scripts/provision
index cf7b5d7..1b0a8af 100755
--- a/scripts/provision
+++ b/scripts/provision
@@ -13,7 +13,7 @@ DEPENDENCIES="mkdocs apache2 python3-pip pandoc pandoc-citeproc"
DEPENDENCIES="$DEPENDENCIES tor python3-requests python3-bs4 python3-socks python3-pybtex python3-tqdm"
# PyPI dependencies
-DEPENDENCIES_PIP="mkdocs-bibtex mkdocs-material"
+DEPENDENCIES_PIP="mkdocs-bibtex mkdocs-material mkdocs-static-i18n"
# Ensure an up-to-date system
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean