From: Silvio Rhatto Date: Fri, 16 Dec 2022 03:27:16 +0000 (-0300) Subject: Feat: i18n X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=629a734be3a5594ee470710f1b4035cd4312f637;p=templates.git Feat: i18n --- diff --git a/docs/english/provider/README.md b/docs/atividades/provedor/README.en.md similarity index 100% rename from docs/english/provider/README.md rename to docs/atividades/provedor/README.en.md diff --git a/docs/english/provider/hosting/README.md b/docs/atividades/provedor/hospedagem.en.md similarity index 100% rename from docs/english/provider/hosting/README.md rename to docs/atividades/provedor/hospedagem.en.md diff --git a/docs/english/provider/hosting/letter.md b/docs/atividades/provedor/hospedagem/carta.en.md similarity index 100% rename from docs/english/provider/hosting/letter.md rename to docs/atividades/provedor/hospedagem/carta.en.md diff --git a/docs/english/provider/hosting/policy.md b/docs/atividades/provedor/hospedagem/politica.en.md similarity index 100% rename from docs/english/provider/hosting/policy.md rename to docs/atividades/provedor/hospedagem/politica.en.md diff --git a/docs/english/provider/hosting/refusal.md b/docs/atividades/provedor/hospedagem/recusa.en.md similarity index 100% rename from docs/english/provider/hosting/refusal.md rename to docs/atividades/provedor/hospedagem/recusa.en.md diff --git a/docs/english/provider/hosting/terms.md b/docs/atividades/provedor/hospedagem/termo.en.md similarity index 100% rename from docs/english/provider/hosting/terms.md rename to 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 similarity index 100% rename from docs/english/organization.md rename to docs/social/coletivo/organizacao.en.md diff --git a/docs/english/network.md b/docs/social/rede.en.md similarity index 100% rename from docs/english/network.md rename to 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