This adds code blocks and inline code formatting to improve the readability of
the instruction referencing doc.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Hi @jryans, thanks for this update. I'm not particularly familiar with reStructuredText formatting so I've just been looking at an existing doc (https://github.com/llvm/llvm-project/blob/main/llvm/docs/LangRef.rst) to guide my review.
llvm/docs/InstrRefDebugInfo.md | ||
---|---|---|
25 | I'm not particularly familiar with reStructuredText formatting at all - do triple backticks format a code block? I can't see them used in https://github.com/llvm/llvm-project/blob/main/llvm/docs/LangRef.rst. It looks like that document uses .. code-block::, as in: .. code-block:: llvm %2 = add i32 %0, %1 call void @llvm.dbg.value(metadata i32 %2, | |
48 | It looks like double backticks (rather than single) are used to format code inline in reStructuredText. |
Thanks for taking a look @Orlando!
Unlike most historical LLVM docs, this file is using Markdown, which ends up rendered together with the reStructuredText docs by Sphinx. Markdown is recommended for new docs.
With Markdown in mind, please take another look when you have time. 🙂
Thanks for the link, I had completely missed that (and managed to miss the .md file extension - oops!). Yep this LGTM, thanks.
Thanks for the review! 😄
Since this is a pretty clear improvement and docs-only, I'll go ahead and land it now without waiting for further comments.
I'm not particularly familiar with reStructuredText formatting at all - do triple backticks format a code block? I can't see them used in https://github.com/llvm/llvm-project/blob/main/llvm/docs/LangRef.rst. It looks like that document uses .. code-block::, as in: