add 1.19 docs

This commit is contained in:
techknowlogick
2023-02-23 00:47:02 -05:00
parent 4263d7de17
commit 130857ef1e
6 changed files with 167 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ jobs:
run: |
git clone --depth=1 --branch=main https://github.com/go-gitea/gitea.git .tmp/upstream-docs-latest
git clone --depth=1 --branch=release/v1.18 https://github.com/go-gitea/gitea.git .tmp/upstream-docs-18
git clone --depth=1 --branch=release/v1.19 https://github.com/go-gitea/gitea.git .tmp/upstream-docs-19
- name: build nightly docs
run: |
@@ -29,7 +30,15 @@ jobs:
bash loop_docs.sh
rm docs/help/search.en-us.md
rm -rf .tmp/upstream-docs-latest
- name: 1.19 docs
run: |
cp -r .tmp/upstream-docs-19/docs/static/* static/
rsync -avz --prune-empty-dirs --include '*/' --include='*.en-us.md' --exclude '*' .tmp/upstream-docs-19/docs/content/doc/ versioned_docs/version-1.19/
cp .tmp/upstream-docs-19/docs/content/page/index.en-us.md versioned_docs/version-1.19/intro.md
cp .tmp/upstream-docs-19/templates/swagger/v1_json.tmpl static/19-swagger.json
bash loop_docs-19.sh
rm versioned_docs/version-1.19/help/search.en-us.md
rm -rf .tmp/upstream-docs-19
- name: 1.18 docs
run: |
cp -r .tmp/upstream-docs-18/docs/static/* static/