This directory contains the public MDX documentation site for Port.
Use the repo-supported just recipes from the repository root:
just docs-install
just docs-dev
just docs-buildThe dev server binds to 0.0.0.0 by default. Override the port when 3000 is
already in use:
PORT=3010 just docs-devThese commands use the repository's Nix-backed Node toolchain so the docs workflow stays reproducible in this workspace.
For production publication, the repository-owned
publish-docs.yml workflow is the
preferred lane. It publishes the stable Port site plus the main preview into
the shared spoke-previews bucket through the infra-managed OIDC role. The
checked-in publish-docs.sh script is the local
repair and CI execution surface for that contract. Published docs objects use
Cache-Control: no-cache so browsers revalidate with ETag and
Last-Modified.
The site reads these optional environment variables at build time:
DOCS_SITE_URLDOCS_BASE_URL
If they are not set, the site defaults to https://port.spoke.sh and /.
The shared production docs lane is:
- stable docs at
https://www.spoke.sh/port/docs - preview docs at
https://www.spoke.sh/previews/port/<branch>/docs
The publish workflow runs in the repository's prod GitHub environment. It
accepts the same publication inputs the sibling repos use:
AWS_ROLE_TO_ASSUME(optional when the defaultspoke-port-docs-publisherrole ARN is correct)DOCS_PREVIEW_BUCKET(optional; defaults tospoke-previews)
The publish script also accepts:
DOCS_APP_NAMEDOCS_SITE_URLDOCS_BRANCHDOCS_PUBLISH_STABLEDOCS_SKIP_SYNC