Skip to content

Commit 40cca17

Browse files
authored
Merge branch 'master' into patch-2
Signed-off-by: Gilles Quénot <[email protected]>
2 parents 426e118 + 7277392 commit 40cca17

File tree

766 files changed

+58560
-10511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

766 files changed

+58560
-10511
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9 as final
1+
FROM python:3.10 as final
22

33
USER root
44

@@ -12,4 +12,4 @@ RUN export DEBIAN_FRONTEND=noninteractive \
1212
&& mv composer.phar /usr/local/bin/composer \
1313
&& npm install svgexport -g \
1414
&& rm -f /tmp/composer-setup.php \
15-
&& rm -rf /var/lib/apt/lists/*
15+
&& rm -rf /var/lib/apt/lists/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check occ command syntax
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.rst'
7+
8+
jobs:
9+
check-occ-command:
10+
name: Check occ command syntax
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Run script
16+
run: |
17+
RST_FILE="$(find ./ -name '*.rst')"
18+
mapfile -t RST_FILE <<< "$RST_FILE"
19+
for file in "${RST_FILE[@]}"; do
20+
if [ "$(grep "php occ" "$file" | grep -v "sudo -E -u www-data php occ" | wc -l)" -gt 0 ]; then
21+
printf "%b%s%b\n" "\e[0;31m" "$file does not use the 'sudo -E -u www-data php occ' syntax in some places which is required." "\e[0m"
22+
echo "See $(grep "php occ" "$file" | grep -v "sudo -E -u www-data php occ")"
23+
FAIL=1
24+
fi
25+
done
26+
if [ -n "$FAIL" ]; then
27+
exit 1
28+
fi

.github/workflows/codespell.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
runs-on: self-hosted
1313
steps:
1414
- name: Check out code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
with:
17+
persist-credentials: false
18+
1619
- name: Check spelling
17-
uses: codespell-project/actions-codespell@v2
20+
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
21+
with:
22+
skip: '**.svg,**.js'

.github/workflows/generate_catalog_templates.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,45 @@ jobs:
1212
user_manual:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
15+
- name: Checkout repository
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
persist-credentials: false
19+
20+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
21+
with:
22+
python-version: '3.13'
1623

17-
- uses: ammaraskar/sphinx-action@master
24+
- uses: ammaraskar/sphinx-action@54e52bfb642e9b60ea5b6bcb05fe3f74b40d290a # v8.2.3
1825
with:
1926
docs-folder: "user_manual/"
20-
pre-build-command: pip install -r requirements.txt
21-
build-command: make gettext
27+
pre-build-command: "pip install -r requirements.txt"
28+
build-command: "make gettext"
29+
30+
- name: Change file owner to correct user
31+
run: |
32+
ls -la user_manual/locale/source
33+
sudo chown -R 1001:1001 user_manual/locale/source
34+
ls -la user_manual/locale/source
2235
23-
- uses: peter-evans/create-pull-request@v7
36+
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
2437
id: cpr
2538
with:
2639
token: ${{ secrets.COMMAND_BOT_PAT }}
27-
commit-message: "chore(l10n): Updates catalog templates (POT files fetched automatically by transifex)"
28-
title: Updates catalog templates
29-
branch: update-l10n
40+
commit-message: 'chore(l10n): Updates catalog templates (POT files fetched automatically by transifex)'
41+
committer: GitHub <[email protected]>
42+
author: nextcloud-command <[email protected]>
3043
signoff: true
44+
branch: 'automated/noid/update-l10n'
45+
title: 'Updates catalog templates'
3146

32-
- uses: hmarr/[email protected]
47+
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
3348
if: steps.cpr.outputs.pull-request-operation == 'created'
3449
with:
3550
github-token: "${{ secrets.GITHUB_TOKEN }}"
3651
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
3752

38-
- uses: pascalgn/[email protected]
53+
- uses: pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67 # v0.16.4
3954
if: steps.cpr.outputs.pull-request-operation == 'created'
4055
env:
4156
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/openapi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
with:
2020
submodules: true
2121

2222
- name: Set up php
23-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2
23+
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
2424
with:
2525
php-version: '8.1'
2626
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/pr-feedback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: The get-github-handles-from-website action
24-
uses: marcelklehr/get-github-handles-from-website-action@a739600f6b91da4957f51db0792697afbb2f143c # v1.0.0
24+
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
2525
id: scrape
2626
with:
2727
website: 'https://nextcloud.com/team/'

.github/workflows/sphinxbuild.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
user_manual:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1515
- uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.10'
@@ -23,15 +23,15 @@ jobs:
2323
shell: bash
2424
run: tar czf /tmp/documentation.tar.gz -C user_manual/_build/html .
2525
- name: Upload static documentation
26-
uses: actions/upload-artifact@v4.4.3
26+
uses: actions/upload-artifact@v4.6.2
2727
with:
2828
name: User manual.zip
2929
path: "/tmp/documentation.tar.gz"
3030

3131
user_manual-en:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
34+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3535
- uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.10'
@@ -43,7 +43,7 @@ jobs:
4343
developer_manual:
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
46+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
4747
- uses: actions/setup-python@v5
4848
with:
4949
python-version: '3.10'
@@ -55,15 +55,15 @@ jobs:
5555
shell: bash
5656
run: tar czf /tmp/documentation.tar.gz -C developer_manual/_build/html/com .
5757
- name: Upload static documentation
58-
uses: actions/upload-artifact@v4.4.3
58+
uses: actions/upload-artifact@v4.6.2
5959
with:
6060
name: Developer manual.zip
6161
path: "/tmp/documentation.tar.gz"
6262

6363
admin_manual:
6464
runs-on: ubuntu-latest
6565
steps:
66-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
66+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
6767
- uses: actions/setup-python@v5
6868
with:
6969
python-version: '3.10'
@@ -75,7 +75,7 @@ jobs:
7575
shell: bash
7676
run: tar czf /tmp/documentation.tar.gz -C admin_manual/_build/html/com .
7777
- name: Upload static documentation
78-
uses: actions/upload-artifact@v4.4.3
78+
uses: actions/upload-artifact@v4.6.2
7979
with:
8080
name: Administration manual.zip
8181
path: "/tmp/documentation.tar.gz"

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ get-server-sources:
3030
cd build && sh get-server-sources.sh $(DRONE_BRANCH)
3131

3232
openapi-spec: get-server-sources
33-
git submodule update --init
34-
cd build/openapi-extractor && composer install
35-
cd build && ./openapi-extractor/merge-specs \
36-
--core server/core/openapi.json \
37-
--merged ../developer_manual/_static/openapi.json \
38-
$$(ls server/apps/*/openapi.json)
33+
cp build/server/openapi.json developer_manual/_static/openapi.json
3934
cd developer_manual/_static && \
4035
wget https://unpkg.com/@stoplight/[email protected]/web-components.min.js -O stoplight-elements.js && \
4136
wget https://unpkg.com/@stoplight/[email protected]/styles.min.css -O stoplight-elements.css

_shared_assets/static/custom.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@
5555
background: rgba(0, 130, 201, 0.1)
5656
}
5757

58+
/* Fix code within tables - remove too big margins */
59+
.rst-content td {
60+
div[class^="highlight"]:last-of-type,
61+
pre.literal-block:last-of-type {
62+
margin-block: 1px !important;
63+
}
64+
}
65+
5866
/* ICONS LIST */
5967
div#list-of-available-icons > blockquote {
6068
margin: 0;
@@ -95,5 +103,17 @@ div#list-of-available-icons > blockquote > div > div > p {
95103
}
96104

97105
.wy-nav-content {
98-
max-width: max(800px, calc(100vw - 600px)) !important;
106+
max-width: clamp(800px, calc(100vw - 600px), 1200px) !important;
107+
}
108+
109+
.wy-nav-content section {
110+
max-width: 900px;
111+
}
112+
113+
table.docutils {
114+
min-width: 50%;
115+
}
116+
117+
#code-style table.docutils {
118+
width: 100%;
99119
}

0 commit comments

Comments
 (0)