-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.R
39 lines (31 loc) · 815 Bytes
/
script.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
library(dplyr)
# arquivos = list.files(path = "Julia.jl-master", pattern = ".md", full.names = TRUE)
#
# arquivo = arquivos[1]
#
# destino = "joined_text.md"
# write("", file = destino, append = FALSE)
#
# for (arquivo in arquivos) {
# texto = readLines(arquivo)
# write(texto, file = destino, append = TRUE)
# }
# create the .qmd
dir.create("docs")
preamble = '
---
title: "Awesome Julia!"
format:
html:
toc: true
toc-depth: 3
---
Edit the source code [here](https://github.com/vituri/awesome-julia).
'
output_file = 'docs/index.qmd'
write(x = preamble, file = output_file, append = FALSE)
readme = readLines("README.md")
write(x = readme, file = output_file, append = TRUE)
# render
setwd("docs")
quarto::quarto_render(input = "index.qmd", output_format = "html", output_file = "index.html")