File tree Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17
+ with :
18
+ submodules : true
17
19
18
20
- run : rustup override set ${{ env.RUST_VERSION }}
19
21
- run : rustup component add clippy
32
34
- run : rustup override set ${{ env.RUST_VERSION }}
33
35
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
34
36
35
- - name : Install Zola
36
- run : cargo install --locked --git https://github.com/senekor/zola --rev 79410eea82f837e4de9b1e4c3905287060b69255
37
- - run : zola build
37
+ - run : cargo zola build
38
38
- run : cp CNAME ./public/
39
39
- run : touch public/.nojekyll
40
40
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ jobs:
12
12
if : contains(github.event.pull_request.body, 'RUN_SNAPSHOT_TESTS')
13
13
steps :
14
14
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15
+ with :
16
+ submodules : true
15
17
- run : rustup override set ${{ env.RUST_VERSION }}
16
18
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
17
- - name : Install Zola
18
- run : cargo install --locked --git https://github.com/senekor/zola --rev 79410eea82f837e4de9b1e4c3905287060b69255
19
19
20
20
- run : git fetch --depth 2
21
21
- run : git checkout origin/master
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ It uses [Zola](https://www.getzola.org/) and is deployed to GitHub Pages via Git
8
8
9
9
## Building
10
10
11
- To serve the site locally, first install Zola: (takes a couple minutes)
11
+ To serve the site locally, first make sure the zola submodule is initialized:
12
12
13
13
``` sh
14
- # using a fork because we rely on a few patches that haven't landed yet
15
- cargo install --locked --git https://github.com/senekor/zola --rev 79410eea82f837e4de9b1e4c3905287060b69255
14
+ git submodule update --init --recursive
16
15
```
17
16
18
- Now run ` zola serve --open ` .
17
+ Now run ` cargo zola serve --open ` .
18
+ (The first run takes a while to compile Zola.)
19
19
The site will be reloaded automatically when you make any changes.
20
20
21
21
## Contributing
Original file line number Diff line number Diff line change 1
1
+++
2
2
title = " Rust Blog"
3
3
description = " Empowering everyone to build reliable and efficient software."
4
+ sort_by = " permalink"
4
5
generate_feeds = true
5
6
[extra ]
6
7
index_title = " The Rust Programming Language Blog"
Original file line number Diff line number Diff line change 1
1
+++
2
2
title = " Inside Rust Blog"
3
3
description = " Want to follow along with Rust development? Curious how you might get involved? Take a look!"
4
+ sort_by = " permalink"
4
5
generate_feeds = true
5
6
[extra ]
6
7
index_title = ' The "Inside Rust" Blog'
Original file line number Diff line number Diff line change 2
2
fn snapshot ( ) {
3
3
std:: env:: set_current_dir ( concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../.." ) ) . unwrap ( ) ;
4
4
let _ = std:: fs:: remove_dir_all ( "public" ) ;
5
- let status = std:: process:: Command :: new ( "zola " )
6
- . arg ( " build")
5
+ let status = std:: process:: Command :: new ( "cargo " )
6
+ . args ( [ "zola" , " build"] )
7
7
. status ( )
8
8
. unwrap ( ) ;
9
9
assert ! ( status. success( ) , "failed to build site" ) ;
You can’t perform that action at this time.
0 commit comments