Skip to content

docs: refresh the README - #1

Merged
ogorzalka merged 4 commits into
mainfrom
docs/readme-refresh
Oct 7, 2026
Merged

ogorzalka merged 4 commits into
mainfrom
docs/readme-refresh

Conversation

@ogorzalka

@ogorzalka ogorzalka commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Two READMEs. .github/README.md is the GitHub showcase (GitHub shows it before the root one). The scaffolder copies with File::allFiles(), which skips dot-directories (checked), so it never reaches users. The root README.md is the generated project's own guide: placeholders that make:theme/make:plugin fill in (checked against bin/replacements.php: no placeholder left), what's inside, the commands, links to pollora.dev. No banner, no org footer.

Packaging. The rsync now leaves /README.md, /.github/, /LICENSE and /license.txt alone. Before this, --delete would have removed .github/ and its workflows, because the dev copies have none. The package.json license is set back after the sync, and the sed loop and leak check skip .github/.

Showcase: banner and badges. Installation via pollora:make:plugin (and --asset); requirements fixed to PHP 8.4+ / WordPress 7.1+ for a new project (framework PHP 8.3+), instead of PHP 8.2 / WP 6.0. Docs links, footer.

Plugin header: Requires at least: 7.1, Tested up to: 7.1, Requires PHP: 8.4 (was 6.0 / 6.9 / 8.2). These follow the skeleton: johnpbloch/wordpress ^7.1, lock on 7.1.2; Symfony 8 in the lock needs PHP 8.4. package-plugin.sh reads these three lines before the sync and puts them back after it, because the dev copy still says 6.0 / 8.2. It also forces "license": "MIT" in package.json, since the dev copy says GPL-2.0+.

Also: the leak check skips bin/, like the sed loop. Until now it failed on bin/tests/contract.php, which names the code name on purpose.

Checked: php bin/tests/run.php passes 17/17. A packaging run from the local pollora-demo-plugin copy succeeds and leaves README, .github, LICENSE and the requirement lines untouched. No tag.

…cts their own README

GitHub shows .github/README.md before the root one, and the scaffolder's
File::allFiles() skips dot-directories, so the showcase stays on GitHub and
the root README, with placeholders, becomes the generated project's guide.
The rsync now leaves README.md, .github/ and the license files alone (with
--delete it removed .github/ and its workflows), the sed loop and leak check
skip .github/ and bin/ (they rewrote the template's own tests), and the
package.json license is set back after the sync.
@ogorzalka
ogorzalka merged commit 23537f5 into main Oct 7, 2026
3 checks passed
@ogorzalka
ogorzalka deleted the docs/readme-refresh branch October 7, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant