CI round 2

This commit is contained in:
Kyle Simpson
2020-11-13 19:15:33 +00:00
parent c5ce107d55
commit 35d262d946
4 changed files with 10 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt clippy
components: rustfmt, clippy
override: true
- name: Rustfmt
run: cargo +nightly fmt --all -- --check
@@ -50,7 +50,7 @@ jobs:
- name: Windows
os: windows-latest
- name: driver only
features: driver
features: driver rustls
- name: gateway only
features: serenity-rustls
@@ -131,8 +131,7 @@ jobs:
env:
RUSTDOCFLAGS: -D broken_intra_doc_links
run: |
cargo doc --no-deps --features collector,voice
cargo doc --no-deps -p command_attr
cargo doc --no-deps --all-features
examples:
name: Examples

View File

@@ -49,7 +49,7 @@ jobs:
DIR=${GITHUB_REF/refs\/+(heads|tags)\//}
mkdir -p ./docs/$DIR
touch ./docs/.nojekyll
echo '<meta http-equiv="refresh" content="0;url=serenity/index.html">' > ./docs/$DIR/index.html
echo '<meta http-equiv="refresh" content="0;url=songbird/index.html">' > ./docs/$DIR/index.html
mv ./target/doc/* ./docs/$DIR/
- name: Deploy docs

View File

@@ -32,7 +32,9 @@ Songbird's logo is based upon the copyright-free image ["Black-Capped Chickadee"
[lavalink]: https://github.com/Frederikam/Lavalink
[this crate's examples directory]: https://github.com/serenity-rs/songbird/tree/current/examples
[build badge]: https://img.shields.io/github/workflow/status/serenity-rs/songbird/Build%20and%20Test%20(Stable)?style=flat-square
https://github.com/serenity-rs/songbird/actions/runs/362160207
[build badge]: https://img.shields.io/github/workflow/status/serenity-rs/songbird/CI?style=flat-square
[build]: https://github.com/serenity-rs/songbird/actions
[docs-badge]: https://img.shields.io/badge/docs-online-4d76ae.svg?style=flat-square

View File

@@ -1,6 +1,6 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/serenity-rs/songbird/master/songbird.png",
html_favicon_url = "https://raw.githubusercontent.com/serenity-rs/songbird/master/songbird-ico.png"
html_logo_url = "https://raw.githubusercontent.com/serenity-rs/songbird/current/songbird.png",
html_favicon_url = "https://raw.githubusercontent.com/serenity-rs/songbird/current/songbird-ico.png"
)]
#![deny(missing_docs)]
//! ![project logo][logo]
@@ -28,7 +28,7 @@
//!
//! Songbird's logo is based upon the copyright-free image ["Black-Capped Chickadee"] by George Gorgas White.
//!
//! [logo]: https://github.com/serenity-rs/songbird/raw/master/songbird.png
//! [logo]: https://raw.githubusercontent.com/serenity-rs/songbird/current/songbird.png
//! [serenity]: https://github.com/serenity-rs/serenity
//! [twilight]: https://github.com/twilight-rs/twilight
//! [this crate's examples directory]: https://github.com/serenity-rs/songbird/tree/current/examples