1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/yurunsoft-mddoc

Клонировать/Скачать
build.php 828
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Yurun Отправлено 25.04.2021 08:06 7b79606
#!/usr/bin/env php
<?php
// 禁止非 cli 方式运行
if ('cli' !== \PHP_SAPI)
{
exit('are you ok?');
}
$fileName = __DIR__ . '/vendor/autoload.php';
if (is_file($fileName))
{
require_once $fileName;
}
else
{
$fileName = $_SERVER['PWD'] . '/vendor/autoload.php';
if (is_file($fileName))
{
require_once $fileName;
}
}
use Yurun\MdDoc\Args;
use Yurun\MdDoc\Builder;
Args::init();
$markdownPath = Args::get('markdownPath');
if (null === $markdownPath)
{
exit('-markdownPath can not be null');
}
$htmlPath = Args::get('htmlPath');
if (null === $htmlPath)
{
exit('-htmlPath can not be null');
}
$builder = new Builder($markdownPath, $htmlPath);
$templatePath = Args::get('templatePath');
if (null !== $templatePath)
{
$builder->templatePath = $templatePath;
}
$builder->build();

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/yurunsoft-mddoc.git
git@api.gitlife.ru:oschina-mirror/yurunsoft-mddoc.git
oschina-mirror
yurunsoft-mddoc
yurunsoft-mddoc
master