Skip to content

Commit b44b599

Browse files
authored
docs: update contributor docs and tooling references (#10718)
* docs: rewrite the contributor guide for Markdown * chore: update tooling references to the Markdown user guide
1 parent 330fc9c commit b44b599

17 files changed

Lines changed: 257 additions & 287 deletions

File tree

‎.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/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.

‎.gitignore‎

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@ $RECYCLE.BIN/
4242
# These should never be under version control,
4343
# as it poses a security risk.
4444
.env
45-
.vagrant
46-
Vagrantfile
47-
/user_guide_src/venv/
45+
46+
#-------------------------
47+
# Local Configuration
48+
#-------------------------
49+
# phpenv local config
50+
.php-version
51+
52+
# pyenv local config
4853
.python-version
49-
/user_guide_src/.python-version
54+
55+
/phpunit.xml
56+
/.php-cs-fixer.php
5057

5158
#-------------------------
5259
# Temporary Files
@@ -72,21 +79,19 @@ Vagrantfile
7279
php_errors.log
7380

7481
#-------------------------
75-
# User Guide Temp Files
82+
# Build Output
7683
#-------------------------
77-
/user_guide_src/build/*
84+
# Test coverage
85+
/build/
86+
87+
# phpDocumentor
88+
/api/
89+
90+
# User guide
7891
/site/
7992
/venv/
8093
__pycache__/
8194

82-
#-------------------------
83-
# Test Files
84-
#-------------------------
85-
/tests/coverage*
86-
87-
# Don't save phpunit under version control.
88-
/phpunit
89-
9095
#-------------------------
9196
# Composer
9297
#-------------------------
@@ -97,21 +102,13 @@ composer.lock
97102
# IDE / Development Files
98103
#-------------------------
99104

100-
# Modules Testing
101-
_modules/*
102-
103-
# phpenv local config
104-
.php-version
105-
106105
# Jetbrains editors (PHPStorm, etc)
107106
.idea/
108107
*.iml
109108

110109
# Netbeans
111110
/nbproject/
112-
/build/
113111
/nbbuild/
114-
/dist/
115112
/nbdist/
116113
/nbactions.xml
117114
/nb-configuration.xml
@@ -124,12 +121,6 @@ _modules/*
124121
*.sublime-workspace
125122
*.sublime-project
126123
.phpintel
127-
/api/
128124

129125
# Visual Studio Code
130126
.vscode/
131-
132-
/results/
133-
/phpunit.xml
134-
135-
/.php-cs-fixer.php

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ More information about the plans for version 4 can be found in [CodeIgniter 4](h
2626

2727
The [User Guide](https://codeigniter.com/user_guide/) is the primary documentation for CodeIgniter 4.
2828

29-
You will also find the [current **in-progress** User Guide](https://codeigniter4.github.io/CodeIgniter4/).
29+
You will also find the [current **in-progress** User Guide](https://codeigniter4.github.io/CodeIgniter4/develop/).
3030
As with the rest of the framework, it is a work in progress, and will see changes over time to structure, explanations, etc.
3131

3232
You might also be interested in the [API documentation](https://codeigniter4.github.io/api/) for the framework components.

‎admin/framework/.gitignore‎

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ $RECYCLE.BIN/
4242
# These should never be under version control,
4343
# as it poses a security risk.
4444
.env
45-
.vagrant
46-
Vagrantfile
45+
46+
#-------------------------
47+
# Local Configuration
48+
#-------------------------
49+
# phpenv local config
50+
.php-version
51+
52+
/phpunit.xml
4753

4854
#-------------------------
4955
# Temporary Files
@@ -66,20 +72,13 @@ Vagrantfile
6672
php_errors.log
6773

6874
#-------------------------
69-
# User Guide Temp Files
70-
#-------------------------
71-
/user_guide_src/build/*
72-
/user_guide_src/cilexer/build/*
73-
/user_guide_src/cilexer/dist/*
74-
/user_guide_src/cilexer/pycilexer.egg-info/*
75-
76-
#-------------------------
77-
# Test Files
75+
# Build Output
7876
#-------------------------
79-
/tests/coverage*
77+
# Test coverage
78+
/build/
8079

81-
# Don't save phpunit under version control.
82-
/phpunit
80+
# phpDocumentor
81+
/api/
8382

8483
#-------------------------
8584
# Composer
@@ -90,21 +89,13 @@ vendor/
9089
# IDE / Development Files
9190
#-------------------------
9291

93-
# Modules Testing
94-
_modules/*
95-
96-
# phpenv local config
97-
.php-version
98-
9992
# Jetbrains editors (PHPStorm, etc)
10093
.idea/
10194
*.iml
10295

10396
# NetBeans
10497
/nbproject/
105-
/build/
10698
/nbbuild/
107-
/dist/
10899
/nbdist/
109100
/nbactions.xml
110101
/nb-configuration.xml
@@ -117,10 +108,6 @@ _modules/*
117108
*.sublime-workspace
118109
*.sublime-project
119110
.phpintel
120-
/api/
121111

122112
# Visual Studio Code
123113
.vscode/
124-
125-
/results/
126-
/phpunit.xml

‎admin/starter/.gitignore‎

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ $RECYCLE.BIN/
4242
# These should never be under version control,
4343
# as it poses a security risk.
4444
.env
45-
.vagrant
46-
Vagrantfile
45+
46+
#-------------------------
47+
# Local Configuration
48+
#-------------------------
49+
# phpenv local config
50+
.php-version
51+
52+
/phpunit.xml
4753

4854
#-------------------------
4955
# Temporary Files
@@ -66,20 +72,13 @@ Vagrantfile
6672
php_errors.log
6773

6874
#-------------------------
69-
# User Guide Temp Files
70-
#-------------------------
71-
/user_guide_src/build/*
72-
/user_guide_src/cilexer/build/*
73-
/user_guide_src/cilexer/dist/*
74-
/user_guide_src/cilexer/pycilexer.egg-info/*
75-
76-
#-------------------------
77-
# Test Files
75+
# Build Output
7876
#-------------------------
79-
/tests/coverage*
77+
# Test coverage
78+
/build/
8079

81-
# Don't save phpunit under version control.
82-
/phpunit
80+
# phpDocumentor
81+
/api/
8382

8483
#-------------------------
8584
# Composer
@@ -90,21 +89,13 @@ vendor/
9089
# IDE / Development Files
9190
#-------------------------
9291

93-
# Modules Testing
94-
_modules/*
95-
96-
# phpenv local config
97-
.php-version
98-
9992
# Jetbrains editors (PHPStorm, etc)
10093
.idea/
10194
*.iml
10295

10396
# NetBeans
10497
/nbproject/
105-
/build/
10698
/nbbuild/
107-
/dist/
10899
/nbdist/
109100
/nbactions.xml
110101
/nb-configuration.xml
@@ -117,10 +108,6 @@ _modules/*
117108
*.sublime-workspace
118109
*.sublime-project
119110
.phpintel
120-
/api/
121111

122112
# Visual Studio Code
123113
.vscode/
124-
125-
/results/
126-
/phpunit.xml

‎admin/userguide/.gitignore‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@
55
!*/cache/index.html
66
!*/cache/.htaccess
77

8-
user_guide_src/build/*
9-
user_guide_src/cilexer/build/*
10-
user_guide_src/cilexer/dist/*
11-
user_guide_src/cilexer/pycilexer.egg-info/*
12-
138
/vendor/

0 commit comments

Comments
 (0)