Skip to content

Commit

Permalink
fix: handle newer rustdoc-json output (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
scrabsha authored Oct 20, 2024
1 parent a484806 commit 410ed8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
run: cargo +nightly rustdoc -- --output-format json -Zunstable-options

- name: Compare README with crate-level documentation
run: cat target/doc/expandable.json | jq ".index[.root].docs" -r | cmp README.md -
run: cat target/doc/expandable.json | jq ".index[.root | tostring].docs" -r | cmp README.md -

grammar-check:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ msrv:

readme:
cargo rustdoc -- --output-format json -Zunstable-options
cat target/doc/expandable.json | jq ".index[.root].docs" -r > README.md
cat target/doc/expandable.json | jq ".index[.root | tostring].docs" -r > README.md

check-readme:
cargo rustdoc -- --output-format json -Zunstable-options
cat target/doc/expandable.json | jq ".index[.root].docs" -r | cmp README.md -
cat target/doc/expandable.json | jq ".index[.root | tostring].docs" -r | cmp README.md -

grammar:
cargo run -p grammar-gen -- rust-grammar-dpdfa/grammar.rs rust-grammar-dpdfa/src/generated.rs

0 comments on commit 410ed8f

Please sign in to comment.