Add option to specify themes directory
This commit is contained in:
parent
14b50c7c45
commit
f63456cbc8
@ -73,6 +73,11 @@ class Config extends ArrayObject
|
|||||||
return $this['themes_directory'];
|
return $this['themes_directory'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setThemesDirectory($directory)
|
||||||
|
{
|
||||||
|
$this['themes_directory'] = $directory;
|
||||||
|
}
|
||||||
|
|
||||||
public function setThemesPath($themePath)
|
public function setThemesPath($themePath)
|
||||||
{
|
{
|
||||||
$this['themes_path'] = $themePath;
|
$this['themes_path'] = $themePath;
|
||||||
|
@ -20,6 +20,10 @@ class DauxCommand extends SymfonyCommand
|
|||||||
$daux->getParams()->setDocumentationDirectory($input->getOption('source'));
|
$daux->getParams()->setDocumentationDirectory($input->getOption('source'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($input->getOption('themes')) {
|
||||||
|
$daux->getParams()->setThemesDirectory($input->getOption('themes'));
|
||||||
|
}
|
||||||
|
|
||||||
$daux->initializeConfiguration($input->getOption('configuration'));
|
$daux->initializeConfiguration($input->getOption('configuration'));
|
||||||
|
|
||||||
if ($input->hasOption('delete') && $input->getOption('delete')) {
|
if ($input->hasOption('delete') && $input->getOption('delete')) {
|
||||||
|
@ -19,6 +19,7 @@ class Generate extends DauxCommand
|
|||||||
->addOption('source', 's', InputOption::VALUE_REQUIRED, 'Where to take the documentation from')
|
->addOption('source', 's', InputOption::VALUE_REQUIRED, 'Where to take the documentation from')
|
||||||
->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'Output format, html or confluence', 'html')
|
->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'Output format, html or confluence', 'html')
|
||||||
->addOption('processor', 'p', InputOption::VALUE_REQUIRED, 'Manipulations on the tree')
|
->addOption('processor', 'p', InputOption::VALUE_REQUIRED, 'Manipulations on the tree')
|
||||||
|
->addOption('themes', 't', InputOption::VALUE_REQUIRED, 'Set a different themes directory')
|
||||||
|
|
||||||
// Confluence format only
|
// Confluence format only
|
||||||
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete pages not linked to a documentation page (confluence)')
|
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete pages not linked to a documentation page (confluence)')
|
||||||
|
@ -21,6 +21,7 @@ class Serve extends DauxCommand
|
|||||||
->addOption('configuration', 'c', InputOption::VALUE_REQUIRED, 'Configuration file')
|
->addOption('configuration', 'c', InputOption::VALUE_REQUIRED, 'Configuration file')
|
||||||
->addOption('source', 's', InputOption::VALUE_REQUIRED, 'Where to take the documentation from')
|
->addOption('source', 's', InputOption::VALUE_REQUIRED, 'Where to take the documentation from')
|
||||||
->addOption('processor', 'p', InputOption::VALUE_REQUIRED, 'Manipulations on the tree')
|
->addOption('processor', 'p', InputOption::VALUE_REQUIRED, 'Manipulations on the tree')
|
||||||
|
->addOption('themes', 't', InputOption::VALUE_REQUIRED, 'Set a different themes directory')
|
||||||
|
|
||||||
// Serve the current documentation
|
// Serve the current documentation
|
||||||
->addOption('serve', null, InputOption::VALUE_NONE, 'Serve the current directory')
|
->addOption('serve', null, InputOption::VALUE_NONE, 'Serve the current directory')
|
||||||
|
Loading…
Reference in New Issue
Block a user