diff options
Diffstat (limited to 'structure/notes/pt-br')
-rw-r--r-- | structure/notes/pt-br/00-header.yml | 20 | ||||
-rw-r--r-- | structure/notes/pt-br/00-preamble.md | 32 |
2 files changed, 52 insertions, 0 deletions
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 @@ +<!-- 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('Cardeno 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/><br/>') + 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/>') +} +``` |