Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmunir authored Sep 7, 2020
1 parent d9216e8 commit 5b0966e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/default/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
$links[] = "[**{$menu['label']}**]({$url})";
}
$body = str_replace(':smile:.', ".\n\n" . implode(' ', $links) . "\n", file_get_contents(Url::to('@mdm/admin/README.md')));
} else {
} elseif(preg_match('/^docs\/guide\/[\w-]+\.md$/', $page)) {
$body = file_get_contents(Url::to("@mdm/admin/{$page}"));
} else{
$body = '';
}

$body = preg_replace_callback('/\]\((.*?)\)/', function($matches) use($baseDir) {
Expand Down

0 comments on commit 5b0966e

Please sign in to comment.