2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-17 14:22:09 +00:00

Fix generate.php for non-standard branches

This commit is contained in:
Daniel James
2017-06-09 21:11:42 +01:00
parent e74e302e28
commit ac91fe9cc7
2 changed files with 45 additions and 41 deletions

View File

@@ -34,16 +34,10 @@ class LibrariesHtm {
}
function display() {
// TODO: Specifying the version only works *after* a release, as
// new libraries will still have develop/master as their
// version. This works for now as version is always
// master/develop, but might change in the future.
//
// Now that BoostVersion has 'prerelease' versions, could
// possibly use that for new libraries to handle this better.
$version = BoostVersion::from(
array_key_exists('version', $this->args) ? $this->args['version'] : 'master'
);
$version =
BoostVersion::parseVersion(
BoostWebsite::array_get($this->args, 'version')) ?:
BoostVersion::master();
$version_string = (string) $version;
$page = $this->args['page'];
$libs = BoostLibraries::load();