Add a way to check if a version is the current stable

This allows things like styling or highlighting of the currentl stable version when used in a project to make it more obvious that people should be using that documentation.
This commit is contained in:
Cam Findlay 2015-10-13 10:30:27 +13:00
parent 310deb69ad
commit 720b35d831

View File

@ -709,7 +709,8 @@ class DocumentationManifest {
$output->push(new ArrayData(array(
'Title' => $check->getVersion(),
'Link' => $check->Link(),
'LinkingMode' => ($same) ? 'current' : 'link'
'LinkingMode' => ($same) ? 'current' : 'link',
'IsStable' => $check->getIsStable()
)));
}