diff --git a/cheatsheet.markdown b/cheatsheet.markdown index 7eab1cae7..f212883cd 100644 --- a/cheatsheet.markdown +++ b/cheatsheet.markdown @@ -511,7 +511,7 @@ Sometimes it's nice to include a snippet from another file. For example, we dyna `[%CFEngine_include_snippet(cf-promises.help, [\s]*--[a-z], ^$)%]` -[%CFEngine_include_snippet(cf-promises.help, [\s]\*--[a-z], ^$)%] +[%CFEngine_include_snippet(cf-promises.help, [\s]*--[a-z], ^$)%] --- diff --git a/generator/_regenerate_json.sh b/generator/_regenerate_json.sh index df4724ae6..bc4ba4201 100755 --- a/generator/_regenerate_json.sh +++ b/generator/_regenerate_json.sh @@ -97,6 +97,7 @@ done ) | while read agent do dumpHelp ${agent} > ${OUTDIR}/${agent}.help + echo "Dumped help output for ${agent} to ${OUTDIR}/${agent}.help" done # Here we execute and store some command output so that examples can always be up to date. diff --git a/generator/_scripts/cfdoc_macros.py b/generator/_scripts/cfdoc_macros.py index 432690b5a..57914307c 100644 --- a/generator/_scripts/cfdoc_macros.py +++ b/generator/_scripts/cfdoc_macros.py @@ -757,6 +757,10 @@ def include_snippet(parameters, config): markdown_lines.append(line) if not len(markdown_lines): + print("Did not find expected content in %s" % filename) + print("Full content of file:") + for line in lines: + print(line, end="") raise Exception("Snippet not found: %s" % begin.pattern) return list()