]> gitweb.fluxo.info Git - templates.git/commitdiff
Feat: i18n
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Dec 2022 03:27:16 +0000 (00:27 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Dec 2022 03:27:16 +0000 (00:27 -0300)
13 files changed:
docs/atividades/provedor/README.en.md [moved from docs/english/provider/README.md with 100% similarity]
docs/atividades/provedor/hospedagem.en.md [moved from docs/english/provider/hosting/README.md with 100% similarity]
docs/atividades/provedor/hospedagem/carta.en.md [moved from docs/english/provider/hosting/letter.md with 100% similarity]
docs/atividades/provedor/hospedagem/politica.en.md [moved from docs/english/provider/hosting/policy.md with 100% similarity]
docs/atividades/provedor/hospedagem/recusa.en.md [moved from docs/english/provider/hosting/refusal.md with 100% similarity]
docs/atividades/provedor/hospedagem/termo.en.md [moved from docs/english/provider/hosting/terms.md with 100% similarity]
docs/english/README.md [deleted file]
docs/index.en.md [new file with mode: 0644]
docs/social/coletivo/organizacao.en.md [moved from docs/english/organization.md with 100% similarity]
docs/social/rede.en.md [moved from docs/english/network.md with 100% similarity]
docs/todo.md
mkdocs.yml
scripts/provision

diff --git a/docs/english/README.md b/docs/english/README.md
deleted file mode 100644 (file)
index a4c9eb7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-# English version
diff --git a/docs/index.en.md b/docs/index.en.md
new file mode 100644 (file)
index 0000000..774fcb6
--- /dev/null
@@ -0,0 +1,3 @@
+# Sociotechnic Protocols
+
+**Blueprints, boilerplates, models, lists, templates! Ready to use and to organize yourself and your team!**
index 0ecaaeaa38e157795c604970b9f60b0e5d1fde7c..cd611d281f7596c8cbb59dd4cb7b57f131084aef 100644 (file)
@@ -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
index 148a4992db11d865c431728654be59538f38f4aa..c6873f74e2cae431b3f1263b574e8e99bacd6d49 100644 (file)
@@ -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
index cf7b5d74a5cedffcfbf23fb07aadffa8e9e79bf2..1b0a8af1945e7a30292b0e4353b33dc0ec3659e4 100755 (executable)
@@ -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