diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-06-23 14:01:43 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-10-17 19:07:20 -0400 |
commit | d542315e97260128706af55652964f18e9fdc4bb (patch) | |
tree | cfa3a68fa463eaf433fb562fd69a1a0b968e0b4e /src/doc_reform/source/paths_source.d | |
parent | harvest reorganized (diff) |
harvests reorganized; adjustments: output, pathsdoc-reform_v0.7.3
Diffstat (limited to 'src/doc_reform/source/paths_source.d')
-rw-r--r-- | src/doc_reform/source/paths_source.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/doc_reform/source/paths_source.d b/src/doc_reform/source/paths_source.d index bf4ee55..408d227 100644 --- a/src/doc_reform/source/paths_source.d +++ b/src/doc_reform/source/paths_source.d @@ -199,6 +199,19 @@ template PathMatters() { } return _uid; } + string doc_uid_out() { + string _uid; + if (is_pod && !(pod_name_with_path.empty)) { + if (pod_name_with_path.baseName == filename_base) { + _uid = filename_base ~ "." ~ lng; + } else { + _uid = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ "." ~ lng; + } + } else { + _uid = "_" ~ filename_base ~ "." ~ lng; + } + return _uid; + } string docname_composite_unique_per_src_doc() { string _fn; if (pod_name_with_path.baseName == filename_base) { |