RST
Install an RST parser, for example:
composer require gregwar/rst --dev
Use --dev
only if easy-doc itself is installed in the "require-dev"
of your composer.json
And add .md
parsing in the 'extensions'
config:
<?php
use Gregwar\RST\Parser;
$parser = new Parser();
return [
'index' => '/',
'websiteDirectory' => __DIR__.'/../dist/website',
'sourceDirectory' => __DIR__,
'assetsDirectory' => __DIR__.'/assets',
'layout' => __DIR__.'/layout.php',
'extensions' => [
'rst' => function ($file) use ($parser) {
return $parser->parseFile($file);
},
],
];