-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
6 changed files
with
224 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,36 @@ | ||
// Config options: https://github.com/rocker-org/devcontainer-templates/tree/main/src/r-ver | ||
{ | ||
"name": "R (rocker/r-ver base)", | ||
"image": "ghcr.io/rocker-org/devcontainer/r-ver:4.4", | ||
// Add software | ||
"features": { | ||
// Required to test with knitr | ||
// R package config: https://github.com/rocker-org/devcontainer-features/blob/main/src/r-rig/README.md | ||
"ghcr.io/rocker-org/devcontainer-features/r-rig:1": { | ||
"version": "none", | ||
"installRMarkdown": true, | ||
"installJupyterlab": true, | ||
"installRadian": true | ||
}, | ||
// You may wish to switch prerelease to latest for stable development | ||
// Quarto configuration : https://github.com/rocker-org/devcontainer-features/blob/main/src/quarto-cli/README.md | ||
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": { | ||
"installTinyTex": true, | ||
"version": "prerelease" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"r.rterm.linux": "/usr/local/bin/radian", | ||
"r.bracketedPaste": true, | ||
"r.plot.useHttpgd": true, | ||
"[r]": { | ||
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?" | ||
} | ||
}, | ||
// Enable a development set of extensions for Lua and Quarto | ||
"extensions": ["quarto.quarto", "sumneko.lua", "GitHub.copilot"] | ||
} | ||
} | ||
} |
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,52 @@ | ||
on: | ||
push: | ||
branches: [main, master] | ||
release: | ||
types: [published] | ||
workflow_dispatch: {} | ||
|
||
name: demo-website | ||
|
||
jobs: | ||
demo-page: | ||
runs-on: ubuntu-latest | ||
# Only restrict concurrency for non-PR jobs | ||
concurrency: | ||
group: quarto-publish-${{ github.event_name != 'pull_request' || github.run_id }} | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
steps: | ||
|
||
- name: "Check out repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up Quarto" | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
version: "pre-release" | ||
|
||
# Render the Quarto file | ||
- name: "Render working directory" | ||
uses: quarto-dev/quarto-actions/render@v2 | ||
with: | ||
path: "docs" | ||
|
||
|
||
# Upload a tar file that will work with GitHub Pages | ||
# Make sure to set a retention day to avoid running into a cap | ||
# This artifact shouldn't be required after deployment onto pages was a success. | ||
- name: Upload Pages artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
retention-days: 1 | ||
path: 'docs/_site' | ||
|
||
|
||
# Use an Action deploy to push the artifact onto GitHub Pages | ||
# This requires the `Action` tab being structured to allow for deployment | ||
# instead of using `docs/` or the `gh-pages` branch of the repository | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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,2 @@ | ||
/.quarto/ | ||
_site/ |
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,87 @@ | ||
# Based on the Stanford University brand guidelines: https://identity.stanford.edu/ | ||
# This file is used to define the brand colors, typography, and logo for the site / Shiny apps. | ||
|
||
# Important: | ||
# Please note that is _not_ an official Stanford University product. | ||
|
||
meta: | ||
name: | ||
full: "Stanford University" | ||
short: "Stanford" | ||
link: | ||
home: "https://www.stanford.edu" | ||
facebook: "https://www.facebook.com/stanford" | ||
twitter: "https://twitter.com/stanford" | ||
linkedin: "https://www.linkedin.com/school/stanford-university" | ||
|
||
color: | ||
palette: | ||
cardinal: "#8C1515" # Stanford Cardinal | ||
cardinal-dark: "#820000" | ||
cardinal-light: "#B83A4B" | ||
cool-grey: "#4D4F53" | ||
warm-grey: "#3F3C30" | ||
beige: "#F4F4F4" | ||
stone: "#544948" | ||
sky: "#007C92" | ||
fog: "#DAD7CB" | ||
redwood: "#8D3C1E" | ||
link-blue: "#006CB8" | ||
|
||
foreground: "#2E2D29" # Dark charcoal for text | ||
background: "#FFFFFF" # White | ||
primary: "#8C1515" # Stanford Cardinal | ||
secondary: "#4D4F53" # Cool Grey | ||
tertiary: "#DAD7CB" # Fog | ||
success: "#175E54" # Dark green | ||
info: "#007C92" # Sky | ||
warning: "#B1040E" # Bright red | ||
danger: "#820000" # Dark cardinal | ||
light: "#F4F4F4" # Beige | ||
dark: "#2E2D29" # Dark charcoal | ||
|
||
typography: | ||
fonts: | ||
- source: bunny | ||
family: "Source Sans Pro" | ||
weight: [300, 400, 600, 700] | ||
style: [normal, italic] | ||
|
||
- source: bunny | ||
family: "Source Serif Pro" | ||
weight: [400, 600, 700] | ||
style: [normal] | ||
|
||
- source: system | ||
family: "Menlo" # For monospace | ||
|
||
base: | ||
family: "Source Sans Pro" | ||
size: "16px" | ||
weight: 400 | ||
line-height: 1.5 | ||
|
||
headings: | ||
family: "Source Serif Pro" | ||
weight: 600 | ||
line-height: 1.2 | ||
|
||
monospace: | ||
family: "Menlo, Monaco, Consolas, monospace" | ||
size: "14px" | ||
weight: 400 | ||
|
||
link: | ||
weight: 400 | ||
decoration: "underline" | ||
|
||
logo: | ||
small: | ||
light: "./assets/block-s.svg" | ||
dark: "./assets/block-s-reversed.svg" | ||
medium: | ||
light: "./assets/wordmark.svg" | ||
dark: "./assets/wordmark-reversed.svg" | ||
large: | ||
light: "./assets/signature.svg" | ||
dark: "./assets/signature-reversed.svg" |
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,25 @@ | ||
project: | ||
type: website | ||
|
||
website: | ||
title: "Demo brand.yml" | ||
navbar: | ||
left: | ||
- text: "Home" | ||
href: index.html | ||
- text: "RevealJS" | ||
href: index-revealjs.html | ||
- text: "Dashboard" | ||
href: index-dashboard.html | ||
- text: "Typst" | ||
href: index-typst.html | ||
tools: | ||
- icon: github | ||
href: https://github.com/stanford-brand-yml/quarto-branded-website | ||
|
||
format: | ||
html: | ||
toc: true | ||
|
||
|
||
|
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,22 @@ | ||
--- | ||
title: "Brand" | ||
format: | ||
html: | ||
other-links: | ||
- href: index-dashboard.html | ||
icon: speedometer | ||
text: Dashboard | ||
typst: default | ||
revealjs: | ||
output-file: index-reveal.html | ||
dashboard: | ||
output-file: index-dashboard.html | ||
--- | ||
|
||
## Overview | ||
|
||
This is a document themed using [**brand.yml**](https://posit-dev.github.io/brand-yml/) | ||
|
||
## Subheading | ||
|
||
{{< lipsum 1 >}} |