Skip to content

Commit

Permalink
Build the manual using mdbook and redirect old page
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Aug 20, 2024
1 parent 945467f commit 0b31e4d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1,033 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- src
schedule:
# Every hour, to pick up the latest rust-analyzer repo changes.
- cron: '0 * * * *'

jobs:
CI:
Expand All @@ -16,6 +19,31 @@ jobs:

- run: bundle install && bundle exec jekyll build

- uses: taiki-e/install-action@v2
with:
tool: [email protected]

- uses: taiki-e/install-action@v2
with:
tool: [email protected]

- name: Clone the latest rust-analyzer, as of the mdbook PR
uses: GuillaumeFalourd/[email protected]
with:
depth: 1
branch: 'mdbook-yolo'
owner: 'joshrotenberg'
repository: 'rust-analyzer'

- name: Build generated.md files
run: cd rust-analyzer && cargo xtask codegen diagnostics-docs && cargo xtask codegen assists-doc-tests && cargo xtask codegen feature-docs

- name: Run mdbook
run: cd rust-analyzer/docs/book && mdbook build && cp -r book _site

- name: Include mdbook output
run: cp -r rust-analyzer/docs/book/book _site

- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
Expand Down
Loading

0 comments on commit 0b31e4d

Please sign in to comment.