Skip to content

Commit 0a75bd8

Browse files
Copilotmiaulalala
andauthored
chore: merge master and add Handlebars to critical_changes.rst
Co-authored-by: miaulalala <7427347+miaulalala@users.noreply.github.com>
2 parents 380cea3 + 103d78e commit 0a75bd8

243 files changed

Lines changed: 26358 additions & 2722 deletions

File tree

Some content is hidden

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

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12 as final
1+
FROM python:3.13 as final
22

33
USER root
44

.docker/sphinx-latex/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM ubuntu:24.04
2+
3+
LABEL org.opencontainers.image.source="https://github.com/nextcloud/documentation"
4+
LABEL org.opencontainers.image.description="Sphinx + LaTeX build environment for Nextcloud documentation"
5+
LABEL org.opencontainers.image.licenses="AGPL-3.0"
6+
7+
ENV DEBIAN_FRONTEND=noninteractive
8+
9+
RUN apt-get update \
10+
&& apt-get install -y --no-install-recommends \
11+
ca-certificates \
12+
curl \
13+
git \
14+
lsb-release \
15+
make \
16+
latexmk \
17+
tex-gyre \
18+
texlive-fonts-extra \
19+
texlive-fonts-extra-links \
20+
texlive-fonts-recommended \
21+
texlive-latex-extra \
22+
texlive-latex-recommended \
23+
texlive-xetex \
24+
xindy \
25+
&& mktexlsr \
26+
&& rm -rf /var/lib/apt/lists/*
27+
28+
# Allow pip to install packages system-wide inside the container when running
29+
# as root (avoids PEP 668 "externally managed environment" error)
30+
RUN printf '[global]\nbreak-system-packages = true\n' > /etc/pip.conf

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ updates:
1717
open-pull-requests-limit: 10
1818
cooldown:
1919
default-days: 10
20+
- package-ecosystem: "docker"
21+
directory: "/.docker/sphinx-latex"
22+
schedule:
23+
interval: "weekly"
24+
time: "06:00"
25+
open-pull-requests-limit: 10
26+
cooldown:
27+
default-days: 10

.github/labeler.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
"manual: admin":
5+
- changed-files:
6+
- any-glob-to-any-file: "admin_manual/**"
7+
8+
"manual: developer":
9+
- changed-files:
10+
- any-glob-to-any-file: "developer_manual/**"
11+
12+
"manual: user":
13+
- changed-files:
14+
- any-glob-to-any-file: "user_manual/**"
15+
16+
"github_actions":
17+
- changed-files:
18+
- any-glob-to-any-file: ".github/workflows/**"

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ Please add a screenshot of your changed or added page(s).
99
This helps reviewers to quickly see how the resulting
1010
lists, code blocks, headers and links look.
1111
-->
12+
13+
### ✅ Checklist
14+
15+
- [ ] I have built the documentation locally and reviewed the output
16+
- [ ] Screenshots are included for visual changes
17+
- [ ] I have not moved or renamed pages (or added a redirect if I did)
18+
- [ ] I have run `codespell` or similar and addressed any spelling issues

.github/workflows/block-merge-eol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Set server major version environment
30-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
30+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3131
with:
3232
github-token: ${{secrets.GITHUB_TOKEN}}
3333
script: |

.github/workflows/block-merge-freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Register server reference to fallback to master branch
32-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
32+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3333
with:
3434
github-token: ${{secrets.GITHUB_TOKEN}}
3535
script: |

.github/workflows/docker-build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and publish sphinx-latex Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- ".docker/sphinx-latex/**"
9+
pull_request:
10+
paths:
11+
- ".docker/sphinx-latex/**"
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
jobs:
19+
build-and-publish:
20+
name: Build and publish sphinx-latex Docker image
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
29+
30+
- name: Login to GitHub Container Registry
31+
if: github.event_name != 'pull_request'
32+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Extract metadata for Docker
39+
id: meta
40+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
41+
with:
42+
images: ghcr.io/${{ github.repository }}/sphinx-latex
43+
tags: |
44+
type=raw,value=latest,enable={{is_default_branch}}
45+
type=sha,prefix=sha-
46+
47+
- name: Build and publish Docker image
48+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
49+
with:
50+
context: .docker/sphinx-latex
51+
push: ${{ github.event_name != 'pull_request' }}
52+
tags: ${{ steps.meta.outputs.tags }}
53+
labels: ${{ steps.meta.outputs.labels }}
54+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/sphinx-latex:latest
55+
cache-to: type=inline

.github/workflows/generate_catalog_templates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
sudo chown -R 1001:1001 user_manual/locale/source
3737
ls -la user_manual/locale/source
3838
39-
- uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
39+
- uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
4040
id: cpr
4141
with:
4242
token: ${{ secrets.COMMAND_BOT_PAT }}

.github/workflows/labeling.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Labeling
5+
6+
on:
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
issues:
10+
types: [opened]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
label-by-files:
17+
if: github.event_name == 'pull_request'
18+
name: Label by changed files
19+
20+
runs-on: ubuntu-latest-low
21+
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
26+
steps:
27+
- name: Apply labels based on changed files
28+
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
29+
with:
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
sync-labels: false
32+
33+
triage-pr:
34+
needs: [label-by-files]
35+
if: >
36+
always() &&
37+
github.event_name == 'pull_request' &&
38+
(github.event.action == 'opened' || github.event.action == 'reopened')
39+
name: Apply default PR triage label
40+
41+
runs-on: ubuntu-latest-low
42+
43+
permissions:
44+
pull-requests: write
45+
46+
steps:
47+
- name: Add '3. to review' if no triage label is set
48+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
49+
with:
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
script: |
52+
const triageLabels = ['0. Needs triage', '1. to develop', '2. developing', '3. to review', '4. to release']
53+
const currentLabels = context.payload.pull_request.labels.map(l => l.name)
54+
if (!triageLabels.some(l => currentLabels.includes(l))) {
55+
await github.rest.issues.addLabels({
56+
owner: context.repo.owner,
57+
repo: context.repo.repo,
58+
issue_number: context.payload.pull_request.number,
59+
labels: ['3. to review'],
60+
})
61+
}
62+
63+
triage-issue:
64+
if: github.event_name == 'issues'
65+
name: Apply default issue triage label
66+
67+
runs-on: ubuntu-latest-low
68+
69+
permissions:
70+
issues: write
71+
72+
steps:
73+
- name: Add '0. Needs triage' if no triage label is set
74+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
75+
with:
76+
github-token: ${{ secrets.GITHUB_TOKEN }}
77+
script: |
78+
const triageLabels = ['0. Needs triage', '1. to develop', '2. developing', '3. to review', '4. to release']
79+
const currentLabels = context.payload.issue.labels.map(l => l.name)
80+
if (!triageLabels.some(l => currentLabels.includes(l))) {
81+
await github.rest.issues.addLabels({
82+
owner: context.repo.owner,
83+
repo: context.repo.repo,
84+
issue_number: context.payload.issue.number,
85+
labels: ['0. Needs triage'],
86+
})
87+
}

0 commit comments

Comments
 (0)