Rollup merge of #141709 - aDotInTheVoid:split-for-docs, r=GuillaumeGomez

jsondocck: Refactor directive handling

Best reviewed commit by commit.

1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (https://github.com/rust-lang/rustc-dev-guide/pull/2422#discussion_r2112724234), but also makes the code nicer in it's own right
2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this.

r? ``@GuillaumeGomez``
This commit is contained in:
Matthias Krüger 2025-06-05 16:02:00 +02:00 committed by GitHub
commit 9a6f10d82a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available