Skip to content

Commit

Permalink
ci: add intra-doc links lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Sep 4, 2023
1 parent 079dffc commit af4cb60
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,23 @@ jobs:
- name: Clippy Check
uses: giraffate/clippy-action@v1
with:
clippy_flags: --workspace --all-targets --all-features
reporter: github-pr-check
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: --workspace --all-targets --all-features

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
components: rust-docs

- name: Validate Intraoc Links
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --workspace --no-deps --all-features

audit:
name: Audit
Expand All @@ -67,4 +81,4 @@ jobs:
tool: cargo-deny

- name: Audit check
run: cargo deny check advisories
run: cargo deny --all-features check advisories
5 changes: 5 additions & 0 deletions examples/http-01.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ async fn main() -> eyre::Result<()> {

// Finally download the certificate.
let cert = ord_cert.download_cert().await?;

// NOTE: Here you would spawn your HTTP server and use the private key plus
// certificate to configure TLS on it. For this example, we just print the
// certificate and exit.

println!("{}", cert.certificate());

// Stop temporary server for ACME challenge
Expand Down
2 changes: 1 addition & 1 deletion src/order/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl NewOrder {
/// * P-256 and P-384 ECDSA keys
///
/// [CSR]: https://en.wikipedia.org/wiki/Certificate_signing_request
/// [functions to create key pairs]: ../index.html#functions
/// [functions to create private keys]: ../index.html#functions
/// [supports]: https://letsencrypt.org/docs/integration-guide/#supported-key-algorithms
pub struct CsrOrder {
pub(crate) order: Order,
Expand Down

0 comments on commit af4cb60

Please sign in to comment.