-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build the manual using mdbook and redirect old page
- Loading branch information
Showing
3 changed files
with
41 additions
and
1,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ on: | |
push: | ||
branches: | ||
- src | ||
schedule: | ||
# Every hour, to pick up the latest rust-analyzer repo changes. | ||
- cron: '0 * * * *' | ||
|
||
jobs: | ||
CI: | ||
|
@@ -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: | ||
|
Oops, something went wrong.