Env
OS: macOS 10.15.6
php:
PHP 7.3.11 (cli) (built: Jul 5 2020 03:23:39) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
Some Code
#!/usr/bin/env php
<?php
require 'vendor/autoload.php';
use Doctrine\RST\Builder;
use Doctrine\RST\Configuration;
use Doctrine\RST\Formats\Format;
use Doctrine\RST\Kernel;
defined('ROOT') || define('ROOT', dirname(__DIR__));
$source = ROOT . '/docs/rst';
$target = ROOT . '/runtime/docs';
$configuration = new Configuration();
$configuration->setFileExtension(Format::HTML);
$configuration->setIndentHTML(true);
$configuration->setCustomTemplateDirs(
[
ROOT . '/docs/themes',
]
);
$configuration->setTheme('nim');
$kernel = new Kernel($configuration);
$builder = new Builder($kernel);
$builder->setIndexName('quick_start');
$builder->build($source, $target);
File Struction
Error Info
Fatal error: Uncaught Twig\Error\LoaderError: The "/path/to/vendor/doctrine/rst-parser/lib/Templates/nim/html" directory does not exist ("/path/to/vendor/doctrine/rst-parser/lib/Templates/nim/html"). in /path/to/vendor/twig/twig/src/Loader/FilesystemLoader.php:106
Expect
I don't think it should be break when I have been specify the themes' dir.
Maybe there should be some thing make it pass as long as one of custumized dir and other per-build path.
Thanks for any helps!
Env
OS: macOS 10.15.6
php:
Some Code
File Struction
Error Info
Expect
I don't think it should be break when I have been specify the themes' dir.
Maybe there should be some thing make it pass as long as one of custumized dir and other per-build path.
Thanks for any helps!