Skip to content

Commit ed59dfb

Browse files
authored
Merge pull request #13986 from nextcloud/backport/13981/stable23
[stable23] build: use requirements file from 28 and adjust build logic
2 parents ae4b66b + bff1c28 commit ed59dfb

3 files changed

Lines changed: 86 additions & 50 deletions

File tree

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
name: L10n
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
5-
- master
6+
- master
67
paths:
7-
- 'user_manual/**'
8-
- '!user_manual/locale/**'
8+
- 'user_manual/**'
9+
- '!user_manual/locale/**'
910

1011
jobs:
1112
user_manual:
1213
runs-on: ubuntu-latest
1314
steps:
14-
- uses: actions/checkout@v2
15-
- uses: ammaraskar/sphinx-action@master
16-
with:
17-
docs-folder: "user_manual/"
18-
pre-build-command: pip install -r requirements.txt
19-
build-command: make gettext
20-
- uses: peter-evans/create-pull-request@v3
21-
with:
22-
commit-message: Updates catalog templates (POT files fetched automatically by transifex)
23-
title: l10n
24-
branch: update-l10n
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
16+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
17+
with:
18+
python-version: '3.12'
19+
cache: 'pip'
20+
- name: Install pip dependencies
21+
run: pip install -r requirements.txt
22+
- name: Build using Makefile
23+
run: cd user_manual && make gettext
24+
25+
- uses: peter-evans/create-pull-request@v5
26+
id: cpr
27+
with:
28+
token: ${{ secrets.COMMAND_BOT_PAT }}
29+
commit-message: "chore(l10n): Updates catalog templates (POT files fetched automatically by transifex)"
30+
title: Updates catalog templates
31+
branch: update-l10n
32+
signoff: true

.github/workflows/sphinxbuild.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,51 @@ jobs:
1111
user_manual:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
15-
- uses: ammaraskar/sphinx-action@master
14+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
15+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
1616
with:
17-
docs-folder: "user_manual/"
18-
pre-build-command: pip install -r requirements.txt
19-
build-command: make html
17+
python-version: '3.12'
18+
cache: 'pip'
19+
- name: Install pip dependencies
20+
run: pip install -r requirements.txt
21+
- name: Build using Makefile
22+
run: cd user_manual && make html
23+
24+
user_manual-en:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
28+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
29+
with:
30+
python-version: '3.12'
31+
- name: Install pip dependencies
32+
run: pip install -r requirements.txt
33+
- name: Build using Makefile
34+
run: cd user_manual && make html-lang-en
35+
2036
developer_manual:
2137
runs-on: ubuntu-latest
2238
steps:
23-
- uses: actions/checkout@v1
24-
- uses: ammaraskar/sphinx-action@master
39+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
40+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
2541
with:
26-
docs-folder: "developer_manual/"
27-
pre-build-command: pip install -r requirements.txt
28-
build-command: make html
42+
python-version: '3.12'
43+
cache: 'pip'
44+
- name: Install pip dependencies
45+
run: pip install -r requirements.txt
46+
- name: Build using Makefile
47+
run: cd developer_manual && make html
48+
2949
admin_manual:
3050
runs-on: ubuntu-latest
3151
steps:
32-
- uses: actions/checkout@v1
33-
- uses: ammaraskar/sphinx-action@master
52+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
53+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
54+
with:
55+
python-version: '3.12'
56+
cache: 'pip'
57+
- name: Install pip dependencies
58+
run: pip install -r requirements.txt
59+
- name: Build using Makefile
60+
run: cd admin_manual && make html
3461
with:
35-
docs-folder: "admin_manual/"
36-
pre-build-command: pip install -r requirements.txt
37-
build-command: make html

requirements.txt

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
alabaster==0.7.13
2-
Babel==2.12.1
3-
certifi==2023.5.7
4-
charset-normalizer==3.1.0
5-
docutils==0.17.1
2+
Babel==2.13.1
3+
certifi==2023.7.22
4+
charset-normalizer==3.2.0
5+
docutils==0.18.1
66
idna==3.4
77
imagesize==1.4.1
8-
importlib-metadata==6.6.0
8+
importlib-metadata==6.8.0
99
Jinja2==3.1.2
1010
MarkupSafe==2.1.3
11-
packaging==23.1
12-
Pillow==9.5.0
13-
Pygments==2.15.1
14-
PyYAML==6.0
15-
reportlab==4.0.4
11+
packaging==23.2
12+
Pillow==10.0.1
13+
Pygments==2.16.1
14+
PyYAML==6.0.1
15+
reportlab==4.0.6
1616
requests==2.31.0
17-
rst2pdf==0.100
17+
rst2pdf==0.101
1818
smartypants==2.0.1
1919
snowballstemmer==2.2.0
20-
Sphinx==4.5.0
21-
sphinx-rtd-theme==1.2.2
22-
sphinxcontrib-applehelp==1.0.4
23-
sphinxcontrib-devhelp==1.0.2
24-
sphinxcontrib-htmlhelp==2.0.1
20+
Sphinx==7.2.6
21+
sphinx-copybutton==0.5.2
22+
sphinx-rtd-theme==1.3.0
23+
sphinx-rtd-dark-mode==1.3.0
24+
sphinxcontrib-applehelp==1.0.7
25+
sphinxcontrib-devhelp==1.0.5
26+
sphinxcontrib-htmlhelp==2.0.4
2527
sphinxcontrib-jquery==4.1
2628
sphinxcontrib-jsmath==1.0.1
27-
sphinxcontrib-phpdomain==0.11.0
28-
sphinxcontrib-qthelp==1.0.3
29-
sphinxcontrib-serializinghtml==1.1.5
30-
urllib3==2.0.3
31-
zipp==3.15.0
29+
sphinxcontrib-phpdomain==0.11.1
30+
sphinxcontrib-qthelp==1.0.6
31+
sphinxcontrib-serializinghtml==1.1.9
32+
sphinx-toolbox==3.5.0
33+
sphinx-reredirects==0.1.3
34+
urllib3==2.0.6
35+
zipp==3.16.2

0 commit comments

Comments
 (0)