diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 631e84e8..940d017b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -45,7 +45,6 @@ jobs: - name: Build docs for PR run: | - sed -i '/\[dependencies\]/a clap-markdown = { git = "https://github.com/ruben-arts/clap-markdown", branch = "main" }' Cargo.toml pixi run generate-cli-docs - name: Check for changes diff --git a/Cargo.toml b/Cargo.toml index f0dc2fcf..bdff303a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ tui = [ 'tui-input', ] recipe-generation = ['rattler_installs_packages'] -# This feature needs to add a dependency on +# This feature needs to add a dependency on # clap-markdown = { git = "https://github.com/ruben-arts/clap-markdown", branch = "main" } # but in order to be able to publish to crates we remove this feature generate-cli-docs = [] diff --git a/pixi.toml b/pixi.toml index d46b2c86..ca7408bc 100644 --- a/pixi.toml +++ b/pixi.toml @@ -11,7 +11,7 @@ install = "cargo install --path . --locked" end_to_end_test = "pytest test/end-to-end --snapshot-warn-unused --snapshot-details" test = "cargo test" lint = "pre-commit run --all" -generate-cli-docs = "cargo run --bin generate-cli-docs --features generate-cli-docs > docs/reference/cli.md" +generate-cli-docs = "cargo add clap-markdown --git https://github.com/ruben-arts/clap-markdown --branch main && cargo run --bin generate-cli-docs --features generate-cli-docs > docs/reference/cli.md && cargo rm clap-markdown" update-snapshots = "pytest test/end-to-end --snapshot-update" [feature.docs.tasks] diff --git a/test-data/recipes/env_vars/variants.yaml b/test-data/recipes/env_vars/variants.yaml index ffe1ee26..b1c7dbd9 100644 --- a/test-data/recipes/env_vars/variants.yaml +++ b/test-data/recipes/env_vars/variants.yaml @@ -1,2 +1,2 @@ MAKEFLAGS: - - OVERRIDDEN_MAKEFLAGS \ No newline at end of file + - OVERRIDDEN_MAKEFLAGS