diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2d230d331..56fbc60c0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,66 +51,42 @@ jobs: rm -rf docs/statuses/attributes rm -rf docs/statuses/http-statuses rm -rf docs/statuses/lang - rm -rf docs/statuses/native-locale-names - rm -rf docs/statuses/native-country-names - rm -rf docs/statuses/native-currency-names mkdir docs/statuses/attributes mkdir docs/statuses/http-statuses mkdir docs/statuses/lang - mkdir docs/statuses/native-locale-names - mkdir docs/statuses/native-country-names - mkdir docs/statuses/native-currency-names - name: Download repositories run: | git clone --no-tags --single-branch https://github.com/Laravel-Lang/attributes.git tmp/attributes git clone --no-tags --single-branch https://github.com/Laravel-Lang/http-statuses.git tmp/http-statuses git clone --no-tags --single-branch https://github.com/Laravel-Lang/lang.git tmp/lang - git clone --no-tags --single-branch https://github.com/Laravel-Lang/native-locale-names.git tmp/native-locale-names - git clone --no-tags --single-branch https://github.com/Laravel-Lang/native-country-names.git tmp/native-country-names - git clone --no-tags --single-branch https://github.com/Laravel-Lang/native-currency-names.git tmp/native-currency-names - name: Move translation statuses run: | mv -f tmp/attributes/docs/status.md docs/statuses/attributes/index.md mv -f tmp/http-statuses/docs/status.md docs/statuses/http-statuses/index.md mv -f tmp/lang/docs/status.md docs/statuses/lang/index.md - mv -f tmp/native-locale-names/docs/status.md docs/statuses/native-locale-names/index.md - mv -f tmp/native-country-names/docs/status.md docs/statuses/native-country-names/index.md - mv -f tmp/native-currency-names/docs/status.md docs/statuses/native-currency-names/index.md mv -f tmp/attributes/docs/statuses docs/statuses/attributes/statuses mv -f tmp/http-statuses/docs/statuses docs/statuses/http-statuses/statuses mv -f tmp/lang/docs/statuses docs/statuses/lang/statuses - mv -f tmp/native-locale-names/docs/statuses docs/statuses/native-locale-names/statuses - mv -f tmp/native-country-names/docs/statuses docs/statuses/native-country-names/statuses - mv -f tmp/native-currency-names/docs/statuses docs/statuses/native-currency-names/statuses - name: Resolve page names run: | sed -i 's/# Completion Status/# Completion Status: Attributes/g' docs/statuses/attributes/index.md sed -i 's/# Completion Status/# Completion Status: HTTP Statuses/g' docs/statuses/http-statuses/index.md sed -i 's/# Completion Status/# Completion Status: Lang/g' docs/statuses/lang/index.md - sed -i 's/# Completion Status/# Completion Status: Native Locale Names/g' docs/statuses/native-locale-names/index.md - sed -i 's/# Completion Status/# Completion Status: Native Country Names/g' docs/statuses/native-country-names/index.md - sed -i 's/# Completion Status/# Completion Status: Native Currency Names/g' docs/statuses/native-currency-names/index.md - name: Resolve navigation links run: | sed -i 's/<\/table>/<\/table>\n\n[ [go back](..\/index.md) | [to top](\#) ]/g' docs/statuses/attributes/index.md sed -i 's/<\/table>/<\/table>\n\n[ [go back](..\/index.md) | [to top](\#) ]/g' docs/statuses/http-statuses/index.md sed -i 's/<\/table>/<\/table>\n\n[ [go back](..\/index.md) | [to top](\#) ]/g' docs/statuses/lang/index.md - sed -i 's/<\/table>/<\/table>\n\n[ [go back](..\/index.md) | [to top](\#) ]/g' docs/statuses/native-locale-names/index.md - sed -i 's/<\/table>/<\/table>\n\n[ [go back](..\/index.md) | [to top](\#) ]/g' docs/statuses/native-country-names/index.md - sed -i 's/<\/table>/<\/table>\n\n[ [go back](..\/index.md) | [to top](\#) ]/g' docs/statuses/native-currency-names/index.md sed -i 's/..\/status.md/..\/index.md/g' docs/statuses/attributes/statuses/* sed -i 's/..\/status.md/..\/index.md/g' docs/statuses/http-statuses/statuses/* sed -i 's/..\/status.md/..\/index.md/g' docs/statuses/lang/statuses/* - sed -i 's/..\/status.md/..\/index.md/g' docs/statuses/native-locale-names/statuses/* - sed -i 's/..\/status.md/..\/index.md/g' docs/statuses/native-country-names/statuses/* - sed -i 's/..\/status.md/..\/index.md/g' docs/statuses/native-currency-names/statuses/* - name: Build VuePress site run: npm run build diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index dd5105533..c1220e758 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -56,10 +56,7 @@ module.exports = { children: [ {text: 'Lang', link: '/statuses/lang/index.md'}, {text: 'Attributes', link: '/statuses/attributes/index.md'}, - {text: 'HTTP Statuses', link: '/statuses/http-statuses/index.md'}, - {text: 'Native Locale Names', link: '/statuses/native-locale-names/index.md'}, - {text: 'Native Country Names', link: '/statuses/native-country-names/index.md'}, - {text: 'Native Currency Names', link: '/statuses/native-currency-names/index.md'}, + {text: 'HTTP Statuses', link: '/statuses/http-statuses/index.md'} ] }, ], diff --git a/docs/statuses/index.md b/docs/statuses/index.md index 091680690..564001a4a 100644 --- a/docs/statuses/index.md +++ b/docs/statuses/index.md @@ -3,6 +3,3 @@ * [Lang](lang/index.md) * [Attributes](attributes/index.md) * [HTTP Statuses](http-statuses/index.md) -* [Native Locale Names](native-locale-names/index.md) -* [Native Country Names](native-country-names/index.md) -* [Native Currency Names](native-currency-names/index.md)