Skip to content

Commit f303616

Browse files
committed
RoundUp Commit..
1 parent 942ef94 commit f303616

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

.gitignore

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
/vendor
2-
/resources/docs
3-
/public/api
4-
/public/assets/css
5-
/public/assets/js/*
6-
!/public/assets/js/viewport-units-buggyfill.js
7-
/public/build
2+
# /resources/docs
3+
# /public/api
4+
# /public/assets/css
5+
# /public/assets/js/*
6+
# !/public/assets/js/viewport-units-buggyfill.js
7+
# /public/build
88
/public/page-cache
99
/public/storage
10+
# /build
1011
/build/sami/build
1112
/build/sami/cache
1213
/build/sami/laravel
1314
/build/sami/vendor
1415
/node_modules
1516
composer.phar
16-
.env.*
17+
# .env.*
1718
.env
1819
.DS_Store
1920
Thumbs.db
2021
/.idea
21-
package-lock.json
22+
/.vscode
23+
package-lock.json
24+
# yarn.lock

build/docs.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
base=/home/mat/matscode/laravel.com
33
docs=${base}/resources/docs
44

5-
cd ${docs}/4.2 && git pull alt 4.2
6-
cd ${docs}/5.0 && git pull alt 5.0
7-
cd ${docs}/5.1 && git pull alt 5.1
8-
cd ${docs}/5.2 && git pull alt 5.2
9-
cd ${docs}/5.3 && git pull alt 5.3
10-
cd ${docs}/5.4 && git pull alt 5.4
11-
cd ${docs}/5.5 && git pull alt 5.5
12-
cd ${docs}/5.6 && git pull alt 5.6
13-
cd ${docs}/master && git pull alt master
5+
cd ${docs}/4.2 && git pull origin 4.2
6+
cd ${docs}/5.0 && git pull origin 5.0
7+
cd ${docs}/5.1 && git pull origin 5.1
8+
cd ${docs}/5.2 && git pull origin 5.2
9+
cd ${docs}/5.3 && git pull origin 5.3
10+
cd ${docs}/5.4 && git pull origin 5.4
11+
cd ${docs}/5.5 && git pull origin 5.5
12+
cd ${docs}/5.6 && git pull origin 5.6
13+
cd ${docs}/master && git pull origin master
1414

1515
cd $base && php artisan docs:clear-cache

routes/web.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@
44
* Set the default documentation version...
55
*/
66
if (! defined('DEFAULT_VERSION')) {
7-
define('DEFAULT_VERSION', '5.6');
7+
define('DEFAULT_VERSION', '5.5');
88
}
99

10-
Route::get('/', function () {
11-
return view('marketing');
10+
Route::get('/', function ($version = DEFAULT_VERSION) {
11+
// return view('marketing');
12+
return redirect("/docs/{$version}");
1213
});
1314

1415
Route::get('docs', 'DocsController@showRootPage');
1516
Route::get('docs/{version}/{page?}', 'DocsController@show');
1617

18+
Route::get('apis/{version?}', function ($version = DEFAULT_VERSION) {
19+
return redirect("/api/{$version}/index.html");
20+
});
21+
1722
Route::get('partners', function () {
1823
return view('partners');
1924
});

0 commit comments

Comments
 (0)