From d5f4b967422ed898d15aa5941f777155ddb3e3c5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 10 Jun 2024 14:09:41 +0100 Subject: Feat: towards localization support --- structure/notes/00-header.yml | 20 -------------------- structure/notes/00-preamble.md | 32 -------------------------------- structure/notes/en/00-header.yml | 20 ++++++++++++++++++++ structure/notes/en/00-preamble.md | 32 ++++++++++++++++++++++++++++++++ structure/notes/pt-br/00-header.yml | 20 ++++++++++++++++++++ structure/notes/pt-br/00-preamble.md | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 52 deletions(-) delete mode 100644 structure/notes/00-header.yml delete mode 100644 structure/notes/00-preamble.md create mode 100644 structure/notes/en/00-header.yml create mode 100644 structure/notes/en/00-preamble.md create mode 100644 structure/notes/pt-br/00-header.yml create mode 100644 structure/notes/pt-br/00-preamble.md (limited to 'structure/notes') diff --git a/structure/notes/00-header.yml b/structure/notes/00-header.yml deleted file mode 100644 index 1404cad..0000000 --- a/structure/notes/00-header.yml +++ /dev/null @@ -1,20 +0,0 @@ -site : "bookdown::bookdown_site" -output: - bookdown::gitbook: - config: - toc: - collapse: section - toolbar: - # Default search indexing is very slow: there's lots of notes to be indexed at each page load - # Because of that, it may be better to disable search by default - #search: no - # Fuse search engine is faster - search: - engine: fuse - sharing: no - fontsettings: - theme: night - family: sans - size: 2 - #split_by: chapter+number - #split_by: section diff --git a/structure/notes/00-preamble.md b/structure/notes/00-preamble.md deleted file mode 100644 index 37d097e..0000000 --- a/structure/notes/00-preamble.md +++ /dev/null @@ -1,32 +0,0 @@ - - - - - -```{r echo=FALSE, results='asis'} -if (knitr::is_html_output()) { - cat('# Início {#index .unnumbered}') - cat("\n") - cat('') - cat("\n") - cat("

Sobre

") - cat("\n") - cat('') - cat(readLines('DISCLAIMER'), sep='\n') - cat('') - cat('

') - cat('Cardeno Vivo - Versão ') - cat(readLines('.metadata/revision.txt'), sep='\n') - cat(' - compilada em ') - cat(readLines('.metadata/date.txt'), sep='\n') - cat('.') - cat('

') - cat("\n") - cat("

Créditos

") - cat("\n") - cat(paste(rmarkdown::metadata$title, "
", "Copyleft ©", readLines('.metadata/year.txt'), rmarkdown::metadata$author, readLines('snippets/contact.txt'), sep=' ')) - cat('

') - cat(readLines('LICENSE'), sep='\n') - cat('

') -} -``` diff --git a/structure/notes/en/00-header.yml b/structure/notes/en/00-header.yml new file mode 100644 index 0000000..1404cad --- /dev/null +++ b/structure/notes/en/00-header.yml @@ -0,0 +1,20 @@ +site : "bookdown::bookdown_site" +output: + bookdown::gitbook: + config: + toc: + collapse: section + toolbar: + # Default search indexing is very slow: there's lots of notes to be indexed at each page load + # Because of that, it may be better to disable search by default + #search: no + # Fuse search engine is faster + search: + engine: fuse + sharing: no + fontsettings: + theme: night + family: sans + size: 2 + #split_by: chapter+number + #split_by: section diff --git a/structure/notes/en/00-preamble.md b/structure/notes/en/00-preamble.md new file mode 100644 index 0000000..37d097e --- /dev/null +++ b/structure/notes/en/00-preamble.md @@ -0,0 +1,32 @@ + + + + + +```{r echo=FALSE, results='asis'} +if (knitr::is_html_output()) { + cat('# Início {#index .unnumbered}') + cat("\n") + cat('') + cat("\n") + cat("

Sobre

") + cat("\n") + cat('') + cat(readLines('DISCLAIMER'), sep='\n') + cat('') + cat('

') + cat('Cardeno Vivo - Versão ') + cat(readLines('.metadata/revision.txt'), sep='\n') + cat(' - compilada em ') + cat(readLines('.metadata/date.txt'), sep='\n') + cat('.') + cat('

') + cat("\n") + cat("

Créditos

") + cat("\n") + cat(paste(rmarkdown::metadata$title, "
", "Copyleft ©", readLines('.metadata/year.txt'), rmarkdown::metadata$author, readLines('snippets/contact.txt'), sep=' ')) + cat('

') + cat(readLines('LICENSE'), sep='\n') + cat('

') +} +``` diff --git a/structure/notes/pt-br/00-header.yml b/structure/notes/pt-br/00-header.yml new file mode 100644 index 0000000..1404cad --- /dev/null +++ b/structure/notes/pt-br/00-header.yml @@ -0,0 +1,20 @@ +site : "bookdown::bookdown_site" +output: + bookdown::gitbook: + config: + toc: + collapse: section + toolbar: + # Default search indexing is very slow: there's lots of notes to be indexed at each page load + # Because of that, it may be better to disable search by default + #search: no + # Fuse search engine is faster + search: + engine: fuse + sharing: no + fontsettings: + theme: night + family: sans + size: 2 + #split_by: chapter+number + #split_by: section diff --git a/structure/notes/pt-br/00-preamble.md b/structure/notes/pt-br/00-preamble.md new file mode 100644 index 0000000..37d097e --- /dev/null +++ b/structure/notes/pt-br/00-preamble.md @@ -0,0 +1,32 @@ + + + + + +```{r echo=FALSE, results='asis'} +if (knitr::is_html_output()) { + cat('# Início {#index .unnumbered}') + cat("\n") + cat('') + cat("\n") + cat("

Sobre

") + cat("\n") + cat('') + cat(readLines('DISCLAIMER'), sep='\n') + cat('') + cat('

') + cat('Cardeno Vivo - Versão ') + cat(readLines('.metadata/revision.txt'), sep='\n') + cat(' - compilada em ') + cat(readLines('.metadata/date.txt'), sep='\n') + cat('.') + cat('

') + cat("\n") + cat("

Créditos

") + cat("\n") + cat(paste(rmarkdown::metadata$title, "
", "Copyleft ©", readLines('.metadata/year.txt'), rmarkdown::metadata$author, readLines('snippets/contact.txt'), sep=' ')) + cat('

') + cat(readLines('LICENSE'), sep='\n') + cat('

') +} +``` -- cgit v1.2.3