diff --git a/_php/Php.Cn.docset/Contents/Resources/docSet.dsidx b/_php/Php.Cn.docset/Contents/Resources/docSet.dsidx index 368e608..bdb724a 100644 Binary files a/_php/Php.Cn.docset/Contents/Resources/docSet.dsidx and b/_php/Php.Cn.docset/Contents/Resources/docSet.dsidx differ diff --git a/laravel/app/Console/Commands/PhpCommand.php b/laravel/app/Console/Commands/PhpCommand.php index be7dafc..7c402ab 100644 --- a/laravel/app/Console/Commands/PhpCommand.php +++ b/laravel/app/Console/Commands/PhpCommand.php @@ -18,7 +18,7 @@ class PhpCommand extends Command * * @var string */ - protected $signature = 'php {type}'; + protected $signature = 'php {type} {--force}'; /** * The console command description. @@ -37,15 +37,19 @@ public function handle() $type = $this->argument('type'); switch ($type) { case 'download'; - if (app('files')->exists(base_path(self::$path . 'index.html'))) { + $force = $this->option('force'); + if (!$force && app('files')->exists(base_path(self::$path . 'index.html'))) { $this->warn('You need delete files manually before download it.'); return 0; } - $confirm = $this->confirm('Download Need More Time, Will You Continue?'); - if (!$confirm) { - $this->warn('Download Stopped'); - return 0; + if (!$force) { + $confirm = $this->confirm('Download Need More Time, Will You Continue?', ''); + if (!$confirm) { + $this->warn('Download Stopped'); + return 0; + } } + $startTime = Carbon::now(); if (!file_exists(dirname(base_path(self::$path)) . '/php.cn.tar.gz')) { $this->downloadSite(); @@ -56,8 +60,6 @@ public function handle() app('files')->makeDirectory(base_path(self::$path), 0700, true); } - sleep(0.5); - pcntl_exec('/usr/bin/tar', [ '-zxvf', dirname(base_path(self::$path)) . '/php.cn.tar.gz', @@ -133,6 +135,16 @@ private function style() html{ background: transparent; } +@media (min-width: 768px) and (max-width: 979px) { + #intro .download, aside.tips, .navbar-search { + width: 30% !important; + display: none; + } + + #intro .blurb, #layout-content { + width: auto; + } +} CSS; app('files')->put($filename, $content); } diff --git a/php-docset.xml b/php-docset.xml index 1029dcd..21f4e29 100644 --- a/php-docset.xml +++ b/php-docset.xml @@ -1,4 +1,4 @@ - 8.1.3 - https://github.com/imvkmark/dash-docsets/releases/download/php-8.1.3/Php.Cn.docset.tgz + 8.1.3.1 + https://github.com/imvkmark/dash-docsets/releases/download/php-8.1.3.1/Php.Cn.docset.tgz \ No newline at end of file