Skip to content

Commit

Permalink
Merge pull request #25 from cct-datascience/mermaid-fix
Browse files Browse the repository at this point in the history
Improve mermaid appearance
  • Loading branch information
Aariq authored Nov 18, 2024
2 parents d9e9f04 + c2a26b7 commit 67eaef9
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _extensions/uaz/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: University of Arizona Quarto Presentation
author: Eric R. Scott
version: 0.1.0
version: 0.1.1
quarto-required: ">=1.2"
contributes:
formats:
Expand Down
6 changes: 5 additions & 1 deletion _extensions/uaz/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ $blockquote-border-color: $ua-red !default;
$blockquote-bg: $ua-coolgray !default;
$blockquote-color: #555 !default; //text color slightly grey


// logo
$logo-height: 3.5rem !default;

// mermaid
$mermaid-node-bg-color: $ua-white !default;
$mermaid-fg-color: $ua-midnight !default;

/*-- scss:rules --*/

//set code output background same as code background
Expand Down Expand Up @@ -117,3 +120,4 @@ blockquote::after{
/*Reset to make sure*/
content: "";
}

67 changes: 67 additions & 0 deletions template.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,70 @@ Left column with text
![Anatomy of the "A" logo](https://marcom.arizona.edu/sites/default/files/styles/az_natural/public/2023-11/Block%20A%20Anatomy%20Graphic.png?itok=Nxc_47cw){#fig-logo}
:::
:::

## Callout boxes {.smaller}

::: callout-note
A note
:::

::: callout-tip
A tip
:::

::: callout-important
Important!
:::

::: callout-caution
Caution!
:::

::: callout-warning
A warning
:::

## Flowcharts

```{mermaid}
%%| fig-align: center
flowchart TD
c["Event"]-->ubuntu
c --> mac
subgraph ubuntu [runs-on: ubuntu-latest]
subgraph Job
direction TB
a1["Step 1: Checkout Repo"]--> a2["Step2: Install R"]
a2 --> a3["Step 3: Run Script"]
a3 --> a4["..."]
end
end
subgraph mac [runs-on: macos-latest]
subgraph Job2
direction TB
b1["Step 1: Checkout Repo"]--> b2["Step2: Install R"]
b2 --> b3["Step 3: Run Script"]
b3 --> b4["..."]
end
end
```

## GitGraph

```{mermaid}
gitGraph
commit
commit
branch person_1
commit
commit
commit
checkout main
branch person_2
commit
commit
checkout main
merge person_1
merge person_2
commit
```

0 comments on commit 67eaef9

Please sign in to comment.