Skip to content

Commit f482b69

Browse files
authored
Update guide templates (#3482)
* Update guide templates * Fix mdbook-toc compilation error * Check guide templates
1 parent 5a4764a commit f482b69

Some content is hidden

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

80 files changed

+84
-113
lines changed

.github/workflows/guide-templates.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- crates/relayer-cli/**
77
- scripts/**
88
- tools/check-guide/**
9+
- guide/src/templates/**
910

1011
push:
1112
branches: master
@@ -14,6 +15,7 @@ on:
1415
- crates/relayer-cli/**
1516
- scripts/**
1617
- tools/check-guide/**
18+
- guide/src/templates/**
1719

1820
# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag
1921
concurrency:

.github/workflows/guide.yml

+4-35
Original file line numberDiff line numberDiff line change
@@ -17,45 +17,14 @@ concurrency:
1717

1818
jobs:
1919
guide:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-22.04
2121
steps:
2222
- uses: actions/checkout@v3
2323

24-
- name: cache .cargo directory
25-
uses: actions/cache@v3
24+
- name: Install mdbook and plugins
25+
uses: taiki-e/install-action@v2
2626
with:
27-
path: ~/.cargo
28-
key: cargo-dir
29-
restore-keys: |
30-
cargo-dir
31-
32-
- name: Install mdbook
33-
uses: actions-rs/[email protected]
34-
with:
35-
crate: mdbook
36-
version: latest
37-
use-tool-cache: true
38-
39-
- name: Install mdbook-mermaid
40-
uses: actions-rs/[email protected]
41-
with:
42-
crate: mdbook-mermaid
43-
version: latest
44-
use-tool-cache: true
45-
46-
- name: Install mdbook-template
47-
uses: actions-rs/[email protected]
48-
with:
49-
crate: mdbook-template
50-
version: latest
51-
use-tool-cache: true
52-
53-
- name: Install mdbook-toc
54-
uses: actions-rs/[email protected]
55-
with:
56-
crate: mdbook-toc
57-
version: latest
58-
use-tool-cache: true
27+
tool: mdbook,mdbook-mermaid,mdbook-template,mdbook-toc
5928

6029
- name: Build guide
6130
run: |

0 commit comments

Comments
 (0)