docs(sdlc): reformat work products to audited reference layout
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// Document scaffold shared by every generated work product.
|
||||
import { CODE, PROJECT_TH } from './project.mjs';
|
||||
import { control, signatures, doc } from './lib.mjs';
|
||||
|
||||
/**
|
||||
* Build a work product in the audited package layout:
|
||||
* title → footer marker → document-control block → body sections → three signature tables.
|
||||
*/
|
||||
export function workProduct({ type, footer, rows, body, secretary, reviewer, approver }) {
|
||||
return doc(
|
||||
`# ${type}`,
|
||||
`<!-- footer: ${footer} -->`,
|
||||
control(rows),
|
||||
body,
|
||||
signatures(secretary, reviewer, approver),
|
||||
);
|
||||
}
|
||||
|
||||
/** The Document No / Project Name / Project Code rows every work product starts with. */
|
||||
export const head = (type, release, extra = []) => [
|
||||
['Document No', type, 'Release, Version, By:', release],
|
||||
['Project Name', PROJECT_TH],
|
||||
['Project Code', CODE],
|
||||
...extra,
|
||||
];
|
||||
Reference in New Issue
Block a user