diff options
| -rw-r--r-- | org/default_regex.org | 3 | ||||
| -rw-r--r-- | org/in_source_files.org | 45 | ||||
| -rw-r--r-- | org/meta_conf_make_meta.org | 6 | ||||
| -rw-r--r-- | src/doc_reform/io_in/read_config_files.d | 38 | ||||
| -rw-r--r-- | src/doc_reform/io_in/read_source_files.d | 9 | ||||
| -rw-r--r-- | src/doc_reform/meta/conf_make_meta_yaml.d | 6 | ||||
| -rw-r--r-- | src/doc_reform/meta/rgx.d | 1 | 
7 files changed, 57 insertions, 51 deletions
| diff --git a/org/default_regex.org b/org/default_regex.org index 6891147..02f3e3a 100644 --- a/org/default_regex.org +++ b/org/default_regex.org @@ -30,14 +30,12 @@ http://dlang.org/phobos/std_regex.html  ** _module template_                                                  :module: -#+NAME: tangle_meta_rgx  #+BEGIN_SRC d :tangle "../src/doc_reform/meta/rgx.d"  /++    regex: regular expressions used in sisu document parser  +/  module doc_reform.meta.rgx;  static template spineRgxInit() { -  import doc_reform.meta.defaults;    static struct Rgx {      <<meta_rgx>>      <<prgmkup_rgx>> @@ -363,7 +361,6 @@ http://dlang.org/phobos/std_regex.html  ** _module template_                                           :module:output: -#+NAME: tangle_meta_rgx  #+BEGIN_SRC d :tangle "../src/doc_reform/io_out/rgx.d"  /++    regex: regular expressions used in sisu document parser diff --git a/org/in_source_files.org b/org/in_source_files.org index b958c22..720a47e 100644 --- a/org/in_source_files.org +++ b/org/in_source_files.org @@ -16,14 +16,20 @@  [[./spine.org][spine]]  [[./][org/]]  * imports +** std  #+NAME: imports_std  #+BEGIN_SRC d -import -  doc_reform.meta, -  doc_reform.io_in.paths_source, -  std.file, -  std.path; +std.file, +std.path +#+END_SRC + +** spine + +#+NAME: imports_spine +#+BEGIN_SRC d +doc_reform.meta, +doc_reform.io_in.paths_source  #+END_SRC  * A. get _config file_ (read in) @@ -36,6 +42,10 @@ import    meta_config_files.d  +/  module doc_reform.io_in.read_config_files; +import +  <<imports_std>>, +  <<imports_spine>>, +  doc_reform.meta.rgx;  <<meta_config_file_in>>  <<meta_config_file_hub>>  #+END_SRC @@ -45,12 +55,9 @@ module doc_reform.io_in.read_config_files;  #+NAME: meta_config_file_hub  #+BEGIN_SRC d -static template readConfigSite() { -  import -    doc_reform.meta.rgx; -  <<imports_std>> -  mixin spineRgxInit; +template readConfigSite() {    @system final auto readConfigSite(C)(C _conf_file_details) { +    mixin spineRgxInit;      static auto rgx = Rgx();      string conf_filename = "NONE";      string config_file_str; @@ -154,10 +161,11 @@ webserv:  #+BEGIN_SRC d  static template readConfigDoc() {    import +    <<imports_std>>, +    <<imports_spine>>,      doc_reform.meta.rgx; -  <<imports_std>> -  mixin spineRgxInit;    @system final auto readConfigDoc(M,E)(M _manifested, E _env) { +    mixin spineRgxInit;      static auto rgx = Rgx();      string config_file_str;      string conf_filename = "NONE"; @@ -208,7 +216,9 @@ static template readConfigDoc() {  #+NAME: meta_config_file_hub  #+BEGIN_SRC d  static template configReadSiteYAML() { -  <<imports_std>> +  import +    <<imports_std>>, +    <<imports_spine>>;    @safe final YAMLDocument configReadSiteYAML(M,E)(M _manifested, E _env) {      string _configuration = configReadInSiteYAML!()(_manifested, _env);      auto _conf_file_details = ConfigFilePaths!()(_manifested, _env); @@ -218,7 +228,9 @@ static template configReadSiteYAML() {    }  }  static template configReadDocYAML() { -  <<imports_std>> +  import +    <<imports_std>>, +    <<imports_spine>>;    @safe final YAMLDocument configReadDocYAML(M,E)(M _manifested, E _env) {      string _configuration = configReadInDocYAML!()(_manifested, _env);      auto _conf_file_details = ConfigFilePaths!()(_manifested, _env); @@ -239,10 +251,11 @@ static template configReadDocYAML() {    - if master file scan for addional files to import/insert  +/  module doc_reform.io_in.read_source_files; -static template spineRawMarkupContent() { +template spineRawMarkupContent() {    import +    <<imports_std>>, +    <<imports_spine>>,      doc_reform.meta.rgx; -  <<imports_std>>    mixin spineRgxInit;    static auto rgx = Rgx();    string[] _images=[]; diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org index 898db4f..9468614 100644 --- a/org/meta_conf_make_meta.org +++ b/org/meta_conf_make_meta.org @@ -339,7 +339,7 @@ JSONValue config_jsonstr = `{    extract yaml header return struct  +/  module doc_reform.meta.conf_make_meta_yaml; -static template contentYAMLtoSpineStruct() { +template contentYAMLtoSpineStruct() {    import      std.algorithm,      std.array, @@ -1816,7 +1816,7 @@ if ("rights" in _json.object) {  ** 1. parse Yaml config return spineStruct  #+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" -static template configParseYAMLreturnSpineStruct() { +template configParseYAMLreturnSpineStruct() {    import dyaml;    import      doc_reform.meta.conf_make_meta_structs, @@ -1847,7 +1847,7 @@ static template configParseYAMLreturnSpineStruct() {  ** 2. parse YAML header to +(JSON then)+ Struct  #+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" -static template docHeaderMakeAndMetaTupYamlExtractAndConvertToStruct() { +template docHeaderMakeAndMetaTupYamlExtractAndConvertToStruct() {    import      std.exception,      std.regex, diff --git a/src/doc_reform/io_in/read_config_files.d b/src/doc_reform/io_in/read_config_files.d index ce16f24..4889e4f 100644 --- a/src/doc_reform/io_in/read_config_files.d +++ b/src/doc_reform/io_in/read_config_files.d @@ -4,17 +4,16 @@    meta_config_files.d  +/  module doc_reform.io_in.read_config_files; +import +  std.file, +  std.path, +  doc_reform.meta, +  doc_reform.io_in.paths_source, +  doc_reform.meta.rgx; -static template readConfigSite() { -  import -    doc_reform.meta.rgx; -  import -    doc_reform.meta, -    doc_reform.io_in.paths_source, -    std.file, -    std.path; -  mixin spineRgxInit; +template readConfigSite() {    @system final auto readConfigSite(C)(C _conf_file_details) { +    mixin spineRgxInit;      static auto rgx = Rgx();      string conf_filename = "NONE";      string config_file_str; @@ -112,14 +111,13 @@ webserv:  }  static template readConfigDoc() {    import -    doc_reform.meta.rgx; -  import +    std.file, +    std.path,      doc_reform.meta,      doc_reform.io_in.paths_source, -    std.file, -    std.path; -  mixin spineRgxInit; +    doc_reform.meta.rgx;    @system final auto readConfigDoc(M,E)(M _manifested, E _env) { +    mixin spineRgxInit;      static auto rgx = Rgx();      string config_file_str;      string conf_filename = "NONE"; @@ -165,10 +163,10 @@ static template readConfigDoc() {  }  static template configReadSiteYAML() {    import -    doc_reform.meta, -    doc_reform.io_in.paths_source,      std.file, -    std.path; +    std.path, +    doc_reform.meta, +    doc_reform.io_in.paths_source;    @safe final YAMLDocument configReadSiteYAML(M,E)(M _manifested, E _env) {      string _configuration = configReadInSiteYAML!()(_manifested, _env);      auto _conf_file_details = ConfigFilePaths!()(_manifested, _env); @@ -179,10 +177,10 @@ static template configReadSiteYAML() {  }  static template configReadDocYAML() {    import -    doc_reform.meta, -    doc_reform.io_in.paths_source,      std.file, -    std.path; +    std.path, +    doc_reform.meta, +    doc_reform.io_in.paths_source;    @safe final YAMLDocument configReadDocYAML(M,E)(M _manifested, E _env) {      string _configuration = configReadInDocYAML!()(_manifested, _env);      auto _conf_file_details = ConfigFilePaths!()(_manifested, _env); diff --git a/src/doc_reform/io_in/read_source_files.d b/src/doc_reform/io_in/read_source_files.d index fcbd075..041ec91 100644 --- a/src/doc_reform/io_in/read_source_files.d +++ b/src/doc_reform/io_in/read_source_files.d @@ -4,14 +4,13 @@    - if master file scan for addional files to import/insert  +/  module doc_reform.io_in.read_source_files; -static template spineRawMarkupContent() { -  import -    doc_reform.meta.rgx; +template spineRawMarkupContent() {    import +    std.file, +    std.path,      doc_reform.meta,      doc_reform.io_in.paths_source, -    std.file, -    std.path; +    doc_reform.meta.rgx;    mixin spineRgxInit;    static auto rgx = Rgx();    string[] _images=[]; diff --git a/src/doc_reform/meta/conf_make_meta_yaml.d b/src/doc_reform/meta/conf_make_meta_yaml.d index e55a24f..5355a58 100644 --- a/src/doc_reform/meta/conf_make_meta_yaml.d +++ b/src/doc_reform/meta/conf_make_meta_yaml.d @@ -3,7 +3,7 @@    extract yaml header return struct  +/  module doc_reform.meta.conf_make_meta_yaml; -static template contentYAMLtoSpineStruct() { +template contentYAMLtoSpineStruct() {    import      std.algorithm,      std.array, @@ -788,7 +788,7 @@ static template contentYAMLtoSpineStruct() {      return _struct_composite;    }  } -static template configParseYAMLreturnSpineStruct() { +template configParseYAMLreturnSpineStruct() {    import dyaml;    import      doc_reform.meta.conf_make_meta_structs, @@ -814,7 +814,7 @@ static template configParseYAMLreturnSpineStruct() {      return _make_and_meta_struct;    }  } -static template docHeaderMakeAndMetaTupYamlExtractAndConvertToStruct() { +template docHeaderMakeAndMetaTupYamlExtractAndConvertToStruct() {    import      std.exception,      std.regex, diff --git a/src/doc_reform/meta/rgx.d b/src/doc_reform/meta/rgx.d index b6d23bf..c7a110b 100644 --- a/src/doc_reform/meta/rgx.d +++ b/src/doc_reform/meta/rgx.d @@ -3,7 +3,6 @@  +/  module doc_reform.meta.rgx;  static template spineRgxInit() { -  import doc_reform.meta.defaults;    static struct Rgx {      /+ misc +/      // static true_dollar                                    = ctRegex!(`\$`, "gm"); | 
