diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-05-21 14:52:41 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-05-22 15:42:48 -0400 |
| commit | fcacae04d8f13baee88528a3e72ed5f791c4c1c6 (patch) | |
| tree | de65fe4045e026ce4ef30394b218abfb6166d9cd /org | |
| parent | decouple abstraction phase1:1 (diff) | |
decouple abstraction phase1:2
phase1 step2: move SSP serialiser into sisudoc.abstraction package
git mv src/sisudoc/io_out/create_abstraction_txt.d to
src/sisudoc/abstraction/ssp.d
Module rename: sisudoc.io_out.create_abstraction_txt
-> sisudoc.abstraction.ssp
Completes phase1: after this commit the sisudoc.abstraction package has
zero outgoing edges into sisudoc.io_out. The library produces both the
in-memory document object model AND the .ssp text serialisation without
referencing any output-side module.
The serialiser previously imported sisudoc.io_out.paths_output for the
single purpose of constructing the .ssp output path. That import is
dropped; the path construction is inlined as three lines of std.path
(chainPath / asNormalizedPath / array) producing
<output_path>/<language>/abstraction/<doc_uid_out>.ssp
- byte-for-byte the same path the previous spineOutPaths!() call
produced.
Updated:
- src/sisudoc/abstraction/ssp.d - module decl + inline path
- src/sisudoc/abstraction/package.d - public import .ssp
- src/sisudoc/spine.d - import sisudoc.abstraction.ssp (x2)
Completes decouple abstraction phase1
(assisted by Claude-Code)
Diffstat (limited to 'org')
| -rw-r--r-- | org/ocda.org | 1 | ||||
| -rw-r--r-- | org/spine.org | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/org/ocda.org b/org/ocda.org index aab5f2a..d4da85d 100644 --- a/org/ocda.org +++ b/org/ocda.org @@ -64,6 +64,7 @@ module sisudoc.abstraction; @safe: public import sisudoc.meta.metadoc; // spineAbstraction (A-layer) public import sisudoc.meta.metadoc_from_src; // docAbstraction (B-layer) +public import sisudoc.abstraction.ssp; // spineAbstractionTxt (.ssp) #+END_SRC ** _module template_ :module:metadoc_from_src: diff --git a/org/spine.org b/org/spine.org index cdc99ff..481f2c7 100644 --- a/org/spine.org +++ b/org/spine.org @@ -1614,7 +1614,7 @@ if (doc.matters.opt.action.show_config) { #+BEGIN_SRC d /+ ↓ document abstraction text representation +/ if (doc.matters.opt.action.show_abstraction) { - import sisudoc.io_out.create_abstraction_txt; + import sisudoc.abstraction.ssp; spineAbstractionTxt!()(doc); } #+END_SRC |
