| 139 | */ |
| 140 | template <typename T> |
| 141 | std::string PluginManager<T>::link(const std::string& name) |
| 142 | { |
| 143 | // Compute URLs for stage documents from the name instead |
| 144 | // of using the URLs that are in the PluginInfo struct |
| 145 | // |
| 146 | // For development builds, we always point to master |
| 147 | // https://pdal.dev/en/master/stages/filters.reprojection.html |
| 148 | // |
| 149 | // For versioned (Release) builds, we point to the version number |
| 150 | // https://pdal.dev/en/2.4.3/stages/filters.reprojection.html |
| 151 | // |
| 152 | std::string root("https://pdal.org/en/"); |
| 153 | |
| 154 | std::string version("master"); |
| 155 | std::string sha = Config::sha1(); |
| 156 | if (Utils::iequals(sha, "Release")) |
| 157 | version = Config::versionString(); |
| 158 | |
| 159 | std::string base = root + version +"/stages/"; |
| 160 | return base + name + ".html"; |
| 161 | } |
| 162 | |
| 163 | |
| 164 | template <typename T> |
no test coverage detected