Skip to content

Add tags backend #47

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

Merged
merged 1 commit into from
Jul 17, 2025
Merged

Add tags backend #47

merged 1 commit into from
Jul 17, 2025

Conversation

Timmmm
Copy link
Contributor

@Timmmm Timmmm commented Jul 14, 2025

This backend allows extracting the text of tagged text in the document into a JSON file. It allows specifying a prefix so you don't get the content of all IDs, just the specific ones you want.

For example given

Add is an instruction. [#tag_add_wraps]#Add wraps on overflow.#

When running

asciidoctor -b tags --require=./docs-resources/converters/tags.rb input.adoc

You would generate a JSON file containing

{
    "tags": {
    	"tag_add_wraps": "Add wraps on overflow."
    }
}

This backend allows extracting the text of tagged text in the document into a JSON file. It allows specifying a prefix so you don't get the content of *all* IDs, just the specific ones you want.

For example given

    Add is an instruction. [#tag_add_wraps]#Add wraps on overflow.#

When running

    asciidoctor -b tags --require=./docs-resources/converters/tags.rb input.adoc

You would generate a JSON file containing

    {
        "tags": {
        	"tag_add_wraps": "Add wraps on overflow."
        }
    }
@Timmmm
Copy link
Contributor Author

Timmmm commented Jul 14, 2025

Corresponding PR in riscv-isa-manual: riscv/riscv-isa-manual#1769

@wmat wmat merged commit 45d29d9 into riscv:main Jul 17, 2025
1 of 2 checks passed
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