---------------------------------------------------------------------
| 113 | |
| 114 | //--------------------------------------------------------------------- |
| 115 | HtmlFile HtmlFolderStructure::GetHtmlFilePath(const std::filesystem::path& filePath) const |
| 116 | { |
| 117 | if (!optionalCurrentModule_) |
| 118 | THROW(L"No root module selected"); |
| 119 | |
| 120 | auto filename = filePath.filename(); |
| 121 | auto output = filename.wstring() + L".html"; |
| 122 | const auto& modulePath = optionalCurrentModule_->path_; |
| 123 | auto fileHtmlPath = optionalCurrentModule_->uniqueChildrenPath_.GetUniquePath(modulePath / output); |
| 124 | |
| 125 | return HtmlFile{fileHtmlPath, modulePath.filename() / fileHtmlPath.filename()}; |
| 126 | } |
| 127 | } |