Skip to content

Commit e0d3e3b

Browse files
committed
switch to zola
1 parent 31e9880 commit e0d3e3b

84 files changed

Lines changed: 735 additions & 192 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

โ€Ž.github/workflows/deploy.ymlโ€Ž

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,19 @@ jobs:
2727
- name: Checkout ๐Ÿ›Ž๏ธ
2828
uses: actions/checkout@v4
2929

30-
- name: Install mdBook ๐Ÿ“š
30+
- name: Install Zola ๐ŸฆŽ
3131
run: |
32-
wget https://github.com/rust-lang/mdBook/releases/download/v0.4.52/mdbook-v0.4.52-x86_64-unknown-linux-gnu.tar.gz
33-
tar -xzf mdbook-v0.4.52-x86_64-unknown-linux-gnu.tar.gz
34-
sudo mv mdbook /usr/local/bin/
32+
curl -sL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-x86_64-unknown-linux-gnu.tar.gz \
33+
| sudo tar -xz -C /usr/local/bin
3534
3635
- name: Build ๐Ÿ”จ
37-
run: |
38-
./wrapper.sh build
36+
run: zola build
3937

4038
- name: Upload static files as artifact
4139
id: deployment
4240
uses: actions/upload-pages-artifact@v3
4341
with:
44-
path: book/
42+
path: public/
4543

4644
deploy:
4745
environment:

โ€Ž.github/workflows/pr.ymlโ€Ž

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ jobs:
1313
- name: Checkout ๐Ÿ›Ž๏ธ
1414
uses: actions/checkout@v4
1515

16-
- name: Install mdBook ๐Ÿ“š
16+
- name: Install Zola ๐ŸฆŽ
1717
run: |
18-
wget https://github.com/rust-lang/mdBook/releases/download/v0.4.52/mdbook-v0.4.52-x86_64-unknown-linux-gnu.tar.gz
19-
tar -xzf mdbook-v0.4.52-x86_64-unknown-linux-gnu.tar.gz
20-
sudo mv mdbook /usr/local/bin/
18+
curl -sL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-x86_64-unknown-linux-gnu.tar.gz \
19+
| sudo tar -xz -C /usr/local/bin
2120
2221
- name: Build ๐Ÿ”จ
23-
run: |
24-
./wrapper.sh build
22+
run: zola build
2523

2624
- name: Upload static files as artifact
2725
id: deployment
2826
uses: actions/upload-pages-artifact@v3
2927
with:
30-
path: book/
28+
path: public/

โ€Ž.gitignoreโ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
book
2-
/src/SUMMARY.md
1+
public

โ€Žbook.tomlโ€Ž

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

โ€Žconfig.tomlโ€Ž

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
base_url = "https://noahpendleton.com/recipes"
2+
title = "Recipes"
3+
default_language = "en"
4+
build_search_index = true
5+
6+
[markdown]
7+
8+
[search]
9+
index_format = "elasticlunr_javascript"
10+
11+
[extra]
12+
github_url = "https://github.com/noahp/recipes/tree/main"
13+
edit_base = "https://github.com/noahp/recipes/edit/main/content"
14+
categories = ["baking", "mains", "misc", "preserves", "sides"]

โ€Žcontent/_index.mdโ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
+++
2+
title = "Recipes"
3+
+++

โ€Žcontent/baking/_index.mdโ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+++
2+
title = "Baking"
3+
sort_by = "title"
4+
+++
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
+++
2+
title = "๐Ÿฉ Beignets"
3+
+++
4+
15
# ๐Ÿฉ Beignets
26

37
[Original recipe](https://www.kingarthurflour.com/recipes/classic-beignets-recipe)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
+++
2+
title = "๐Ÿž English Muffins"
3+
+++
4+
15
# ๐Ÿž English Muffins
26

37
[Original recipe](https://www.kingarthurflour.com/recipes/english-muffins-recipe)
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
+++
2+
title = "๐Ÿซ“ Focaccia"
3+
+++
4+
15
# ๐Ÿซ“ Focaccia
26

3-
![](../pics/focaccia.jpg)
7+
![](../../pics/focaccia.jpg)
48

59
_roughly based on Ken Forkish's recipe_
610

0 commit comments

Comments
ย (0)