Skip to content

Commit ffdabda

Browse files
committed
Build the manual using mdbook and redirect old page
1 parent c906b80 commit ffdabda

File tree

3 files changed

+42
-1121
lines changed

3 files changed

+42
-1121
lines changed

.github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
branches:
55
- src
6+
schedule:
7+
# Every day, to pick up the latest rust-analyzer repo changes.
8+
- cron: '0 0 * * *'
9+
workflow_dispatch:
610

711
jobs:
812
CI:
@@ -16,6 +20,31 @@ jobs:
1620

1721
- run: bundle install && bundle exec jekyll build
1822

23+
- uses: taiki-e/install-action@v2
24+
with:
25+
26+
27+
- uses: taiki-e/install-action@v2
28+
with:
29+
30+
31+
- name: Clone the latest rust-analyzer, as of the mdbook PR
32+
uses: GuillaumeFalourd/[email protected]
33+
with:
34+
depth: 1
35+
branch: 'master'
36+
owner: 'rust-lang'
37+
repository: 'rust-analyzer'
38+
39+
- name: Build generated.md files
40+
run: cd rust-analyzer && cargo xtask codegen
41+
42+
- name: Run mdbook
43+
run: cd rust-analyzer/docs/book && mdbook build
44+
45+
- name: Include mdbook output
46+
run: mv rust-analyzer/docs/book/book _site
47+
1948
- name: Deploy
2049
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
2150
with:

0 commit comments

Comments
 (0)