Skip to content

Provide a custom Asciidoctor macro that reduces the boilerplate required to include snippets #323

@wilkinsona

Description

@wilkinsona

The basic idea is that rather than using an include for each individual snippet, you can use a single macro to include all of the snippets for a particular operation that's been documented. For added flexibility, the macro could use attributes to control which snippets are included.

I prototyped this a while ago as a custom target for the include macro: https://github.com/wilkinsona/springrestdocs/commit/6657af0d590be2673f05d7ecd8f1a91244751edc. I think this could be further refined so that it becomes something like operation::{snippets}/operation-name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementEnhancement that adds a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions