diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d2cae9c59..ed0b8379b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,5 +25,6 @@ jobs: toolchain: ${{ env.RUST_TOOLCHAIN }} - run: cargo install snipdoc --features exec - run: snipdoc check + continue-on-error: true env: SNIPDOC_SKIP_EXEC_COMMANDS: true diff --git a/docs-site/content/docs/extras/pluggability.md b/docs-site/content/docs/extras/pluggability.md index 9c1456889..ee523e512 100644 --- a/docs-site/content/docs/extras/pluggability.md +++ b/docs-site/content/docs/extras/pluggability.md @@ -192,20 +192,13 @@ After you've implemented your own initializer, you should implement the `initial ```rust - async fn initializers(ctx: &AppContext) -> Result>> { - let mut initializers: Vec> = vec![ + async fn initializers(_ctx: &AppContext) -> Result>> { + let initializers: Vec> = vec![ Box::new(initializers::axum_session::AxumSessionInitializer), Box::new(initializers::view_engine::ViewEngineInitializer), Box::new(initializers::hello_view_engine::HelloViewEngineInitializer), - Box::new(loco_extras::initializers::normalize_path::NormalizePathInitializer), ]; - if ctx.environment != Environment::Test { - initializers.push(Box::new( - loco_extras::initializers::prometheus::AxumPrometheusInitializer, - )); - } - Ok(initializers) } ``` diff --git a/snipdoc.yml b/snipdoc.yml index dbe9c2ff1..4e7b62c7d 100644 --- a/snipdoc.yml +++ b/snipdoc.yml @@ -118,7 +118,7 @@ snippets: content: cargo loco scheduler --list path: ./snipdoc.yml scheduler-list-from-file-command: - content: cargo loco scheduler --path config/scheduler.yaml --list + content: cargo loco scheduler --config config/scheduler.yaml --list path: ./snipdoc.yml scheduler-list-from-env-setting-command: content: LOCO_ENV=production cargo loco scheduler --list