a2837ec088
Follow-up to the cherry-picked #111584 (@chelsealong): - website/docs/user-guide/docker.md: new warning block next to the existing "do not override the entrypoint" note explaining WHY (with `/init` gone the hermes process is PID 1 and nothing reaps orphaned browser/MCP/shell children), the Compose `init: true` / `docker run --init` remedy, and that supervision is still lost on that path; plus a Troubleshooting entry for `<defunct>` processes under PID 1. - hermes_cli/main.py: `_warn_if_unsupervised_pid1` keeps the `os.getpid() == 1` check and drops the `platform.system()` gate and the blanket `try/except Exception: pass` — a user process is never PID 1 on any host OS (PID 1 is init/launchd; Windows PIDs are multiples of 4), and nothing in the check can raise. - tests trimmed to two invariants (warns at pid 1 / silent otherwise). Not done, on purpose: a `prctl(PR_SET_CHILD_SUBREAPER)` + SIGCHLD reaper in main-wrapper/hermes. As PID 1 hermes already receives the orphans; what is missing is a `waitpid(-1)` loop, and a process-wide one races `subprocess.Popen` for exit statuses. The maintainer decides whether that runtime change is wanted; docs + the startup warning cover the reported deployment.
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.