ACF Frontend Form docs: create/update modes + styling; dev server auto-reload
Rewrite the ACF Frontend Form widget doc for the new Update/Create modes, redirect option, reliable submissions, live editor tabs and the new style controls. Switch the container to the Docusaurus dev server so editing docs auto-updates the live site with no rebuild or restart. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,17 +10,19 @@ services:
|
||||
restart: always
|
||||
environment:
|
||||
SITE_URL: ${SITE_URL}
|
||||
NODE_ENV: production
|
||||
NODE_ENV: development
|
||||
volumes:
|
||||
# The markdown source content — edit files here, then
|
||||
# `docker compose up -d --build` (or just `restart`) to rebuild and
|
||||
# pick up the changes. Organised as one folder per plugin.
|
||||
# The markdown source content — edit files in here and the running dev
|
||||
# server picks them up automatically: no rebuild, no restart. Organised
|
||||
# as one folder per plugin.
|
||||
- ./docs:/app/docs
|
||||
# Rebuilds the static site fresh on every container start (picking up
|
||||
# whatever is currently in ./docs and the current SITE_URL), then serves
|
||||
# the result. A few seconds slower to start than pre-built static files,
|
||||
# but means editing docs never requires touching the image.
|
||||
command: sh -c "npm run build && npm run serve -- --host 0.0.0.0 --port ${PORT}"
|
||||
# Runs the Docusaurus dev server, which watches ./docs and recompiles on
|
||||
# every change, so editing a doc updates the live site with no container
|
||||
# restart or rebuild. `--poll` makes file-change detection reliable across
|
||||
# the bind mount. For a truly live browser refresh (HMR) enable
|
||||
# "Websockets Support" on this host in Nginx Proxy Manager; without it an
|
||||
# already-open tab still updates on the next manual refresh.
|
||||
command: sh -c "npm run start -- --host 0.0.0.0 --port ${PORT} --no-open --poll 1000"
|
||||
networks:
|
||||
- proxy
|
||||
# No host port published — Nginx Proxy Manager reaches this container
|
||||
|
||||
Reference in New Issue
Block a user