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
- Create a file under
docs/using the guide template. - Add its id to
sidebars.ts. - Run
npm startto preview, thennpm run buildto validate. - 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-previewartifact on the run. Download and serve it to review. - Publish: merging to
maindeploys 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/.