aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/source/paths_source.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/source/paths_source.d')
-rw-r--r--src/doc_reform/source/paths_source.d9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/doc_reform/source/paths_source.d b/src/doc_reform/source/paths_source.d
index 838f114..f291fb5 100644
--- a/src/doc_reform/source/paths_source.d
+++ b/src/doc_reform/source/paths_source.d
@@ -43,6 +43,9 @@ template PodManifest() {
}
return _manifest_path;
}
+ string pods_collection_root_path() {
+ return (pod_manifest_path.length > 0) ? ((chainPath(pod_manifest_path, "..")).asNormalizedPath).array.to!string : "";
+ }
string pod_manifest_file_with_path() {
string _k;
if (exists(pod_manifest_path.chainPath(pod_manifest_filename).array)!=0) {
@@ -87,7 +90,6 @@ template PathMatters() {
return Env_();
}
auto opt() {
- auto _opt_actions = _opt_actions;
struct Opt_ {
auto action() {
return _opt_actions;
@@ -103,9 +105,8 @@ template PathMatters() {
bool src_is_pod() {
return (_manifested.pod_manifest_path.length > 0) ? true : false;
}
- auto collection_root() {
- auto _collection_root = ((chainPath(_manifested.pod_manifest_path, "..")).asNormalizedPath).array;
- return _collection_root;
+ string collection_root() {
+ return _manifested.pods_collection_root_path;
}
string manifest_filename() {
return _manifested.pod_manifest_filename;