Skip to content

Add tags backend#47

Merged
wmat merged 1 commit intoriscv:mainfrom
Timmmm:main
Jul 17, 2025
Merged

Add tags backend#47
wmat merged 1 commit intoriscv:mainfrom
Timmmm:main

Conversation

@Timmmm
Copy link
Collaborator

@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
Collaborator 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
@james-ball-qualcomm
Copy link
Collaborator

Cool. See this got merged. Now I can play with it.

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.

3 participants