diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-06-09 12:18:06 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-06-09 12:18:06 +0100 |
commit | a45b39d7995e4c0b57272d4fc286eb54e02b9c70 (patch) | |
tree | 46f3a8bafc32df8b02d5c1906137c2881e9d8ce1 /structure/00-preamble.md | |
parent | ab90f9241d0867206858c306c8d7fb08ee7f0275 (diff) | |
download | bookup-a45b39d7995e4c0b57272d4fc286eb54e02b9c70.tar.gz bookup-a45b39d7995e4c0b57272d4fc286eb54e02b9c70.tar.bz2 |
Unified configuration for book and notes
Diffstat (limited to 'structure/00-preamble.md')
-rw-r--r-- | structure/00-preamble.md | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/structure/00-preamble.md b/structure/00-preamble.md deleted file mode 100644 index fea2bc0..0000000 --- a/structure/00-preamble.md +++ /dev/null @@ -1,53 +0,0 @@ -<!-- Bookdown HTML before-body file --> - -<!-- Hack to generate a proper cover and fix the missing index.html file --> -<!-- See https://stackoverflow.com/questions/58340924/bookdown-generates-index-file-with-a-chapter-title-instead-of-index-html-when --> -<!-- See https://bookdown.org/yihui/rmarkdown-cookbook/document-metadata.html --> -```{r echo=FALSE, results='asis'} -if (knitr::is_html_output()) { - cat('# Início {#index .unnumbered}') - cat("\n") - cat('<img src="images/cover.png">') - cat("\n") - cat("<h2>Sobre</h2>") - cat("\n") - cat('<em>') - cat(readLines('DISCLAIMER'), sep='\n') - cat('</em>') - cat('<br/><br/>') - cat('Livro Vivo - Versão <strong><em>') - cat(readLines('.metadata/revision.txt'), sep='\n') - cat('</em></strong> - compilada em <strong><em>') - cat(readLines('.metadata/date.txt'), sep='\n') - cat('</em></strong>.') - cat('<br/>') - cat('Versões anteriores disponíveis no <a href="/archive">arquivo</a>.') - cat('<br/><br/>') - cat(readLines('snippets/project.txt')) - cat(' - ') - cat(readLines('snippets/volume.txt')) - cat('<br/>') - cat('Publicado por ') - cat(rmarkdown::metadata$publisher) - cat('<br/>') - cat('Publicado em ') - cat(readLines('snippets/url.txt'), sep='\n') - cat('<br/><br/>') - cat(readLines('snippets/keywords.txt'), sep='\n') - cat("\n") - cat("<h2>Créditos</h2>") - cat("\n") - cat(paste(rmarkdown::metadata$title, "<br/>", "Copyleft ©", readLines('.metadata/year.txt'), rmarkdown::metadata$author, readLines('snippets/contact.txt'), sep=' ')) - cat('<br/><br/>') - cat(readLines('LICENSE'), sep='\n') - cat('<br/><br/>') - cat(readLines('snippets/cover.txt'), sep='\n') - cat("<h2>Versão PDF</h2>") - cat("\n") - cat('Baixe a versão PDF <a href="book.pdf">aqui</a>, ou navegue abaixo:') - cat("\n") - cat('<br/><br/>') - cat('<embed src="book.pdf" width="100%" height="375" type="application/pdf">') - cat('<br/><br/>') -} -``` |