.
.yml
├── _quarto.qmd
├── about.qmd
├── index.Rproj
├── make-ghpage-doc.css
└── styles
, 5 files 1 directory
by frankthetank
R
Python
_quarto.yml
project:
type: website
website:
title: "fancy-site-doc"
navbar:
left:
- text: Home
menu:
- href: index.qmd
text: "0: Intro"
- href: home/how_to.qmd
text: "1: How to create this doc"
- href: home/link_code.qmd
text: "2: How to link code to doc"
- href: home/renv.qmd
text: "3: Virtual Environments"
- text: Scripts
menu:
- href: scripts/script.qmd
text: "0: my script"
- text: Plots
menu:
- href: plots/plot1.qmd
text: "0: my plot"
format:
html:
theme: cosmo
css: styles.css
scss: styles.scss
toc: true
editor: visual
external_script.R
# ----- Read in Libraries ----- #
## ---- libraries
library(dplyr)
library(magrittr)
## ---- stop
# ----- Read in the File ----- #
## ---- read-chunk
(df <- airquality %>%
arrange(desc(Month)) %>%
as_tibble())
## ---- stop
# ----- Make a Plot ----- #
## ---- make-plot
(
plot <- df |>
ggplot() +
geom_point(aes(Ozone,Temp)) +
facet_grid(~Month)
)
## ---- stop
.github/workflows/quarto-publish.yml
on:
workflow_dispatch:
push:
branches: main
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Setup Renv
uses: r-lib/actions/setup-renv@v2
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
styles.scss
/*-- scss:defaults --*/
/* potential themes */
$light-blue: #ABBECB;
$back-blue: #160e1d;
$med-back-blue: #274E5A;
$crash-blue: #88AEB3;
$fade-blue: #BDCFD4;
$text-blue: #DEE2E2;
$light-back : #bdcad4;
/*-- scss:rules --*/
.myframe {
box-shadow: $back-blue 10px 5px 5px 0px;
}
.slide1{
h1 {
font-size: 1.5em;
color: $text-blue;
z-index: 1;
}
h2, p, pre {
color: $text-blue;
font-size: 2em;
z-index: 1;
}
ul {
text-align: center;
}
}