From 720b35d8311a65800ca2ad2f4afea39a76e46e55 Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Tue, 13 Oct 2015 10:30:27 +1300 Subject: [PATCH] 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. --- code/DocumentationManifest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/DocumentationManifest.php b/code/DocumentationManifest.php index cd8b279..e260d1c 100644 --- a/code/DocumentationManifest.php +++ b/code/DocumentationManifest.php @@ -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() ))); }