public function build()
    {
        $this->app->writeln("\n<comment>Adding root pages</comment>");
        $this->addPages('\\Skosh\\Content\\Page');

        $this->app->writeln("\n<comment>Adding posts</comment>");
        $this->addPages('\\Skosh\\Content\\Post', 'path', '_posts');

        $this->app->writeln("\n<comment>Adding docs</comment>");
        $this->addPages('\\Skosh\\Content\\Doc', 'path', '_doc');

        // Sort pages
        $this->sortPosts();

        // Fire event
        Event::fire('pages.sorted', [$this]);

        $this->app->writeln("\n<comment>Rendering content</comment>");

        foreach ($this->site->pages as $content) {
            $this->renderContent($content);
        }

        // Fire event
        Event::fire('pages.rendered', [$this]);
    }
public function build()
    {
        $this->app->writeln("\n<comment>Adding root pages</comment>");
        $this->addPages('\\Skosh\\Content\\Page');

        $this->app->writeln("\n<comment>Adding posts</comment>");
        $this->addPages('\\Skosh\\Content\\Post', 'path', '_posts');

        $this->app->writeln("\n<comment>Adding docs</comment>");
        $this->addPages('\\Skosh\\Content\\Doc', 'path', '_doc');

        // Sort pages
        $this->sortPosts();

        // Fire event
        Event::fire('pages.sorted', [$this]);

        $this->app->writeln("\n<comment>Rendering content</comment>");

        foreach ($this->site->pages as $content) {
            $this->renderContent($content);
        }

        // Fire event
        Event::fire('pages.rendered', [$this]);
    }
public function build ( ) { $ this -> app -> writeln ( "\n<comment>Adding root pages</comment>" ) ; $ this -> addPages ( '\\Skosh\\Content\\Page' ) ; $ this -> app -> writeln ( "\n<comment>Adding posts</comment>" ) ; $ this -> addPages ( '\\Skosh\\Content\\Post' , 'path' , '_posts' ) ; $ this -> app -> writeln ( "\n<comment>Adding docs</comment>" ) ; $ this -> addPages ( '\\Skosh\\Content\\Doc' , 'path' , '_doc' ) ; // Sort pages $ this -> sortPosts ( ) ; // Fire event Event :: fire ( 'pages.sorted' , [ $ this ] ) ; $ this -> app -> writeln ( "\n<comment>Rendering content</comment>" ) ; foreach ( $ this -> site -> pages as $ content ) { $ this -> renderContent ( $ content ) ; } // Fire event Event :: fire ( 'pages.rendered' , [ $ this ] ) ; }
Renders the site

@return void
Renders the site