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/en/00-header.yml | 20 ++++++++++++++++++++ structure/notes/en/00-preamble.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 structure/notes/en/00-header.yml create mode 100644 structure/notes/en/00-preamble.md (limited to 'structure/notes/en') 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('

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