mirror of
https://github.com/easychen/howto-make-more-money.git
synced 2025-08-22 22:16:22 +08:00
rebuild online book
This commit is contained in:
19
RoboFile.php
Normal file
19
RoboFile.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* This is project's console commands configuration for Robo task runner.
|
||||
*
|
||||
* @see http://robo.li/
|
||||
*/
|
||||
class RoboFile extends \Robo\Tasks
|
||||
{
|
||||
// define public methods as commands
|
||||
public function build()
|
||||
{
|
||||
$this->_exec("gitbook build . docs");
|
||||
}
|
||||
|
||||
public function up($m = 'update')
|
||||
{
|
||||
$this->_exec("git pull && git add . && git commit -m '" . $m . "' && git push");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user