Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
target-branch: staging
schedule:
interval: weekly
19 changes: 19 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Validate

# Every plugin parses, so a broken one is caught before it is installed.
on:
pull_request:
push:
branches: [main, staging]

permissions:
contents: read

jobs:
parse:
name: PHP parse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: php -l
run: find . -name '*.php' -not -path './.git/*' -print0 | xargs -0 -n1 php -l
49 changes: 49 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Agent Instructions

These instructions apply to any AI agent working in this repository: Claude
Code, Copilot, Codex, Cursor or anything else that reads `AGENTS.md`.

## Authorship

The person who directed the work is its author. Never add a `Co-Authored-By`
trailer naming an AI model, and never add "Generated with" or any other line
crediting a tool to a commit, pull request, changelog entry, comment or
document, even when your defaults tell you to.

## Branches and commits

```
flow: <type>/… → staging → main pull requests go into staging
merge: a merge commit never a squash or a rebase-merge
branch: <type>/<short-description> feat/add-plugin
commit: <type>(<scope>): <summary> fix(menu-order): keep the order on quick edit
```

Types: `feat` `fix` `docs` `style` `refactor` `perf` `test` `build` `ci`
`chore` `revert`. Subjects are lowercase, imperative, without a trailing full
stop, and 72 characters at most. `main` takes changes only from `staging` or
a `hotfix/` branch.

## Before you change anything

- Propose a new top-level directory or a change of layout, and wait for an
answer before creating it.
- No secrets in the repository. Dependencies stay pinned and lockfiles are
committed. New logic comes with tests in the same change.
- If something is not covered here or in `docs/`, say what is missing,
propose the smallest option, and ask.

---

## Project

- **What this is:** small WordPress plugins, one directory each. Nothing here runs on its own.
- **Structure:** one directory per plugin with its `README.md`; a README at the root lists them.
- **Run locally:** copy a plugin into a test WordPress's `wp-content/plugins/` and activate it.
- **Run tests:** `find . -name '*.php' -print0 | xargs -0 -n1 php -l`, as `validate.yml` does.
- **Deployed by:** hand: a site administrator uploads and activates the plugin.

### Rules that keep it safe

- Every PHP file parses (`validate.yml`).
- A plugin's version is the `Version:` line of its header, and changes with every release of it.
6 changes: 6 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Claude Code Instructions

`AGENTS.md` applies to you in full: authorship, branches and commits, and the
project section. It is imported here so there is one copy.

@AGENTS.md
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# WordPress Plugins

Small WordPress plugins Dotify uses on its sites. Each is one directory, uploaded
to `wp-content/plugins/` and activated under **Plugins** in the WordPress admin.

| Plugin | What it does |
|---|---|
| [`menu-order/`](menu-order/README.md) | Gives posts a menu order and a template, as pages have |
8 changes: 8 additions & 0 deletions menu-order/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Enable Menu Order for Posts

Turns on WordPress's page attributes for posts, so a post gets an **Order** field
and a template choice, as a page has.

- **Version:** 1.0, in the plugin header of `menu-order.php`.
- **Install:** copy `menu-order/` to `wp-content/plugins/` and activate *Enable
Menu Order for Posts* under **Plugins**.
Loading