SDK Guide
JSDoc Cascade
How the SDK reference pages on this site stay in lockstep with the source. JSDoc in packages/upg-spec extracts at build time and feeds both the TypeScript language server and unifiedproductgraph.org.
The pipeline
Every type, constant, and function in @unified-product-graph/core is documented with JSDoc @example blocks. The site documentation at /sdk/reference and the TypeScript language server surface are generated from the same source: the spec package's TSDoc. No separate documentation files.
The pipeline: JSDoc in packages/upg-spec/src/** is extracted at build time by the TypeScript Compiler API (the same tool that generates UPG_PROPERTY_SCHEMA). The extraction output feeds the unifiedproductgraph.org documentation renderer. When a property shape or edge definition changes in the spec, the site docs update at the next build — documentation drift is structurally impossible.