mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
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:
parent
310deb69ad
commit
720b35d831
@ -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()
|
||||
)));
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user