diff options
Diffstat (limited to 'org/sdp.org')
-rw-r--r-- | org/sdp.org | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/org/sdp.org b/org/sdp.org index e359c65..274c285 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -13,7 +13,7 @@ #+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n) [[../maker.org][maker.org makefile]] [[./][org/]] -* 0. Code Outline / Structure (tangles) :tangle: +* 0. Code Skeleton / Outline / Structure (tangles) :tangle: ** TODO version.txt: set version (sisu document parser) :version: #+NAME: version_txt @@ -24,7 +24,7 @@ struct Version { int minor; int patch; } -enum ver = Version(0, 9, 6); +enum ver = Version(0, 10, 0); #+END_SRC ** TODO sdp src/sdp.d :sdp.d: @@ -286,6 +286,7 @@ bool[string] opt_action_bool = [ "section_bookindex" : true, "section_blurb" : true, "backmatter" : true, + "skip_output" : false, ]; auto helpInfo = getopt(args, std.getopt.config.passThrough, @@ -320,6 +321,7 @@ auto helpInfo = getopt(args, "section-bookindex", "--section-bookindex process document bookindex (default)", &opt_action_bool["section_bookindex"], "section-blurb", "--section-blurb process document blurb (default)", &opt_action_bool["section_blurb"], "backmatter", "--section-backmatter process document backmatter (default)", &opt_action_bool["backmatter"], + "skip_output", "--skip-output", &opt_action_bool["skip_output"], ); if (helpInfo.helpWanted) { defaultGetoptPrinter("Some information about the program.", helpInfo.options); @@ -498,15 +500,17 @@ debug(checkdoc) { #+NAME: sdp_each_file_do_selected_output #+BEGIN_SRC d /+ ↓ output hub +/ -output.hub( - doc_ao_contents, - document_section_keys_sequenced, - doc_html_segnames, - dochead_make, - dochead_meta, - fn_src, - opt_action_bool -); +if (!(opt_action_bool["skip_output"])) { + output.hub( + doc_ao_contents, + document_section_keys_sequenced, + doc_html_segnames, + dochead_make, + dochead_meta, + fn_src, + opt_action_bool + ); +} #+END_SRC **** scope (on loop exit) :scope:exit: |