diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-10-16 19:16:18 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-10-19 13:26:15 -0400 |
commit | 0c693b23c4ff8f98a151884a24f150a5ff746dd4 (patch) | |
tree | f638d7942cab5b20adc3761ad7fcb62283eeefd8 /org/meta_conf_make_meta.org | |
parent | cgi.d arsd update (diff) |
org mode, unique code-block names & adjust headers
- avoid org-mode undefined behavior, provide
unique code-block names
Diffstat (limited to 'org/meta_conf_make_meta.org')
-rw-r--r-- | org/meta_conf_make_meta.org | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org index dbe3cc9..d1e21bc 100644 --- a/org/meta_conf_make_meta.org +++ b/org/meta_conf_make_meta.org @@ -7,6 +7,7 @@ #+COPYRIGHT: Copyright (C) 2015 - 2020 Ralph Amissah #+LANGUAGE: en #+STARTUP: content hideblocks hidestars noindent entitiespretty +#+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t #+PROPERTY: header-args :exports code #+PROPERTY: header-args+ :noweb yes #+PROPERTY: header-args+ :eval no @@ -84,12 +85,18 @@ import doc_reform.meta.conf_make_meta_structs; #+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_structs.d" module doc_reform.meta.conf_make_meta_structs; -<<meta_defaults_template_structs>> +<<meta_defaults_template_structs_0>> +<<meta_defaults_template_structs_1>> +<<meta_defaults_template_structs_2>> +<<meta_defaults_template_structs_3>> +<<meta_defaults_template_structs_4>> +<<meta_defaults_template_structs_5>> +<<meta_defaults_template_structs_6>> #+END_SRC ** initialize, imports etc. -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_0 #+BEGIN_SRC d import std.exception, @@ -112,7 +119,7 @@ static auto mkup = InlineMarkup(); ** struct Generic ConfComposite -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_1 #+BEGIN_SRC d @safe string url_markup(string line) { string line_ = line @@ -224,7 +231,7 @@ struct confCompositeMakeBuild { ** initialize make & meta *** composite make -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_2 #+BEGIN_SRC d struct ConfCompositeMakeInit { string[] bold; @@ -249,7 +256,7 @@ struct ConfCompositeMakeInit { *** struct: conf site local -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_3 #+BEGIN_SRC d struct ConfCompositeSiteLocal { string w_srv_http; @@ -308,7 +315,7 @@ struct ConfCompositeSiteLocal { *** struct: composite meta -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_4 #+BEGIN_SRC d struct MetaComposite { string classify_dewey; @@ -368,7 +375,7 @@ struct MetaComposite { *** composite structs -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_5 #+BEGIN_SRC d struct ConfComposite { MetaComposite meta; @@ -380,7 +387,7 @@ struct ConfComposite { *** JSONValue -#+NAME: meta_defaults_template_structs +#+NAME: meta_defaults_template_structs_6 #+BEGIN_SRC d JSONValue config_jsonstr = `{ }`; @@ -1451,7 +1458,9 @@ static template contentJSONtoSpineStruct() { writeln("<< --------------------------- <<"); } confCompositeMakeBuild _mk; - <<json_objects>> + <<json_objects_0>> + <<json_objects_1>> + <<json_objects_2>> return _struct_composite; } } @@ -1459,7 +1468,7 @@ static template contentJSONtoSpineStruct() { ** make -#+NAME: json_objects +#+NAME: json_objects_0 #+BEGIN_SRC d /+ make ------------------------------------------------------------------- +/ if ("make" in _json.object) { @@ -1624,7 +1633,7 @@ if ("make" in _json.object) { ** conf -#+NAME: json_objects +#+NAME: json_objects_1 #+BEGIN_SRC d /+ conf ------------------------------------------------------------------- +/ if ("webserv" in _json.object) { @@ -1795,7 +1804,7 @@ if ("search" in _json.object) { ** meta -#+NAME: json_objects +#+NAME: json_objects_2 #+BEGIN_SRC d /+ meta ------------------------------------------------------------------- +/ if (_struct_composite.meta.creator_author.empty) { |