From 93e4d0d095e3376bcd5e1c2b9e1fd83e8ae9bd6e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 21 May 2024 15:24:12 -0400 Subject: track config examples provided in ./views --- org/config_d_cfte.org | 71 ++++++++++++--------------------------------------- 1 file changed, 16 insertions(+), 55 deletions(-) (limited to 'org/config_d_cfte.org') 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 +/ +<> +#+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 = "<>"; - string http_host = "<>"; - string www_url_doc_root = "<>"; - string www_url_doc_subroot = "<>"; - string processing_path_doc_root = "<>"; - string cgi_bin_root = "<>"; - string cgi_bin_subpath = "<>"; - string cgi_filename = "<>"; - string cgi_url_root = "<>://<><>"; - string cgi_port = ""; - string cgi_user = ""; - string cgi_url_action = "<>://<><>/<>"; - string cgi_search_form_title = "<>"; - string db_sqlite_path = "<>"; - string 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 -<> -#+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 +/ -- cgit v1.2.3