forked from openaps/AndroidAPSdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from openaps/master
Update master
- Loading branch information
Showing
21,273 changed files
with
300,287 additions
and
522,201 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: Build Warnings | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [en, cs, de, el, es, fr, he, ko, lt, nl, ru, tr] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install packages | ||
run: | | ||
python -m pip install --exists-action=w --no-cache-dir -r requirements.rtd.txt | ||
python -m pip install --exists-action=w --no-cache-dir -r requirements.txt | ||
|
||
- name: Set doc Path | ||
run: | | ||
if [ '${{ matrix.language }}' == 'en' ] | ||
then | ||
echo "DOC_PATH=docs/EN/" >> $GITHUB_ENV | ||
else | ||
echo "DOC_PATH=docs/CROWDIN/${{ matrix.language }}/" >> $GITHUB_ENV | ||
fi | ||
|
||
- name: Show Sphinx conf | ||
run: | | ||
cat ${{ env.DOC_PATH }}conf.py | ||
cat docs/shared.conf.py | ||
|
||
- name: Build docs | ||
run: | | ||
cd ${{ env.DOC_PATH }} | ||
sphinx-build -T -E -n -v -w build_log.txt -q -b html -d _build/doctrees . _build/html | ||
|
||
- name: Store build log | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build_log_${{ matrix.language }} | ||
path: ${{ env.DOC_PATH }}build_log.txt | ||
|
||
badge: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
max-parallel: 1 | ||
matrix: | ||
language: [en, cs, de, el, es, fr, he, ko, lt, nl, ru, tr] | ||
|
||
steps: | ||
- name: Get build log | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build_log_${{ matrix.language }} | ||
|
||
- name: Process - Build results | ||
run: | | ||
COUNT=$(wc -l < build_log.txt) | ||
if [ $COUNT == 0 ] | ||
then | ||
echo "MESSAGE=OK" >> $GITHUB_ENV | ||
echo "COLOR=green" >> $GITHUB_ENV | ||
else | ||
echo Number of warning $COUNT | ||
echo "MESSAGE=$COUNT" >> $GITHUB_ENV | ||
echo "COLOR=red" >> $GITHUB_ENV | ||
fi | ||
|
||
- if: ${{ always() }} | ||
name: Create Badge - Build warnings | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_SECRET }} | ||
gistID: 4d086495590ccb904468b66aecc48bdb | ||
filename: AndroidAPSdocs_build_warnings_${{ matrix.language }}_master.json | ||
label: Warnings - ${{ matrix.language }} | ||
message: ${{ env.MESSAGE }} | ||
color: ${{ env.COLOR }} | ||
namedLogo: read the docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: manual Trigger Only Traditional und Simplified Chinese RTD Builds | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
curl: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: curl | ||
uses: wei/curl@v1 | ||
with: | ||
args: -X POST -d "branches=${{ steps.extract_branch.outputs.branch }}" -d "token=${{ secrets.RTD_WEBHOOK_KEY_ZH_CN }}" https://readthedocs.org/api/v2/webhook/androidaps-zh-cn/281205/ | ||
- name: curl | ||
uses: wei/curl@v1 | ||
with: | ||
args: -X POST -d "branches=${{ steps.extract_branch.outputs.branch }}" -d "token=${{ secrets.RTD_WEBHOOK_KEY_ZH_TW }}" https://readthedocs.org/api/v2/webhook/androidaps-zh-tw/281206/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.