docs(schema): track the 65-item schema review page
This commit is contained in:
@@ -114,6 +114,8 @@ def main():
|
||||
parser.add_argument("--private-out", required=True, type=Path)
|
||||
parser.add_argument("--index", required=True, type=Path)
|
||||
parser.add_argument("--summary", required=True, type=Path)
|
||||
parser.add_argument("--review-page", type=Path,
|
||||
help="Also export the owner-approved schema-only HTML review into the project")
|
||||
args = parser.parse_args()
|
||||
if "data" not in args.private_out.parts:
|
||||
parser.error("Private schemas must remain in the gitignored data/ directory")
|
||||
@@ -149,14 +151,20 @@ def main():
|
||||
sides.append(f'<h3>{side}</h3><pre>{html.escape(content)}</pre>')
|
||||
sections.append(f'<section id="{row["blind_id"]}"><h2>{row["blind_id"]}</h2>'
|
||||
+ ''.join(sides) + '</section>')
|
||||
(args.private_out / "schemas.html").write_text(
|
||||
review_page = (
|
||||
'<!doctype html><html lang="en"><meta charset="utf-8"><title>P0 semantic simplex schemas</title>'
|
||||
'<style>body{font:16px/1.5 system-ui;max-width:1050px;margin:32px auto;padding:16px}'
|
||||
'pre{white-space:pre-wrap;background:#f5f5f5;padding:16px}section{border-top:1px solid #ccc}</style>'
|
||||
'<h1>65 semantic multi-role relation schemas</h1>'
|
||||
'<p>Private annotation seeds, not independently validated mathematical statements. '
|
||||
'<p>Schema annotation seeds, not independently validated mathematical statements. '
|
||||
'A simplex joins the objects, assumptions and conclusion in its slots. '
|
||||
'References are partial symbol/syntax candidates.</p>' + ''.join(sections) + '</html>')
|
||||
'References are partial symbol/syntax candidates. '
|
||||
'This review contains schema annotations and Lean signature text, not textbook passages '
|
||||
'or full assistant judgment explanations.</p>' + ''.join(sections) + '</html>')
|
||||
(args.private_out / "schemas.html").write_text(review_page, encoding="utf-8")
|
||||
if args.review_page is not None:
|
||||
args.review_page.parent.mkdir(parents=True, exist_ok=True)
|
||||
args.review_page.write_text(review_page, encoding="utf-8")
|
||||
# JSON-only reload is independently checked; it does not use pickle.
|
||||
for row in snapshots:
|
||||
for side in ["source", "lean"]:
|
||||
|
||||
Reference in New Issue
Block a user