diff --git a/content/guides/_index.es.md b/content/guides/_index.es.md new file mode 100644 index 0000000000..8b5e201021 --- /dev/null +++ b/content/guides/_index.es.md @@ -0,0 +1,3 @@ ++++ +title="Guías" ++++ diff --git a/content/guides/_index.md b/content/guides/_index.md new file mode 100644 index 0000000000..16bfd25b75 --- /dev/null +++ b/content/guides/_index.md @@ -0,0 +1,3 @@ ++++ +title="Guides" ++++ diff --git a/data/en/resources/resources.json b/data/en/resources/resources.json index 9def27704a..162ce0de57 100644 --- a/data/en/resources/resources.json +++ b/data/en/resources/resources.json @@ -2,105 +2,126 @@ { "title": "Contributing Guide", "text": "The purpose of this guide is to welcome you to rOpenSci and help you recognize yourself as a potential contributor.", - "url": "https://contributing.ropensci.org" + "url": "https://contributing.ropensci.org", + "type": "guide" }, { "title": "Packages", "text": "Software helping work with local and remote scientific data sources.", - "url": "/packages" + "url": "/packages", + "type": "content" }, { "title": "Package Use Cases", "text": "Practical illustrations of our software in action", - "url": "/usecases/" + "url": "/usecases/", + "type": "content" }, { "title": "Developer Guide", "text": "Our best practice guide for R package development and peer-review.", - "url": "https://devguide.ropensci.org" + "url": "https://devguide.ropensci.org", + "type": "guide" }, { "title": "Software Peer Review", "text": "About our system for R package peer review.", - "url": "/software-review" -}, -{ - "title": "Forum", - "text": " Ask and answer questions about our packages or resources; report use cases.", - "url": "https://discuss.ropensci.org" + "url": "/software-review", + "type": "content" }, { "title": "Archive", "text": "All our blog posts, community calls and tech notes in one place.", - "url": "/archive" + "url": "/archive", + "type": "content" }, { "title": "Community Call Archive", "text": "All recordings from previous webinars.", - "url": "/commcalls/" + "url": "/commcalls/", + "type": "content" }, { "title": "Newsletter", "text": "A regular digest of recent rOpenSci activities and updates.", - "url": "/news" + "url": "/news", + "type": "content" }, { "title": "Books", "text": "E-books about our tooling", - "url": "https://books.ropensci.org" + "url": "https://books.ropensci.org", + "type": "content" }, { "title": "Talks, Training and Publications", "text": "External communications about our work and teaching", - "url": "https://ropensci.org/talks-papers/" + "url": "https://ropensci.org/talks-papers/", + "type": "content" }, { "title": "Our Blogging Guide", "text": "Guide for authors and editors of blog posts and tech notes for the rOpenSci website.", - "url": "https://blogguide.ropensci.org/" + "url": "https://blogguide.ropensci.org/", + "type": "guide" }, { - "title": "ropensci GitHub Organization", + "title": "ropensci", "text": "Mature R packages contributed by rOpenSci staff or peer-reviewed packages.", - "url": "https://github.com/ropensci" + "url": "https://github.com/ropensci", + "type": "github" }, { - "title": "ropenscilabs GitHub Organization", + "title": "ropenscilabs", "text": "Incubator projects.", - "url": "https://github.com/ropenscilabs" + "url": "https://github.com/ropenscilabs", + "type": "github" }, { - "title": "ropensci-review-tools GitHub Organization", + "title": "ropensci-review-tools", "text": "Tooling (packages) for software review.", - "url": "https://github.com/ropensci-review-tools" + "url": "https://github.com/ropensci-review-tools", + "type": "github" }, { - "title": "ropensci-books GitHub Organization", + "title": "ropensci-books", "text": "Books about rOpenSci packages or maintained by rOpenSci.", - "url": "https://github.com/ropensci-books" + "url": "https://github.com/ropensci-books", + "type": "github" }, { - "title": "ropensci-training GitHub Organization", + "title": "ropensci-training", "text": "Mostly legacy training materials.", - "url": "https://github.com/ropensci-training" + "url": "https://github.com/ropensci-training", + "type": "github" }, { - "title": "ropensci-org GitHub Organization", + "title": "ropensci-org", "text": "Miscellaneous organization tooling.", - "url": "https://github.com/ropensci-org" + "url": "https://github.com/ropensci-org", + "type": "github" }, { - "title": "r-universe GitHub Organization", + "title": "r-universe", "text": "R-universe infrastructure.", - "url": "https://github.com/r-universe-org" + "url": "https://github.com/r-universe-org", + "type": "github" }, { - "title": "ropensci-archive GitHub Organization", + "title": "ropensci-archive", "text": "Abandoned projects.", - "url": "https://github.com/ropensci-archive" + "url": "https://github.com/ropensci-archive", + "type": "github" }, { - "title": "ropensci-docs GitHub Organization", + "title": "ropensci-docs", "text": "Documentation of rOpenSci packages, automatically updated.", - "url": "https://github.com/ropensci-docs" + "url": "https://github.com/ropensci-docs", + "type": "github" +}, +{ + "title": "rOpenSci Localization and Translation Guidelines", + "text": "Why and how we localize and translate our resources.", + "url": "https://translationguide.ropensci.org/", + "type": "guide" }] diff --git a/data/es/resources/resources.json b/data/es/resources/resources.json index fe4202b6af..5a405c554d 100644 --- a/data/es/resources/resources.json +++ b/data/es/resources/resources.json @@ -2,7 +2,8 @@ { "title": "Guía de colaboración", "text": "El propósito de esta guía es darte la bienvenida a rOpenSci y ayudarte a reconocerte como potencial participante", -"url": "https://contributing.ropensci.org" +"url": "https://contributing.ropensci.org", + "type": "guide" }, { "title": "Paquetes", @@ -17,7 +18,8 @@ { "title": "Guía para desarrollar y revisar paquetes", "text": "Nuestra guía de mejores prácticas para el desarrollo de paquetes R y la revisión por pares", -"url": "https://devguide.ropensci.org/es/index.es.html" +"url": "https://devguide.ropensci.org/es/index.es.html", + "type": "guide" }, { "title": "Revisión por Pares de Software", @@ -103,4 +105,10 @@ "title": "Organización de GitHub ropensci-docs", "text": "Documentación de los paquetes rOpenSci, actualizada automáticamente", "url": "https://github.com/ropensci-docs" +}, +{ +"title": "Guía de localización y traducción de rOpenSci", +"text": "Cómo y porqué traducimos y localizamos nuestros recursos.", +"url": "https://translationguide.ropensci.org/es/index.es.html", +"type": "guide" }] \ No newline at end of file diff --git a/themes/ropensci/i18n/en.toml b/themes/ropensci/i18n/en.toml index 52c5580705..54506deba7 100644 --- a/themes/ropensci/i18n/en.toml +++ b/themes/ropensci/i18n/en.toml @@ -356,4 +356,7 @@ other = "Interview" [Interviews] - other = "Interviews" \ No newline at end of file + other = "Interviews" + +[Guides] + other = 'Guides' diff --git a/themes/ropensci/i18n/es.toml b/themes/ropensci/i18n/es.toml index f62f0d5552..313ad5d8d4 100644 --- a/themes/ropensci/i18n/es.toml +++ b/themes/ropensci/i18n/es.toml @@ -358,3 +358,6 @@ [Interviews] other = "Entrevistas" +[Guides] + other = 'Guías' + diff --git a/themes/ropensci/layouts/guides/list.html b/themes/ropensci/layouts/guides/list.html new file mode 100644 index 0000000000..934577a05a --- /dev/null +++ b/themes/ropensci/layouts/guides/list.html @@ -0,0 +1,29 @@ +{{ define "main" }} + + +
+
+ +
+
+

