Add doc-check to CI with fix warnings in docs, but broken-intra-doc-links (#743)

master
Yuri Kotov 2 years ago committed by GitHub
parent 7319f25394
commit ca6c6a5ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      .github/workflows/rust.yml
  2. 8
      src/db_options.rs

@ -24,6 +24,25 @@ jobs:
command: fmt
args: --all -- --check
doc-check:
name: Rustdoc-check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
components: rust-docs
profile: minimal
override: true
- name: Run cargo rustdoc
uses: actions-rs/cargo@v1
with:
command: rustdoc
args: -- -D warnings -A rustdoc::broken-intra-doc-links
clippy:
name: Clippy
runs-on: ubuntu-latest

@ -145,8 +145,6 @@ impl BlockBasedOptionsMustOutliveDB {
/// opts.set_level_zero_stop_writes_trigger(2000);
/// opts.set_level_zero_slowdown_writes_trigger(0);
/// opts.set_compaction_style(DBCompactionStyle::Universal);
/// opts.set_max_background_compactions(4);
/// opts.set_max_background_flushes(4);
/// opts.set_disable_auto_compactions(true);
///
/// DB::open(&opts, path).unwrap()
@ -1708,10 +1706,10 @@ impl Options {
/// # Examples
///
/// ```
/// #[allow(deprecated)]
/// use rocksdb::Options;
///
/// let mut opts = Options::default();
/// #[allow(deprecated)]
/// opts.set_allow_os_buffer(false);
/// ```
#[deprecated(
@ -2134,6 +2132,7 @@ impl Options {
/// use rocksdb::Options;
///
/// let mut opts = Options::default();
/// #[allow(deprecated)]
/// opts.set_max_background_compactions(2);
/// ```
#[deprecated(
@ -2169,6 +2168,7 @@ impl Options {
/// use rocksdb::Options;
///
/// let mut opts = Options::default();
/// #[allow(deprecated)]
/// opts.set_max_background_flushes(2);
/// ```
#[deprecated(
@ -2999,7 +2999,7 @@ impl Options {
/// Enable the use of key-value separation.
///
/// More details can be found here: http://rocksdb.org/blog/2021/05/26/integrated-blob-db.html.
/// More details can be found here: [Integrated BlobDB](http://rocksdb.org/blog/2021/05/26/integrated-blob-db.html).
///
/// Default: false (disable)
///

Loading…
Cancel
Save