Skip to content

Support test suffixes to generate tabs with samples #3

Description

@nikitinas

Input

buid.gradle

korro {
   ...
   testSuffix("_strings", "Strings")
   testSuffix("_accessors", "Accessors")
}

doc.md

<!---test-->

tests.kt

fun test_strings() {
    // SampleStart
    code1
    // SampleEnd
}

fun test_accessors() {
    // SampleStart
    code2
    // SampleEnd
}

Output

doc.md

<!---test-->
<tabs>
<tab title="Strings">
code1
</tab>
<tab title="Accessors">
code2
</tab>
</tabs>
<!---END-->

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions