Cosmetic changes
This commit is contained in:
parent
a35af5fd19
commit
ce109d0429
@ -6,7 +6,6 @@ use Todaymade\Daux\Daux;
|
||||
use Todaymade\Daux\Format\Base\RunAction;
|
||||
use Todaymade\Daux\Tree\Content;
|
||||
use Todaymade\Daux\Tree\Directory;
|
||||
use Todaymade\Daux\Tree\Entry;
|
||||
|
||||
class Generator
|
||||
{
|
||||
@ -45,7 +44,7 @@ class Generator
|
||||
$publisher->publish($tree);
|
||||
}
|
||||
|
||||
private function generateRecursive(Entry $tree, Config $params, $base_url = '')
|
||||
private function generateRecursive(Directory $tree, Config $params, $base_url = '')
|
||||
{
|
||||
$final = ['title' => $this->prefix . $tree->getTitle()];
|
||||
$params['base_url'] = $params['base_page'] = $base_url;
|
||||
|
@ -97,30 +97,18 @@ class Publisher
|
||||
|
||||
protected function createPage($parent_id, $entry, $published)
|
||||
{
|
||||
if ($this->previous_title != "Creating") {
|
||||
$this->previous_title = "Creating";
|
||||
echo "Creating Pages...\n";
|
||||
}
|
||||
|
||||
echo "- " . $this->niceTitle($entry['file']->getUrl());
|
||||
echo "- " . $this->niceTitle($entry['file']->getUrl()) . "\n";
|
||||
$published['version'] = 1;
|
||||
$published['id'] = $this->client->createPage($parent_id, $entry['title'], "The content will come very soon !");
|
||||
echo " √ \n";
|
||||
|
||||
return $published;
|
||||
}
|
||||
|
||||
protected function createPlaceholderPage($parent_id, $entry, $published)
|
||||
{
|
||||
if ($this->previous_title != "Creating Placeholder") {
|
||||
$this->previous_title = "Creating Placeholder";
|
||||
echo "Creating Placeholder Pages...\n";
|
||||
}
|
||||
|
||||
echo "- " . $entry['title'];
|
||||
echo "- " . $entry['title'] . "\n";
|
||||
$published['version'] = 1;
|
||||
$published['id'] = $this->client->createPage($parent_id, $entry['title'], "");
|
||||
echo " √ \n";
|
||||
|
||||
return $published;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class Generator
|
||||
/**
|
||||
* Recursively generate the documentation
|
||||
*
|
||||
* @param \Todaymade\Daux\Tree\Entry $tree
|
||||
* @param Directory $tree
|
||||
* @param string $output_dir
|
||||
* @param \Todaymade\Daux\Config $params
|
||||
* @param OutputInterface $output
|
||||
@ -43,7 +43,7 @@ class Generator
|
||||
* @param string $base_url
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function generateRecursive($tree, $output_dir, $params, $output, $width, $base_url = '')
|
||||
private function generateRecursive(Directory $tree, $output_dir, $params, $output, $width, $base_url = '')
|
||||
{
|
||||
$params['base_url'] = $params['base_page'] = $base_url;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user