close
Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Cancel
3
  • Do you want to parse a pest grammar file and add doc comments to the documentation or do you just want the whole grammar in the documentation? Commented Apr 8, 2024 at 20:04
  • I'd just want to have the full file, same way all .rs files are attached and browsable. Commented Apr 8, 2024 at 21:35
  • 1
    You can do #[doc = include_str!("../path/to/file")], if that's any help. See doc.rust-lang.org/rustdoc/write-documentation/… Commented Apr 8, 2024 at 22:00