mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
move documentation into bundle.
This commit is contained in:
parent
fdb7b3a7f3
commit
e66d8943d1
@ -13,7 +13,7 @@ require_once __DIR__.'/libraries/markdown.php';
|
|||||||
*/
|
*/
|
||||||
function document($page)
|
function document($page)
|
||||||
{
|
{
|
||||||
return Markdown(file_get_contents(path('storage').'documentation/'.$page.'.md'));
|
return Markdown(file_get_contents(__DIR__.'/pages/'.$page.'.md'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -24,7 +24,7 @@ function document($page)
|
|||||||
*/
|
*/
|
||||||
function document_exists($page)
|
function document_exists($page)
|
||||||
{
|
{
|
||||||
return file_exists(path('storage').'documentation/'.$page.'.md');
|
return file_exists(__DIR__.'/pages/'.$page.'.md');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user