Skip to content

Add Push MD demo remote#46

Merged
artpi merged 1 commit into
trunkfrom
codex/push-md-social-card-demo
May 14, 2026
Merged

Add Push MD demo remote#46
artpi merged 1 commit into
trunkfrom
codex/push-md-social-card-demo

Conversation

@adamziel
Copy link
Copy Markdown
Contributor

@adamziel adamziel commented May 12, 2026

What it does

Adds the remaining demo pieces needed for pushmd.blog without replacing the current landing-page logo or social-card assets:

  • working terminal tabs for the landing-page emulator
  • a public read-only static Git remote at /wp-json/git/v1/md.git
  • a landing-page clone command that points at https://pushmd.blog/wp-json/git/v1/md.git
  • install-section copy that lets visitors try the pullable public remote first, then install Push MD on their own WordPress site when they are ready to accept pushes
  • small responsive fixes for the landing page controls and mobile overflow

Rationale

The landing page should give people an immediate pullable Git remote before they install the plugin on their own WordPress site. The public demo remote stays read-only; authenticated Push MD installs remain the path for accepting writes through WordPress permissions.

Implementation

The static Git remote is checked into the GitHub Pages artifact path under plugins/push-md/docs/landing/wp-json/git/v1/md.git, with server-info generated so dumb HTTP cloning works from static hosting.

The terminal emulator now switches between Markdown, permissions/write, and pull/admin-edit demos. It also makes the public remote's read-only behavior explicit when a user tries to push.

Testing instructions

Validated locally with:

git diff --check
vendor/bin/phpcs -d memory_limit=1G plugins/push-md/docs/landing
node --check plugins/push-md/docs/landing/landing.js

Confirmed the static remote works over HTTP:

python3 -m http.server 45905 --bind 127.0.0.1 --directory plugins/push-md/docs/landing
git clone http://127.0.0.1:45905/wp-json/git/v1/md.git /tmp/my-site
git -C /tmp/my-site pull --ff-only

@adamziel adamziel changed the title [codex] Add Push MD social card and demo remote Add Push MD social card and demo remote May 12, 2026
@artpi artpi force-pushed the codex/push-md-social-card-demo branch from e5d1160 to b345bf8 Compare May 14, 2026 09:40
@artpi artpi changed the title Add Push MD social card and demo remote Add Push MD demo remote May 14, 2026
@artpi artpi marked this pull request as ready for review May 14, 2026 10:22
@artpi artpi merged commit f095b00 into trunk May 14, 2026
23 checks passed
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.

2 participants