{{ .Title | markdownify }}

+

+ {{ .Content }} +

+
+
+ + +{{ $data := index .Site.Data .Language.Lang }} +{{ $resources := $data.resources.resources }} +{{ $guides := (where $resources "type" "guide" )}} +{{ partial "resources/resources-cards" (dict "resources" $guides ) }} +
+
+{{ $askpartial := (partial "translate-path" (dict "name" "whole-page-fragments/ask" "language" .Language.Lang )) }} +{{ partial $askpartial (dict "Site" .Site "divider" "rl" ) }} +{{ $newsletterpartial := (partial "translate-path" (dict "name" "whole-page-fragments/newsletter" "language" .Language.Lang )) }} +{{ partial $newsletterpartial (dict "Site" .Site "divider" "rl" ) }} +{{ $brandpartial := (partial "translate-path" (dict "name" "whole-page-fragments/brands" "language" .Language.Lang )) }} +{{ partial $brandpartial (dict "Site" .Site "divider" "lr" ) }} +{{ end }} diff --git a/themes/ropensci/layouts/partials/skeleton/navbar.html b/themes/ropensci/layouts/partials/skeleton/navbar.html index 45275a27d3..39999b6763 100644 --- a/themes/ropensci/layouts/partials/skeleton/navbar.html +++ b/themes/ropensci/layouts/partials/skeleton/navbar.html @@ -110,6 +110,7 @@