From 3184da7328272c25001d0f952159d4434804fb32 Mon Sep 17 00:00:00 2001 From: Thomas Walker Lynch Date: Tue, 23 Jun 2026 07:41:43 +0000 Subject: [PATCH] updates RT-style method --- RT-style.js | 38 ++++++++++++++++ administrator/document/RT-style.js | 42 +++++++++++++++++ administrator/document/how-to_release.html | 11 +---- .../document/installation_Python.org | 0 .../document/installation_generic.org | 0 developer/document/RT-style.js | 42 +++++++++++++++++ .../document/naming_file-and-directory.html | 11 +---- .../single-file_C-module-and-namespace.html | 11 +---- document/RT-style.js | 42 +++++++++++++++++ document/introduction_Harmony.html | 11 +---- ...role-and-workflow_product-development.html | 11 +---- ...role-and-workflow_product-maintenance.html | 11 +---- shared/document/.gitkeep | 0 shared/document/RT-style.js | 42 +++++++++++++++++ shared/tool/link-RT | 45 ------------------- 15 files changed, 218 insertions(+), 99 deletions(-) create mode 100644 RT-style.js create mode 100644 administrator/document/RT-style.js rename {shared => administrator}/document/installation_Python.org (100%) rename {shared => administrator}/document/installation_generic.org (100%) create mode 100644 developer/document/RT-style.js create mode 100644 document/RT-style.js delete mode 100644 shared/document/.gitkeep create mode 100644 shared/document/RT-style.js delete mode 100755 shared/tool/link-RT diff --git a/RT-style.js b/RT-style.js new file mode 100644 index 0000000..94ebd32 --- /dev/null +++ b/RT-style.js @@ -0,0 +1,38 @@ +// RT-style.js +window.RT = window.RT || {}; + +// Configuration +window.RT.project_name = "RT-style"; +window.RT.server_url = "http://localhost:8000/shared/linked-project/RT-style/consumer/made"; + +(function() { + let style_path = window.RT.server_url; + + if (window.RT.project_name) { + const path = window.location.pathname; + const project_root_index = path.indexOf('/' + window.RT.project_name + '/'); + + if (project_root_index !== -1) { + const absolute_project_root = path.substring(0, project_root_index + window.RT.project_name.length + 1); + style_path = absolute_project_root + "/shared/linked-project/RT-style/consumer/made"; + } else { + console.warn("RT-style: Cannot locate project root '/" + window.RT.project_name + "/'. Falling back to server URL."); + } + } + + window.RT.dirpr_library = style_path; + + // 1. Inject the loader script + document.write(' - diff --git a/shared/document/installation_Python.org b/administrator/document/installation_Python.org similarity index 100% rename from shared/document/installation_Python.org rename to administrator/document/installation_Python.org diff --git a/shared/document/installation_generic.org b/administrator/document/installation_generic.org similarity index 100% rename from shared/document/installation_generic.org rename to administrator/document/installation_generic.org diff --git a/developer/document/RT-style.js b/developer/document/RT-style.js new file mode 100644 index 0000000..f5a7c75 --- /dev/null +++ b/developer/document/RT-style.js @@ -0,0 +1,42 @@ +// RT-style.js (External consumer project router) +window.RT = window.RT || {}; + +// --- Configuration --- +// Define the consumer project name to allow dynamic local file:// calculation. +window.RT.project_name = "Harmony"; + +// Fallback URL when served over a network where the project root is not in the URI. +window.RT.server_url = "http://localhost:8000/shared/linked-project/RT-style/consumer/made/Manuscript"; + +(function() { + let style_path = window.RT.server_url; + + if (window.RT.project_name) { + const path = window.location.pathname; + const project_root_index = path.indexOf('/' + window.RT.project_name + '/'); + + if (project_root_index !== -1) { + // substring(0, stop) extracts up to the project name, leaving off the trailing slash. + // We append the explicit forward slash before navigating into the shared boundary. + const absolute_project_root = path.substring(0, project_root_index + window.RT.project_name.length + 1); + style_path = absolute_project_root + "/shared/linked-project/RT-style/consumer/made/Manuscript"; + } else { + console.warn("RT-style: Cannot locate project root '/" + window.RT.project_name + "/' in URI. Falling back to server_url."); + } + } + + window.RT.dirpr_library = style_path; + + // 1. Inject the loader script + document.write(' - diff --git a/developer/document/single-file_C-module-and-namespace.html b/developer/document/single-file_C-module-and-namespace.html index 3109daa..db0e657 100644 --- a/developer/document/single-file_C-module-and-namespace.html +++ b/developer/document/single-file_C-module-and-namespace.html @@ -3,16 +3,9 @@ C modules, namespaces, and the build lifecycle + - diff --git a/document/RT-style.js b/document/RT-style.js new file mode 100644 index 0000000..f5a7c75 --- /dev/null +++ b/document/RT-style.js @@ -0,0 +1,42 @@ +// RT-style.js (External consumer project router) +window.RT = window.RT || {}; + +// --- Configuration --- +// Define the consumer project name to allow dynamic local file:// calculation. +window.RT.project_name = "Harmony"; + +// Fallback URL when served over a network where the project root is not in the URI. +window.RT.server_url = "http://localhost:8000/shared/linked-project/RT-style/consumer/made/Manuscript"; + +(function() { + let style_path = window.RT.server_url; + + if (window.RT.project_name) { + const path = window.location.pathname; + const project_root_index = path.indexOf('/' + window.RT.project_name + '/'); + + if (project_root_index !== -1) { + // substring(0, stop) extracts up to the project name, leaving off the trailing slash. + // We append the explicit forward slash before navigating into the shared boundary. + const absolute_project_root = path.substring(0, project_root_index + window.RT.project_name.length + 1); + style_path = absolute_project_root + "/shared/linked-project/RT-style/consumer/made/Manuscript"; + } else { + console.warn("RT-style: Cannot locate project root '/" + window.RT.project_name + "/' in URI. Falling back to server_url."); + } + } + + window.RT.dirpr_library = style_path; + + // 1. Inject the loader script + document.write(' - diff --git a/document/role-and-workflow_product-development.html b/document/role-and-workflow_product-development.html index 57adde1..47c5b2a 100644 --- a/document/role-and-workflow_product-development.html +++ b/document/role-and-workflow_product-development.html @@ -3,16 +3,9 @@ Product development roles and workflow + - diff --git a/document/role-and-workflow_product-maintenance.html b/document/role-and-workflow_product-maintenance.html index 5cccbbd..e2c59db 100644 --- a/document/role-and-workflow_product-maintenance.html +++ b/document/role-and-workflow_product-maintenance.html @@ -3,16 +3,9 @@ Product maintenance roles and workflow + - diff --git a/shared/document/.gitkeep b/shared/document/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/shared/document/RT-style.js b/shared/document/RT-style.js new file mode 100644 index 0000000..f5a7c75 --- /dev/null +++ b/shared/document/RT-style.js @@ -0,0 +1,42 @@ +// RT-style.js (External consumer project router) +window.RT = window.RT || {}; + +// --- Configuration --- +// Define the consumer project name to allow dynamic local file:// calculation. +window.RT.project_name = "Harmony"; + +// Fallback URL when served over a network where the project root is not in the URI. +window.RT.server_url = "http://localhost:8000/shared/linked-project/RT-style/consumer/made/Manuscript"; + +(function() { + let style_path = window.RT.server_url; + + if (window.RT.project_name) { + const path = window.location.pathname; + const project_root_index = path.indexOf('/' + window.RT.project_name + '/'); + + if (project_root_index !== -1) { + // substring(0, stop) extracts up to the project name, leaving off the trailing slash. + // We append the explicit forward slash before navigating into the shared boundary. + const absolute_project_root = path.substring(0, project_root_index + window.RT.project_name.length + 1); + style_path = absolute_project_root + "/shared/linked-project/RT-style/consumer/made/Manuscript"; + } else { + console.warn("RT-style: Cannot locate project root '/" + window.RT.project_name + "/' in URI. Falling back to server_url."); + } + } + + window.RT.dirpr_library = style_path; + + // 1. Inject the loader script + document.write('