Skip to content

How to generate adoc files included in manual.adoc file? #16940

Answered by flodiebold
lcheylus asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I understand,

  • generated_config.adoc is checked into the repo and there's a test that makes sure it's up to date (cargo test -p rust-analyzer -- generate_config_documentation);
  • diagnostics and assists are generated by cargo xtask codegen;
  • features are generated by cargo test -p rust-analyzer -- sourcegen_feature_docs (and not checked in).

Not sure why they're so different, it might just be for historical reasons.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Veykril
Comment options

@lcheylus
Comment options

Answer selected by lcheylus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants