Skip to content

Commit 3b7516d

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.8
2 parents cec91eb + b44b599 commit 3b7516d

2,657 files changed

Lines changed: 64698 additions & 77833 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.

‎.editorconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ trim_trailing_whitespace = true
1313

1414
[*.{yml,yaml}]
1515
indent_size = 2
16+
17+
# Two trailing spaces are a hard line break in the converted pages.
18+
[docs/**.md]
19+
trim_trailing_whitespace = false

‎.gitattributes‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ utils/ export-ignore
2121
.php-cs-fixer.dist.php export-ignore
2222
.php-cs-fixer.no-header.php export-ignore
2323
.php-cs-fixer.tests.php export-ignore
24-
.php-cs-fixer.user-guide.php export-ignore
2524
structarmed-baseline.php export-ignore
2625
structarmed.php export-ignore
2726
phpstan-baseline.php export-ignore
@@ -35,6 +34,6 @@ rector.php export-ignore
3534
AGENTS.md export-ignore
3635

3736
# source user guide
38-
user_guide_src/ export-ignore
39-
.nojekyll export-ignore
37+
docs/ export-ignore
38+
mkdocs.yml export-ignore
4039
phpdoc.dist.xml export-ignore

‎.github/carson.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ settings:
2222
files: ['.github/workflows/*']
2323
- label: documentation
2424
files:
25-
all: ['user_guide_src/source/**']
25+
all: ['docs/**']
2626
- label: testing
2727
files:
2828
all: ['tests/**']

‎.github/dependabot.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ updates:
2424
patterns:
2525
- '*'
2626
group-by: dependency-name
27+
28+
- package-ecosystem: 'pip'
29+
directory: '/docs'
30+
schedule:
31+
interval: 'weekly'
32+
groups:
33+
user-guide-dependencies:
34+
patterns:
35+
- '*'

‎.github/instructions/user-guide.instructions.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
---
2-
applyTo: "user_guide_src/**/*.rst"
2+
applyTo: "docs/**/*.md"
33
---
44

55
# User guide
66

7-
- Preserve the existing reStructuredText structure, terminology, directives,
7+
- Preserve the existing Markdown structure, terminology, admonitions,
88
anchors, and surrounding writing style.
9+
- Indent nested lists and admonition bodies by four spaces, and keep the two
10+
trailing spaces that end a line as a hard line break.
11+
- Add a new page to the page's folder `index.md` and run
12+
`php admin/update-docs-nav.php` to add it to `docs/.nav.yml`.
913
- Keep PHP examples compatible with PHP 8.2 and verify signatures and behavior
1014
against the current framework code.
1115
- Distinguish new behavior from existing behavior and document defaults
@@ -22,6 +26,6 @@ applyTo: "user_guide_src/**/*.rst"
2226
smallest migration in both the minor changelog and upgrading guide.
2327
- Keep code examples minimal but complete enough to run in a normal
2428
CodeIgniter application.
25-
- Leave the complete Sphinx build and documentation validation to GitHub
29+
- Leave the complete MkDocs build and documentation validation to GitHub
2630
Actions unless the task specifically requires local documentation
2731
validation.

‎.github/instructions/worker-mode.instructions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
applyTo: "system/Boot.php,system/CodeIgniter.php,system/Commands/Worker/**,system/Config/BaseService.php,system/Config/Factories.php,system/Config/Factory.php,system/Config/Services.php,system/Database/Config.php,system/Database/BaseConnection.php,system/Database/ConnectionInterface.php,system/Database/*/Connection.php,system/Events/Events.php,system/Session/**,system/Cache/**,system/HTTP/**,system/Filters/**,system/Router/**,system/Security/**,system/Debug/Toolbar.php,system/Debug/Toolbar/**,app/Config/WorkerMode.php,tests/system/Commands/Worker/**,user_guide_src/source/installation/worker_mode.rst"
2+
applyTo: "system/Boot.php,system/CodeIgniter.php,system/Commands/Worker/**,system/Config/BaseService.php,system/Config/Factories.php,system/Config/Factory.php,system/Config/Services.php,system/Database/Config.php,system/Database/BaseConnection.php,system/Database/ConnectionInterface.php,system/Database/*/Connection.php,system/Events/Events.php,system/Session/**,system/Cache/**,system/HTTP/**,system/Filters/**,system/Router/**,system/Security/**,system/Debug/Toolbar.php,system/Debug/Toolbar/**,app/Config/WorkerMode.php,tests/system/Commands/Worker/**,docs/installation/worker_mode.md"
33
---
44

55
# FrankenPHP Worker Mode

‎.github/scripts/deploy-userguide‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ echo "Merging files from $1 to $2"
3333
# Prepare the source
3434
cd $SOURCE
3535
git checkout master
36-
cd user_guide_src
37-
make html
38-
make epub
36+
export NO_MKDOCS_2_WARNING=1
37+
export SITE_URL=https://codeigniter.com/user_guide/
38+
mkdocs build --strict
39+
python admin/llms.py
40+
python admin/anchors.py
3941

4042
# Prepare the target
4143
cd $TARGET
@@ -49,11 +51,7 @@ cp -Rf ${SOURCE}/LICENSE ./
4951
cp -Rf ${SOURCE}/admin/userguide/. ./
5052

5153
# Copy files
52-
cp -Rf ${SOURCE}/user_guide_src/build/html ./docs
53-
cp -Rf ${SOURCE}/user_guide_src/build/epub/CodeIgniter.epub ./CodeIgniter${VERSION}.epub
54-
55-
# Ensure underscore prefixed files are published
56-
touch ${TARGET}/docs/.nojekyll
54+
cp -Rf ${SOURCE}/site ./docs
5755

5856
# Commit the changes
5957
git add .

‎.github/scripts/validate-version‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ if [[ -z $1 ]]; then
66
exit 1
77
fi
88

9-
FILES=("system/CodeIgniter.php" "user_guide_src/source/conf.py")
10-
LENGTH="${#FILES[@]}"
9+
CHANGELOG="docs/changelogs/v$1.md"
1110

12-
for FILE in "${FILES[@]}"; do
13-
COUNT="$((COUNT + $(grep -c "$FILE" -e "'$1'")))"
14-
done
15-
16-
if [[ $COUNT -ne $LENGTH ]]; then
11+
if ! grep -q -e "'$1'" system/CodeIgniter.php || [[ ! -f $CHANGELOG ]] || grep -q -e "^Release Date: Unreleased" "$CHANGELOG"; then
1712
echo "CodeIgniter version is not updated to v"$1""
1813
exit 1
1914
fi

‎.github/skills/forum-announcement/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Create a forum-ready CodeIgniter4 release announcement using myBB markup.
2525

2626
## Procedure
2727
1. Read `CHANGELOG.md` for release summary and PR references.
28-
2. Read `user_guide_src/source/changelogs/v{VERSION}.rst` for each target version.
28+
2. Read `docs/changelogs/v{VERSION}.md` for each target version.
2929
3. Determine release mode:
3030
- Single release: one `4.x.y` version.
3131
- Dual release: maintenance + major; maintenance is presented first in the post.

‎.github/workflows/deploy-distributables.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ jobs:
176176
with:
177177
python-version: '3.12'
178178

179-
- name: Install Sphinx
179+
- name: Install MkDocs
180180
run: |
181181
python -m pip install --upgrade pip
182-
pip install -r ./source/user_guide_src/requirements.txt
182+
pip install -r ./source/docs/requirements.txt
183183
184184
- name: Chmod
185185
run: chmod +x ./source/.github/scripts/deploy-userguide

0 commit comments

Comments
 (0)