Skip to main content
Owner PDR Engineering (owner to be confirmed)

Contributing

Guides are Markdown/MDX files in this repository. Adding or changing a guide never requires changing application code.

Add a guide​

  1. Create a file under docs/ using the guide template.
  2. Add its id to sidebars.ts.
  3. Run npm start to preview, then npm run build to validate.
  4. Open a pull request.

Review requirements​

  • At least one reviewer other than the author.
  • Technical review by a PDR engineering subject-matter expert for any guide that describes API behavior. Unconfirmed behavior must be recorded as a documentation gap admonition, not stated as fact.
  • Examples use synthetic data only. Never commit PHI, real credentials, private keys or production-only values.
  • The build must pass. Broken links and anchors fail the build.

Publishing and rollback​

  • Preview: every pull request builds the site and attaches it as a portal-preview artifact on the run. Download and serve it to review.
  • Publish: merging to main deploys to AWS Amplify.
  • Rollback: run the Deploy Portal workflow manually and choose an earlier branch or tag in "Use workflow from".

Interactive components​

These work in any .mdx file with no import: <EnvironmentSelector />, <EnvLinks />, <WorkflowExplorer />, <QueryBuilder />, <QueryExamples />, <ScenarioExplorer />, <TestPatients />, <AuthSnippets />, <CaBundle />, <DocumentReferenceExplorer /> and <Part2Labels />. Source: src/components/pdr/.