Skip to content

Commit

Permalink
Add option to specify themes directory
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Sep 21, 2016
1 parent 14b50c7 commit f63456c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function getThemesDirectory()
return $this['themes_directory'];
}

public function setThemesDirectory($directory)
{
$this['themes_directory'] = $directory;
}

public function setThemesPath($themePath)
{
$this['themes_path'] = $themePath;
Expand Down
4 changes: 4 additions & 0 deletions libs/Console/DauxCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ protected function prepareDaux(InputInterface $input)
$daux->getParams()->setDocumentationDirectory($input->getOption('source'));
}

if ($input->getOption('themes')) {
$daux->getParams()->setThemesDirectory($input->getOption('themes'));
}

$daux->initializeConfiguration($input->getOption('configuration'));

if ($input->hasOption('delete') && $input->getOption('delete')) {
Expand Down
1 change: 1 addition & 0 deletions libs/Console/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected function configure()
->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('processor', 'p', InputOption::VALUE_REQUIRED, 'Manipulations on the tree')
->addOption('themes', 't', InputOption::VALUE_REQUIRED, 'Set a different themes directory')

// Confluence format only
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete pages not linked to a documentation page (confluence)')
Expand Down
1 change: 1 addition & 0 deletions libs/Console/Serve.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ protected function configure()
->addOption('configuration', 'c', InputOption::VALUE_REQUIRED, 'Configuration file')
->addOption('source', 's', InputOption::VALUE_REQUIRED, 'Where to take the documentation from')
->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
->addOption('serve', null, InputOption::VALUE_NONE, 'Serve the current directory')
Expand Down

0 comments on commit f63456c

Please sign in to comment.