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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user