-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.qmd
171 lines (120 loc) · 3.8 KB
/
demo.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
title: Style Guide
website:
reader-mode: true
format:
html:
toc: true
toc-depth: 6
toc-expand: 3
toc-title: Page Contents
other-links:
- text: UKRN Github
href: https://github.com/ukrn/
target: _blank # opens in a new tab
icon: github # https://icons.getbootstrap.com/
---
## Useful resources
- [markdown basics](https://quarto.org/docs/authoring/markdown-basics.html){target="_blank"}
- [images](https://quarto.org/docs/authoring/figures.html){target="_blank"}
- [tables](https://quarto.org/docs/authoring/tables.html){target="_blank"}
- [quarto html basics](https://quarto.org/docs/output-formats/html-basics.html){target="_blank"}
- [quarto websites](https://quarto.org/docs/websites/){target="_blank"}
## Table of Contents
Add the following to the YAML header of a page to display the table of contents for that page on the right. The `other-links` setting can be used to include extra links in the ToC. You can omit the target and icon, or change the icon to one from the [bootstrap icons](https://icons.getbootstrap.com/) list.
```
---
title: {Page Title}
format:
html:
toc: true
toc-depth: 6
toc-expand: 3
toc-title: Page Contents
other-links:
- text: UKRN Github
href: https://github.com/ukrn/
target: _blank # opens in a new tab
icon: github
---
```
See the [quarto documentation](https://quarto.org/docs/output-formats/html-basics.html#table-of-contents_) for extended help.
## Headers
The title of this page (Style Guide) is in the level-1 header style, and the header above is level-2. You usually want to start with level-2 headers on a page, since the title is level 1.
Prefix a header with the appropriate number of hashes (e.g., `## Headers`) to make it a header. Leave a blank line before and after headers.
### Header 3
#### Header 4
##### Header 5
###### Header 6
## Text and links
Some text in a paragraph before a list of links:
- [UKRN home page](https://ukrn.org)
- [quarto html guide](https://quarto.org/docs/output-formats/html-basics.html)
- [quarto website navigation](https://quarto.org/docs/websites/website-navigation.html){target="_blank"} (opens in a new tab)
## Tabsets
::: {.panel-tabset}
## Tab A
Content in tab A.
## Tab B
Content in tab B.
## Tab C
Content in tab C.
:::
## Callout Blocks
### Custom UKRN
The generic and feature callouts are custom-made for the UKRN style.
::: {.callout}
This is a generic callout without a title
:::
```
::: {.callout}
This is a generic callout without a title
:::
```
::: {.callout}
## Callout Box
This is a generic callout with a title
:::
```
::: {.callout}
## Callout Box
This is a generic callout with a title
:::
```
::: {.callout-note .feature collapse="false"}
## Feature Box
This is a featured callout with collapsible content
:::
```
::: {.callout-note .feature collapse="false"}
## Feature Box
This is a featured callout with collapsible content
:::
```
### Quarto Callouts
The following callout boxes are default quarto types, and their appearance is controlled by the theme.
::: {.callout-note}
This is a note `::: {.callout-note}`
:::
::: {.callout-warning}
This is a warning `::: {.callout-warning}`
:::
::: {.callout-important}
This is important `::: {.callout-important}`
:::
::: {.callout-tip}
This is a tip `::: {.callout-tip}`
:::
::: {.callout-caution}
This is a caution `::: {.callout-caution}`
:::
::: {.callout-note collapse="true"}
## Expand To Learn About Collapse
This is an example of a 'folded' note callout that can be expanded by the user.
`::: {.callout-note collapse="true"}`
:::
::: {.callout-note collapse="false"}
## Expanded Collapse
You can use `collapse="true"` to collapse it by default or `collapse="false"` to make a collapsible callout that is expanded by default.
`::: {.callout-note collapse="false"}`
:::