Skip to content

Commit

Permalink
guide topics are added to the top of the index
Browse files Browse the repository at this point in the history
  • Loading branch information
bisubus committed Jun 13, 2014
1 parent b00b3d6 commit 0b7f7a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/ChmController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class ChmController extends BaseController
{
const GUIDE_PREFIX = 'guide-';
const GUIDE_INDEX_TITLE = '*** Guide ***';

public $layout = false;

Expand Down Expand Up @@ -228,6 +229,7 @@ protected function generateGuideChapters($guideChapters, $guideSourceDir) {
{
$h1['file'] = static::GUIDE_PREFIX . basename($h1['file'], '.md') . '.html';
$this->addFile($h1['file']);
$this->addIndexItem($h1['file'], static::GUIDE_INDEX_TITLE, $h1['headline']);
}
else
{
Expand All @@ -243,6 +245,7 @@ protected function generateGuideChapters($guideChapters, $guideSourceDir) {
{
$h2['file'] = static::GUIDE_PREFIX . basename($h2['file'], '.md') . '.html';
$this->addFile($h2['file']);
$this->addIndexItem($h2['file'], static::GUIDE_INDEX_TITLE, $h2['headline']);
}
else
{
Expand Down

0 comments on commit 0b7f7a9

Please sign in to comment.