File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,11 +21,15 @@ cat <<EOF
2121 </header>
2222EOF
2323
24- behave --dry-run --format=steps.catalog --no-summary |
25- sed -E ' s!^((Given|When|Then).*)$!## \1\n!' | # turn steps into Mdwn headers
26- sed -E ' s#Location: (.*:.*)#[\1](\1)\n#' | # mdwn-link to implementation
27- sed -E ' s#^ ##' | # stop preformatted descriptions
28- python3 -m markdown
24+ fork=" cekit" # TODO: permit override from environment
25+ branch=" v1"
26+ linkroot=" https://github.com/${fork} /behave-test-steps/blob/${branch} /"
27+
28+ behave --dry-run --format=steps.catalog --no-summary |
29+ sed -E ' s!^((Given|When|Then).*)$!## \1\n!' | # turn steps into Mdwn headers
30+ sed -E " s#Location: (.*):(.*)#[\1:\2](${linkroot} \1\#L\2)\n#" | # mdwn-link to the implementation
31+ sed -E ' s#^ ##' | # stop preformatted descriptions # convert to HTML
32+ python3 -m markdown # convert to HTML
2933
3034cat << EOF
3135
You can’t perform that action at this time.
0 commit comments