feat(gherkin-to-asciidoc): add ci indexing value and a CLI override for the whole build - #102
Merged
Merged
Conversation
…ludeSubDirs/groupByFeature default changes PR #99 shipped the indexing DSL property and flipped includeSubDirs/ groupByFeature to default to true, but never touched the plugin's own README - it still showed the old false defaults everywhere and had no mention of indexing at all. Updates the Groovy/Kotlin DSL samples, the configuration properties table, and the validation notes for the new defaults and the new property. Adds a "Numbering Features and Scenarios" section describing all four indexing values, the file processing/numbering order, and a before/after example, linking to the new indexing example. Updates "Sample Output"/"Grouping by Feature" to show the new default (grouped) output first, with groupByFeature = false now documented as the opt-out. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…or the whole build
Adds IndexingMode.CI: unlike OFF, it skips indexing entirely - the
source .feature files aren't touched at all, not even to strip prior
numbering. Adds the -PgherkinToAsciidoc.indexing=<value> project
property, which overrides indexing for every project in the build
regardless of what each project's own gherkinToAsciidoc { } block
configures, matched against IndexingMode case-insensitively. Intended
usage is forcing `ci` in a CI pipeline so generateFeatureDocs never
mutates source files there, without changing any build script.
Documents both in the plugin README (new "Overriding indexing from
the Command Line" subsection, updated tables/validation notes) and
adds a fifth `ci` sub-project to the indexing example, whose feature
files start out already numbered specifically to prove CI leaves
that numbering untouched, plus a walkthrough of the CLI override
forcing all five sub-projects to skip indexing for a single run.
Also fixes a pre-existing bug in the example (introduced when it was
first added): the feature/scenario/all sub-projects' committed
.feature files were left numbered from local verification instead of
the clean baseline the README describes.
Pins the example to gherkin-to-asciidoc = 2.1.0, the version this
purely additive change is expected to release as; verified locally
against the plugin's own source (via a temporary includeBuild, since
removed) before pinning.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Base automatically changed from
docs-gherkin-to-asciidoc-indexing-readme
to
main
August 5, 2026 12:06
Arc-E-Tect
added a commit
that referenced
this pull request
Aug 5, 2026
# [2.1.0](v2.0.0...v2.1.0) (2026-08-05) ### ✨ New and updated features * **gherkin-to-asciidoc:** add ci indexing value and a CLI override for the whole build ([#102](#102)) ([063c069](063c069)), closes [#102](#102) [#99](#99) ### 📝 Documentation * **gherkin-to-asciidoc:** add multi-project example demonstrating the indexing modes ([#100](#100)) ([a0cd7a7](a0cd7a7)), closes [#100](#100) * **gherkin-to-asciidoc:** document the indexing property and the includeSubDirs/groupByFeature default changes ([#101](#101)) ([9fe4afd](9fe4afd)), closes [#101](#101) [#99](#99)
Owner
Author
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
indexingitself).IndexingMode.CI: unlikeOFF, it skips indexing entirely - the source.featurefiles aren't touched at all, not even to strip prior numbering.-PgherkinToAsciidoc.indexing=<value>project property, which overridesindexingfor every project in the build regardless of what each project's owngherkinToAsciidoc { }block configures (matched againstIndexingModecase-insensitively). Intended usage: forceciin a CI pipeline sogenerateFeatureDocsnever mutates source files there, without changing any build script.indexingfrom the Command Line" subsection, updated tables/validation notes).cisub-project to the indexing example, whose feature files start out already numbered specifically to proveCIleaves that numbering untouched, plus a walkthrough of the CLI override forcing all five sub-projects to skip indexing for a single run.Bug fix
feature/scenario/allsub-projects' committed.featurefiles were left numbered from local verification instead of the clean baseline the README describes.Notes
gherkin-to-asciidoc = 2.1.0, the version this purely additive change is expected to release as. Verified locally against the plugin's own source (via a temporaryincludeBuild, since removed) before pinning; won't build against the Gradle Plugin Portal until2.1.0is actually released.