Skip to content

Improve Sail code formatting and syntax highlighting#33

Closed
Alfredo Rodrigues (AlfredoRodrigues4) wants to merge 1 commit into
riscv:mainfrom
foss-for-synopsys-dwc-arc-processors:UpdatedSail
Closed

Improve Sail code formatting and syntax highlighting#33
Alfredo Rodrigues (AlfredoRodrigues4) wants to merge 1 commit into
riscv:mainfrom
foss-for-synopsys-dwc-arc-processors:UpdatedSail

Conversation

@AlfredoRodrigues4

Copy link
Copy Markdown

The Sail code in the RISC-V manuals suffers from poor readability and alignment issues. I discovered a repository (https://github.com/Alasdair/asciidoctor-sail) that offers a solution to enhance the presentation of Sail code by aligning it and highlighting keywords with colors. This approach significantly improves the clarity of the Sail code in the manual.
To implement this, it's necessary to add a folder to the RISC-V ISA manual repository with the Ruby files that will handle the formatting. While not all of these files may be useful immediately, for now in simple sail codes only highlighter.rb file is used, they could be valuable for future enhancements.
I noticed that Bill Traynor (@wmat) has previously interacted with this repository, which raises the question of why this solution hasn't been added yet.
image
And this is how the sail code will look like in the manual.
To implement this improvement, it will be necessary to include these files in the "REQUIRES" section of the Makefile in the RISC-V ISA Manual.

@wmat

Copy link
Copy Markdown
Collaborator

I'm confused. Is this PR adding the asciidoctor-sail extension that Alasdair wrote directly to the docs-resources?

@AlfredoRodrigues4

Copy link
Copy Markdown
Author

I didn't know that you were currently working on the Alasdair repository, I saw it and thought it would be interesting to try to add it to the main manual in order to improve it and try to do something cool, I already talked to you in riscv/riscv-isa-manual#1608 and I already understood the final objective, gonna close this PR, thanks!

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

Successfully merging this pull request may close these issues.

2 participants