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/book/en/00-preamble.md | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 structure/book/en/00-preamble.md (limited to 'structure/book/en/00-preamble.md') diff --git a/structure/book/en/00-preamble.md b/structure/book/en/00-preamble.md new file mode 100644 index 0000000..b11b806 --- /dev/null +++ b/structure/book/en/00-preamble.md @@ -0,0 +1,55 @@ + + + + + +```{r echo=FALSE, results='asis'} +if (knitr::is_html_output()) { + cat('# Start {#index .unnumbered}') + cat("\n") + cat('') + cat("\n") + cat("

Sobre

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

') + cat('Living Book - Version ') + cat(readLines('.metadata/revision.txt'), sep='\n') + cat(' - compiled at ') + cat(readLines('.metadata/date.txt'), sep='\n') + cat('.') + cat('
') + cat('Older versions available in the archive.') + cat('
') + cat('Notebook available here.') + cat('

') + cat(readLines('snippets/project.txt')) + cat(' - ') + cat(readLines('snippets/volume.txt')) + cat('
') + cat('Published by ') + cat(rmarkdown::metadata$publisher) + cat('
') + cat('Published at ') + cat(readLines('snippets/url.txt'), sep='\n') + cat('

') + cat(readLines('snippets/keywords.txt'), sep='\n') + cat("\n") + cat("

Credits

") + 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('

') + cat(readLines('snippets/cover.txt'), sep='\n') + cat("

Versão PDF

") + cat("\n") + cat('Download the PDF here, or browse it below:') + cat("\n") + cat('

') + cat('') + cat('

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