Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discuss ways to pull instructions out of prose in spec to enable inst/page reference manual #44

Open
kbroch-rivosinc opened this issue Jun 4, 2024 · 2 comments

Comments

@kbroch-rivosinc
Copy link
Collaborator

kbroch-rivosinc commented Jun 4, 2024

one idea for quickly doing this could be to use asciidoc tags that then could be used to pull out the content with includes: https://docs.asciidoctor.org/asciidoc/latest/directives/include-tagged-regions/ in a separate document.

/cc @kersten1 @wmat @kasanovic

@wmat
Copy link
Collaborator

wmat commented Jun 4, 2024 via email

@kbroch-rivosinc
Copy link
Collaborator Author

Yep. I actually was thinking a way to exclude non-normative text from generated documents would be to move all non-normative text into their own files as tag filtering only works with the include macro.

That's a good point. And actually I have that example here: https://github.com/riscv-admin/docs-sig/blob/main/projects/csr-format/wavedrom-input.adoc?plain=1#L9

Also if we wanted the potential to leave the non-normative text in the doc as is, we could surround it with https://docs.asciidoctor.org/asciidoc/latest/directives/ifdef-ifndef/ like ifdef::non-norm[] block.

Assuming we are pulling out mostly wavedrom definitions, those could then be used to create the reference model with one item/page. Also table format from the wavedrom using a template to generate the table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants