|
42 | 42 |
|
43 | 43 | - name: Updating the available localizations page |
44 | 44 | run: php app/bin/available-locales.php |
| 45 | + |
| 46 | + - name: Clearing translation statuses |
| 47 | + run: | |
| 48 | + rm -rf docs/statuses/attributes |
| 49 | + rm -rf docs/statuses/http-statuses |
| 50 | + rm -rf docs/statuses/lang |
| 51 | + |
| 52 | + mkdir docs/statuses/attributes |
| 53 | + mkdir docs/statuses/http-statuses |
| 54 | + mkdir docs/statuses/lang |
| 55 | + |
| 56 | + - name: Download repositories |
| 57 | + run: | |
| 58 | + git clone --no-tags --single-branch https://github.com/Laravel-Lang/attributes.git tmp/attributes |
| 59 | + git clone --no-tags --single-branch https://github.com/Laravel-Lang/http-statuses.git tmp/http-statuses |
| 60 | + git clone --no-tags --single-branch https://github.com/Laravel-Lang/lang.git tmp/lang |
| 61 | + |
| 62 | + - name: Move translation statuses |
| 63 | + run: | |
| 64 | + mv -f tmp/attributes/docs/status.md docs/statuses/attributes/index.md |
| 65 | + mv -f tmp/http-statuses/docs/status.md docs/statuses/http-statuses/index.md |
| 66 | + mv -f tmp/lang/docs/status.md docs/statuses/lang/index.md |
| 67 | + |
| 68 | + mv -f tmp/attributes/docs/statuses docs/statuses/attributes/statuses |
| 69 | + mv -f tmp/http-statuses/docs/statuses docs/statuses/http-statuses/statuses |
| 70 | + mv -f tmp/lang/docs/statuses docs/statuses/lang/statuses |
| 71 | + |
| 72 | + - name: Resolve page names |
| 73 | + run: | |
| 74 | + sed -i 's/# Completion Status/# Completion Status: Attributes/g' docs/statuses/attributes/index.md |
| 75 | + sed -i 's/# Completion Status/# Completion Status: HTTP Statuses/g' docs/statuses/http-statuses/index.md |
| 76 | + sed -i 's/# Completion Status/# Completion Status: Lang/g' docs/statuses/lang/index.md |
45 | 77 |
|
46 | 78 | - name: Build VuePress site |
47 | 79 | run: npm run build |
|
0 commit comments