atk14 / md-book
A set of features that allow to publish Markdown books on web
Installs: 20 147
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
README
A set of features that allow to publish books written in Markdown on web.
Installation
cd path/to/your/project/
composer require atk14/md-book
ln -s ../../vendor/atk14/md-book/src/app/controllers/md_book_base.php ./app/controllers/
ln -s ../../vendor/atk14/md-book/src/app/views/md_book_base ./app/views/
Usage in an Atk14 application
<?php
// file: app/controller/sample_book_controller.php
require_once(__DIR__ . "/md_book_base.php");
class SampleBookController extends MdBookBaseController {
var $book_dir = __DIR__ . "/../../vendor/atk14/md-book/test/sample_book/";
}