Skip to content

Commit

Permalink
Merge pull request #33 from openaps/master
Browse files Browse the repository at this point in the history
Update master
  • Loading branch information
Philoul authored Oct 27, 2024
2 parents 41b2f85 + 52831f3 commit 3132ad1
Show file tree
Hide file tree
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.
96 changes: 0 additions & 96 deletions .github/workflows/build-warnings.yml.BACKUP

This file was deleted.

96 changes: 96 additions & 0 deletions .github/workflows/build-warnings.yml_Disabled
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
6 changes: 3 additions & 3 deletions .github/workflows/link-checker-only-english-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set up Python 3.7
uses: actions/setup-python@v2
- name: Set up Python 3.8
uses: actions/setup-python@v5.2.0
with:
python-version: "3.7"
python-version: "3.8"

- name: Install packages
run: |
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/manual-trigger-only-chinese-build.yml
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/
8 changes: 8 additions & 0 deletions .github/workflows/manual-trigger-rtd-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ jobs:
uses: wei/curl@v1
with:
args: -X POST -d "branches=${{ steps.extract_branch.outputs.branch }}" -d "token=${{ secrets.RTD_WEBHOOK_KEY_TR }}" https://readthedocs.org/api/v2/webhook/androidaps-tr/209052/
- 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/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# AndroidAPSdocs

Documentation for AndroidAPS
Documentation for [AndroidAPS](https://github.com/nightscout/AndroidAPS)

To view documentation, visit https://androidaps.readthedocs.io
To view documentation, visit <https://androidaps.readthedocs.io>

## Docs Status

Expand Down
1 change: 1 addition & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
files:
- source: /docs/EN/**/*.md
translation: /docs/CROWDIN/%two_letters_code%/**/%original_file_name%
type: md35
- source: /docs/EN/**/*.rst
translation: /docs/CROWDIN/%two_letters_code%/**/%original_file_name%
- source: /docs/EN/images/**/*
Expand Down
Loading

0 comments on commit 3132ad1

Please sign in to comment.