Skip to content

README: presentation and descriptions - #12

Merged
micschk merged 3 commits into
mainfrom
readme-presentation
Nov 2, 2026
Merged

micschk merged 3 commits into
mainfrom
readme-presentation

Conversation

@micschk

@micschk micschk commented Nov 2, 2026

Copy link
Copy Markdown
Member

Docs only: README restructured to the module README standard (sell first, technical last), with generated screenshots, plus the composer.json description and keywords. No code changes.

Commits

  • TEST showcase fixtures: four demo shortcodes (ScbShowcase*) and a seeded "Plan your visit" page, registered only when SCB_README_SHOWCASE is set. On such a host the specs' own fixture shortcodes are left out (Except: envvarset on fixtures/_config/shortcodable.yml), so the dialog in the screenshots lists only the demo ones. Without the variable nothing changes: 22/22 browser specs green on Silverstripe 6 locally with the new fixtures in place.
  • DOCS README: tagline, hero screenshot, "Out of the box, editors have to type shortcodes by hand", "Insert, see and edit shortcodes in the editor", "Making a class shortcodable", then Technical. Everything from the old README is kept (the requirements, install, compatibility table, config tables, close-parent rules, placeholder docs, test instructions, status list and refs).
  • composer.json: description and keywords only.

Screenshots (docs/images/) are Playwright captures from a Silverstripe 6 host, regenerated by tests/browser/screenshots/readme.shot.ts with its own config (never run by the specs or CI); see tests/browser/screenshots/README.md. The old docs/screens/ images (Silverstripe 3 era) are no longer referenced but are left in place.

Corrected in the README

  • Simpler: a fresh install on Silverstripe 5 gets simpler 1.x, not the 0.x line (1.0.0+ requires silverstripe/framework ^5 || ^6); ~0.2 only lets an existing 0.2/0.3 install stay.
  • The getShortcodePlaceHolder() example now returns its response (the endpoint returns whatever the method returns); the old example called ->output() itself and returned nothing.
  • New: a plain (non-DataObject) shortcodable class needs Extensible, because the module calls hasMethod() on it; a missing parser method is an E_USER_ERROR.
  • New: the updateShortcodeForm extension hook, the record dropdown named id for DataObjects, and the default_placeholder defaults.

Repo metadata set alongside this PR (live immediately)

  • Description: same as the new composer.json description.
  • Topics: silverstripe, silverstripe-module, silverstripe-cms, shortcode, shortcodes, tinymce, wysiwyg, htmleditor.

Four demo shortcodes (ScbShowcase*) and a seeded "Plan your visit" page, registered only when
SCB_README_SHOWCASE is set (fixtures/_config/showcase.yml). The specs' own fixture shortcodes are
left out on such a host, so the dialog lists only the showcase ones. Without the variable nothing
changes for the browser specs or CI (22/22 green on Silverstripe 6).
Sell first, technical last; three Playwright screenshots of the editor and the dialog
(tests/browser/screenshots/ regenerates them). Corrected: the simpler version a Silverstripe 5
install gets, the placeholder example now returns its response, plain classes need Extensible.
@micschk
micschk merged commit 211aefb into main Nov 2, 2026
9 checks passed
@micschk
micschk deleted the readme-presentation branch November 2, 2026 16:00
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