Skip to content

Commit d3c24df

Browse files
authored
Merge pull request #175 from ia7ck/ci-github-actions
docs の index.html を生成
2 parents 18b18cb + c968317 commit d3c24df

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/rust.yml renamed to .github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: CI
22

33
on:
44
push:
@@ -76,14 +76,17 @@ jobs:
7676

7777
publish-doc:
7878
runs-on: ubuntu-latest
79+
env:
80+
# https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html#--enable-index-page-generate-a-default-index-page-for-docs
81+
RUSTDOCFLAGS: '-Z unstable-options --enable-index-page'
7982
# https://docs.github.com/ja/actions/reference/context-and-expression-syntax-for-github-actions#contexts
8083
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
8184
steps:
8285
- uses: actions/checkout@v4
8386
with:
8487
persist-credentials: false
8588
- name: Doc
86-
run: cargo doc --no-deps --lib --workspace --exclude=oj_test --exclude=simple_example --exclude=special_judge_example
89+
run: cargo +nightly doc --no-deps --lib --workspace --exclude=oj_test --exclude=simple_example --exclude=special_judge_example
8790
- name: Deploy 🚀
8891
uses: JamesIves/github-pages-deploy-action@v4
8992
with:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Docs example
1+
# Docs
22

3-
- https://ia7ck.github.io/rust-competitive-programming/dijkstra
4-
- https://ia7ck.github.io/rust-competitive-programming/divisors
3+
https://ia7ck.github.io/rust-competitive-programming/index.html

0 commit comments

Comments
 (0)