summaryrefslogtreecommitdiffhomepage
path: root/org/config_d_cfte.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-05-21 15:24:12 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-05-21 15:24:12 -0400
commit93e4d0d095e3376bcd5e1c2b9e1fd83e8ae9bd6e (patch)
tree9ec37cd7fcd74038e4e1a473220f82613d331a77 /org/config_d_cfte.org
parentnix dlang overlay ldc-1.38.0 (diff)
track config examples provided in ./views
Diffstat (limited to 'org/config_d_cfte.org')
-rw-r--r--org/config_d_cfte.org71
1 files changed, 16 insertions, 55 deletions
diff --git a/org/config_d_cfte.org b/org/config_d_cfte.org
index 33aee8b..8a12537 100644
--- a/org/config_d_cfte.org
+++ b/org/config_d_cfte.org
@@ -71,63 +71,39 @@ version (Posix) {
SEE NOTES on configuration hierarchy in spine.org
*** spine: configuration.txt SET
-**** example
+**** configure
-#+HEADER: :tangle "../views/configuration_example.txt"
+#+HEADER: :tangle ../views/configuration.txt_
#+HEADER: :noweb yes
#+BEGIN_SRC d
/+ obt - org-mode generated file +/
+<<config_localhost>>
+#+END_SRC
+
+**** configure localhost
+
+#+NAME: config_localhost
+#+HEADER: :tangle ../views/configuration.txt_localhost_
+#+BEGIN_SRC d
+/+ obt - org-mode generated file +/
struct Cfg {
string http_request_type = "http";
string http_host = "localhost";
string www_url_doc_subroot = "/spine";
string cgi_filename = "spine_search";
- string cgi_search_form_title = "≅ SiSU Spine search";
+ string cgi_search_form_title = "≅ SiSU Spine search ፨";
string db_sqlite_path = "/var/www/sqlite";
string db_sqlite_filename = "spine.search.db";
}
enum _cfg = Cfg();
#+END_SRC
-#+BEGIN_SRC d
-/+ obt - org-mode generated file +/
-struct Cfg {
- string http_request_type = "<<http_request_type>>";
- string http_host = "<<http_host>>";
- string www_url_doc_root = "<<www_url_doc_root>>";
- string www_url_doc_subroot = "<<www_url_doc_subroot>>";
- string processing_path_doc_root = "<<processing_path_doc_root>>";
- string cgi_bin_root = "<<cgi_bin_root>>";
- string cgi_bin_subpath = "<<cgi_bin_subpath>>";
- string cgi_filename = "<<cgi_filename>>";
- string cgi_url_root = "<<http_request_type>>://<<http_host>><<cgi_bin_subpath>>";
- string cgi_port = "";
- string cgi_user = "";
- string cgi_url_action = "<<http_request_type>>://<<http_host>><<cgi_bin_subpath>>/<<cgi_filename>>";
- string cgi_search_form_title = "<<cgi_search_form_title>>";
- string db_sqlite_path = "<<db_sqlite_path>>";
- string db_sqlite_filename = "<<db_sqlite_filename>>";
- string default_language = "en";
- string default_papersize = "a4,letter.portrait";
- string default_text_wrap = "80";
- string default_hash_digest = "sha256";
-}
-enum _cfg = Cfg();
-#+END_SRC
-
-**** configure
-
-#+HEADER: :tangle ../views/configuration.txt_
-#+HEADER: :noweb yes
-#+BEGIN_SRC d
-<<config_localhost>>
-#+END_SRC
-
**** configure remote host (sisudoc.org)
#+NAME: config_remotehost
#+HEADER: :tangle ../views/configuration.txt_remotehost_
#+BEGIN_SRC d
+/+ obt - org-mode generated file +/
struct Cfg {
string http_request_type = "https";
string http_host = "sisudoc.org";
@@ -141,6 +117,7 @@ enum _cfg = Cfg();
#+END_SRC
#+BEGIN_SRC d
+/+ obt - org-mode generated file +/
struct Cfg {
string http_request_type = "https";
string http_host = "sisudoc.org";
@@ -165,24 +142,8 @@ struct Cfg {
enum _cfg = Cfg();
#+END_SRC
-**** configure localhost
-
-#+NAME: config_localhost
-#+HEADER: :tangle ../views/configuration.txt_localhost_
-#+BEGIN_SRC d
-struct Cfg {
- string http_request_type = "http";
- string http_host = "localhost";
- string www_url_doc_subroot = "/spine";
- string cgi_filename = "spine_search";
- string cgi_search_form_title = "≅ SiSU Spine search ፨";
- string db_sqlite_path = "/var/www/sqlite";
- string db_sqlite_filename = "spine.search.db";
-}
-enum _cfg = Cfg();
-#+END_SRC
-
#+BEGIN_SRC d
+/+ obt - org-mode generated file +/
struct Cfg {
string http_request_type = "http";
string http_host = "localhost";
@@ -209,7 +170,7 @@ enum _cfg = Cfg();
*** spine_search: configuration.txt SET
-#+HEADER: :tangle "../doc-reform-code-software-search-cgi/views/configuration_example.txt"
+#+HEADER: :tangle "../views/configuration_example.txt"
#+HEADER: :noweb yes
#+BEGIN_SRC d
/+ obt - org-mode generated file +/