Skip to content

Commit 84ed536

Browse files
committed
refactor(pages): change to topic/index.qmd structure (+start on making a change)
1 parent 942e382 commit 84ed536

18 files changed

Lines changed: 174 additions & 126 deletions

File tree

_quarto.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ website:
2222
- text: Welcome
2323
href: index.qmd
2424
- text: "Slides: Why make a website for your research?"
25-
href: pages/why.qmd
25+
href: pages/why/index.qmd
2626
- section: "Tutorial"
2727
contents:
28-
- pages/setup.qmd
29-
- pages/basic_structure.qmd
30-
- pages/making_a_change.qmd
31-
- pages/markdown.qmd
32-
- pages/quarto_features.qmd
33-
- pages/media.qmd
34-
- pages/inline_html.qmd
35-
- pages/customising.qmd
36-
- pages/code.qmd
37-
- pages/summary.qmd
38-
- pages/examples.qmd
28+
- pages/setup/index.qmd
29+
- pages/basic_structure/index.qmd
30+
- pages/making_a_change/index.qmd
31+
- pages/markdown/index.qmd
32+
- pages/quarto_features/index.qmd
33+
- pages/media/index.qmd
34+
- pages/inline_html/index.qmd
35+
- pages/customising/index.qmd
36+
- pages/code/index.qmd
37+
- pages/summary/index.qmd
38+
- pages/examples/index.qmd
3939
page-footer:
4040
center:
4141
- text: |
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,20 @@ This is my homepage.
108108

109109
**Option 1: Preview button.** Open `index.qmd` in the editor, and click the **Preview** button in the top right hand corner
110110

111-
![](basic_structure/preview_button.drawio.png)
111+
![](preview_button.drawio.png){fig-alt="Screenshot of VSCode with Preview button circled."}
112112

113113
**Option 2: Terminal.** In the bottom panel, ensure you are on the **Terminal** tab. The Terminal is a place where you type commands instead of clicking buttons. We just need to type `quarto preview` then press <kbd>Enter</kbd> on your keyboard.
114114

115-
![](basic_structure/preview_terminal.drawio.png)
115+
![](preview_terminal.drawio.png){fig-alt="Screenshot of VSCode with 'quarto preview' command in Terminal circled."}
116116

117117
After either of these, you should see it says **Preparing to preview** and runs through files. It is creating `_sites/` folder containing your rendered site. Then when it is done, green text saying `Browse at ...`.
118118

119-
![](basic_structure/preparing_preview.png)
119+
![](preparing_preview.png){fig-alt="Screenshot of the 'Preparing to preview' message in the Terminal."}
120120

121121
Open that link, by doing <kbd>Ctrl</kbd> and click, or by simply copying and pasting the link into your web browser.
122122

123123
This will open a **live preview** of your site in the browser. Keep the browser open while you edit; every time you save a Quarto file, the preview will auto-refresh so you can immediately see your changes without re-running any commands.
124124

125125
Nothing is public yet; this preview only runs on your own computer. In other words, you are the only person who can see this site right now, and it will not appear on the internet until you deliberately publish or upload the rendered files somewhere.
126126

127-
![](basic_structure/site.png)
127+
![](site.png){fig-alt="Screenshot of the rendered site."}

pages/code.qmd

Lines changed: 0 additions & 8 deletions
This file was deleted.

pages/code/index.qmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Code
3+
---
4+
5+
code example
6+
code task
7+
8+
rstudio... r...
9+
10+
r code
11+
make figure
12+
r code annotation?

pages/customising.qmd

Lines changed: 0 additions & 11 deletions
This file was deleted.

pages/customising/index.qmd

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Customising the site appearance
3+
---
4+
5+
themes
6+
css
7+
colours
8+
titles
9+
headings
10+
interacting with quarto.yml
11+
and css
12+
screen width
13+
14+
## Styled span
15+
16+
Highlight <span style="background: yellow;">this bit</span>.
17+
18+
::: {.pale-blue}
19+
20+
**Task:** In `html.qmd`:
21+
22+
* [ ]
23+
24+
:::

0 commit comments

Comments
 (0)