docs(code block titles): added titles for all configuration code blocks

This commit is contained in:
Geoffrey Garrett 2022-06-28 20:10:44 +02:00
parent 7fd830f838
commit 53c3f479c6

View File

@ -36,7 +36,7 @@ If you would like to customize the favicons of your quartz-based website, you
can add them to the `data/config.yaml` file. The **default** without any set can add them to the `data/config.yaml` file. The **default** without any set
`favicon` key is: `favicon` key is:
```html {linenos=false} ```html {title="data/config.yaml", linenos=false}
<link rel="shortcut icon" href="icon.png" type="image/png"> <link rel="shortcut icon" href="icon.png" type="image/png">
``` ```
@ -44,7 +44,7 @@ The default can be overridden by defining a value to the `favicon` key in your
`data/config.yaml` file. Here is a `List[Dictionary]` example format, which is `data/config.yaml` file. Here is a `List[Dictionary]` example format, which is
equivalent to the default: equivalent to the default:
```yaml {linenos=false} ```yaml {title="data/config.yaml", linenos=false}
favicon: favicon:
- { rel: "shortcut icon", href: "icon.png", type: "image/png" } - { rel: "shortcut icon", href: "icon.png", type: "image/png" }
# - { ... } # Repeat for each additional favicon you want to add # - { ... } # Repeat for each additional favicon you want to add
@ -60,7 +60,7 @@ If you plan to add multiple favicons generated by a website (see list below), it
may be easier to define it as HTML. Here is an example which appends the may be easier to define it as HTML. Here is an example which appends the
**Apple touch icon** to quartz's default favicon: **Apple touch icon** to quartz's default favicon:
```yaml {linenos=false} ```yaml {title="data/config.yaml", linenos=false}
favicon: | favicon: |
<link rel="shortcut icon" href="icon.png" type="image/png"> <link rel="shortcut icon" href="icon.png" type="image/png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
@ -88,7 +88,7 @@ attribute, are relative to the `static/` directory.
### Graph View ### Graph View
To customize the Interactive Graph view, you can poke around `data/graphConfig.yaml`. To customize the Interactive Graph view, you can poke around `data/graphConfig.yaml`.
```yaml ```yaml {title="data/graphConfig.yaml"}
enableLegend: false # automatically generate a legend enableLegend: false # automatically generate a legend
enableDrag: true # allow dragging nodes in the graph enableDrag: true # allow dragging nodes in the graph
enableZoom: true # allow zooming and panning the graph enableZoom: true # allow zooming and panning the graph