generated from curso-r/template-pagina-do-curso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 05f9945
Showing
14 changed files
with
975 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
turma: | ||
description: 'turma: codigo da turma. ex: 202110-r4ds-1' | ||
required: true | ||
default: '202110-r4ds-1' | ||
nome_curso: | ||
description: 'nome_curso: Nome do curso' | ||
required: true | ||
default: 'R para Ciência de Dados 1' | ||
download_material: | ||
description: 'download_material: TRUE ou FALSE, se o curso tem zip para baixar' | ||
required: true | ||
default: 'TRUE' | ||
|
||
name: render-readme | ||
|
||
jobs: | ||
render-readme: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: 2 | ||
packages: | ||
any::knitr | ||
any::rmarkdown | ||
any::fs | ||
any::tibble | ||
any::dplyr | ||
any::glue | ||
any::readr | ||
github::curso-r/CursoRopen | ||
|
||
- name: Execute Script | ||
env: | ||
TURMA: ${{ github.event.inputs.turma }} | ||
NOME_CURSO: ${{ github.event.inputs.nome_curso }} | ||
DOWNLOAD_MATERIAL: ${{ github.event.inputs.download_material }} | ||
run: | | ||
Rscript "assets/render_readme.R" | ||
- name: Commit results | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add README.Rmd | ||
git add README.md | ||
git add _config.yml | ||
git commit -m "Atualizando README" || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata | ||
README.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
--- | ||
output: github_document | ||
params: | ||
turma: 202102-intro-programacao | ||
nome_curso: ATUALIZANDO.... | ||
download_material: 'TRUE' | ||
--- | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
```{r, include = FALSE} | ||
knitr::opts_chunk$set(collapse = TRUE, comment = "#>", echo = FALSE, | ||
warning = FALSE, message = FALSE) | ||
path_to_url <- function(path) { | ||
path |> | ||
tibble::tibble(file = _) |> | ||
dplyr::mutate( | ||
url = file |> | ||
paste0("https://curso-r.github.io/", params$turma, "/", ... = _) |> | ||
paste0("[", fs::path_file(file), "](", ... = _, ")") | ||
) |> | ||
dplyr::select(url) | ||
} | ||
``` | ||
|
||
## Informações importantes | ||
|
||
```{r results = 'asis'} | ||
# Baixar o ZIP do repo da turma (o repo principal não vai ter os scripts feitos em aula) | ||
if (params$download_material == "TRUE") { | ||
glue::glue("- [Clique aqui](https://github.com/curso-r/{params$turma}/archive/refs/heads/main.zip) para baixar o material do curso.") | ||
} | ||
``` | ||
|
||
- Nosso blog: [https://curso-r.com/blog/](https://curso-r.com/blog/) | ||
|
||
- Nosso fórum: [https://discourse.curso-r.com/](https://discourse.curso-r.com/) | ||
|
||
- Nossos livros: | ||
- [Ciência de Dados em R](https://livro.curso-r.com/) | ||
- [Zen do R](https://curso-r.github.io/zen-do-r/) | ||
- [Programando em Shiny](https://programando-em-shiny.curso-r.com/) | ||
- [Beautiful R](https://curso-r.github.io/beautiful-r/) (em inglês) | ||
|
||
|
||
|
||
## Dúvidas | ||
|
||
Fora do horário de aula ou monitoria: | ||
|
||
- Perguntas gerais sobre o curso deverão ser feitas no Classroom. | ||
|
||
- Perguntas sobre R, principalmente as que envolverem código, deverão ser enviadas no [nosso fórum](https://discourse.curso-r.com/). | ||
|
||
## Slides | ||
|
||
```{r} | ||
"slides/" |> | ||
fs::dir_ls(glob = "*.html", fail = FALSE) |> | ||
path_to_url() |> | ||
dplyr::select(Slide = url) |> | ||
knitr::kable() | ||
``` | ||
|
||
|
||
## Scripts utilizados em aula | ||
|
||
```{r} | ||
"exemplos_de_aula/" |> | ||
fs::dir_ls(fail = FALSE) |> | ||
path_to_url() |> | ||
dplyr::select(Exemplo = url) |> | ||
knitr::kable() | ||
``` | ||
## Práticas | ||
|
||
```{r} | ||
"praticas/" |> | ||
fs::dir_ls(fail = FALSE) |> | ||
path_to_url() |> | ||
dplyr::select(Exemplo = url) |> | ||
knitr::kable() | ||
``` | ||
|
||
## Lição de casa | ||
|
||
```{r} | ||
"exercicios/" |> | ||
fs::dir_ls(fail = FALSE) |> | ||
path_to_url() |> | ||
dplyr::select(Exercício = url) |> | ||
knitr::kable() | ||
``` | ||
|
||
|
||
## Material extra | ||
|
||
Referências extras relacionadas com o conteúdos das aulas, ou materiais que | ||
comentamos quando tiramos dúvidas (não necessariamente são relacionadas com o | ||
conteúdo da aula). | ||
|
||
|
||
```{r echo=FALSE, message=FALSE, warning=FALSE} | ||
arquivo_csv_materiais <- "extras.csv" | ||
if (file.exists(arquivo_csv_materiais)) { | ||
arquivo_csv_materiais |> | ||
readr::read_csv2(show_col_types = FALSE) |> | ||
knitr::kable() | ||
} else { | ||
cat("Em breve!") | ||
} | ||
``` | ||
|
||
## Redes sociais da Curso-R | ||
|
||
- Youtube: https://www.youtube.com/c/CursoR6/featured | ||
|
||
- Instagram: https://www.instagram.com/cursoo_r/ | ||
|
||
- Twitter: https://twitter.com/curso_r | ||
|
||
- Linkedin: https://www.linkedin.com/company/curso-r/ | ||
|
||
- Facebook: https://www.facebook.com/cursodeR | ||
|
||
```{r include = FALSE} | ||
# Criar arquivo _config.yml | ||
if (params$download_material == TRUE) { | ||
content <- glue::glue( | ||
"theme: jekyll-theme-minimal", "\n", | ||
"logo: assets/logo.png", "\n", | ||
"title: {params$nome_curso}", "\n", | ||
"show_downloads: true", "\n", | ||
"link_material: 'https://github.com/curso-r/{params$turma}/archive/refs/heads/main.zip'", | ||
"\n" | ||
) | ||
} else { | ||
content <- glue::glue( | ||
"theme: jekyll-theme-minimal", "\n", | ||
"logo: assets/logo.png", "\n", | ||
"title: {params$nome_curso}", "\n", | ||
"show_downloads: false", "\n" | ||
) | ||
} | ||
readr::write_lines(content, "_config.yml") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
## Informações importantes | ||
|
||
- [Clique | ||
aqui](https://github.com/curso-r/202102-intro-programacao/archive/refs/heads/main.zip) | ||
para baixar o material do curso. | ||
|
||
- Nosso blog: <https://curso-r.com/blog/> | ||
|
||
- Nosso fórum: <https://discourse.curso-r.com/> | ||
|
||
- Nossos livros: | ||
|
||
- [Ciência de Dados em R](https://livro.curso-r.com/) | ||
- [Zen do R](https://curso-r.github.io/zen-do-r/) | ||
- [Programando em | ||
Shiny](https://programando-em-shiny.curso-r.com/) | ||
- [Beautiful R](https://curso-r.github.io/beautiful-r/) (em | ||
inglês) | ||
|
||
## Dúvidas | ||
|
||
Fora do horário de aula ou monitoria: | ||
|
||
- Perguntas gerais sobre o curso deverão ser feitas no Classroom. | ||
|
||
- Perguntas sobre R, principalmente as que envolverem código, deverão | ||
ser enviadas no [nosso fórum](https://discourse.curso-r.com/). | ||
|
||
## Slides | ||
|
||
| Slide | | ||
|:------| | ||
|
||
## Scripts utilizados em aula | ||
|
||
| Exemplo | | ||
|:--------| | ||
|
||
## Práticas | ||
|
||
| Exemplo | | ||
|:--------| | ||
|
||
## Lição de casa | ||
|
||
| Exercício | | ||
|:----------| | ||
|
||
## Material extra | ||
|
||
Referências extras relacionadas com o conteúdos das aulas, ou materiais | ||
que comentamos quando tiramos dúvidas (não necessariamente são | ||
relacionadas com o conteúdo da aula). | ||
|
||
#> Em breve! | ||
|
||
## Redes sociais da Curso-R | ||
|
||
- Youtube: <https://www.youtube.com/c/CursoR6/featured> | ||
|
||
- Instagram: <https://www.instagram.com/cursoo_r/> | ||
|
||
- Twitter: <https://twitter.com/curso_r> | ||
|
||
- Linkedin: <https://www.linkedin.com/company/curso-r/> | ||
|
||
- Facebook: <https://www.facebook.com/cursodeR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
theme: jekyll-theme-minimal | ||
logo: assets/logo.png | ||
title: ATUALIZANDO.... | ||
show_downloads: true | ||
link_material: 'https://github.com/curso-r/202102-intro-programacao/archive/refs/heads/main.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ site.lang | default: "en-US" }}"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{% seo %} | ||
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}"> | ||
<script src="https://code.jquery.com/jquery-3.3.0.min.js" integrity="sha256-RTQy8VOmNlT6b2PIRur37p6JEBZUE7o8wPgMvu18MC4=" crossorigin="anonymous"></script> | ||
<script src="{{ '/assets/js/main.js' | relative_url }}"></script> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<header> | ||
{% if site.logo %} | ||
<img src="{{site.logo | relative_url}}" alt="Logo" /> | ||
{% endif %} | ||
|
||
<p>{{ site.description | default: site.github.project_tagline }}</p> | ||
|
||
{% if site.show_downloads %} | ||
<ul class="downloads"> | ||
<li><a href="{{ site.link_material }}">Baixe o <strong>MATERIAL</strong></a></li> | ||
<li><a href="{{ site.github.repository_url }}">Veja no <strong>GitHub</strong></a></li> | ||
<li><a href="https://www.curso-r.com/cursos">Mais <strong>CURSOS</strong></a></li> | ||
</ul> | ||
{% endif %} | ||
|
||
<div class = "toc"> | ||
<nav> | ||
<ul></ul> | ||
</nav> | ||
</div> | ||
|
||
|
||
</header> | ||
<section> | ||
|
||
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1> | ||
|
||
{{ content }} | ||
|
||
</section> | ||
<footer> | ||
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p> | ||
</footer> | ||
</div> | ||
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script> | ||
{% if site.google_analytics %} | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} | ||
</body> | ||
</html> |
Oops, something went wrong.