Skip to content

docs: write the API docs for someone outside the project, and check every cited RE finding has a report - #896

Merged
DrunkOnJava merged 8 commits into
mainfrom
docs/rustdoc-tracker-ids
Oct 23, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
docs/rustdoc-tracker-ids

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

The rustdoc that docs.rs shows was written for the maintainer: 1,298 of 14,633 doc-comment lines (8.9%) cited tracker ids, and the ifc module's overview still described per-element export as pending. This PR:

  • moves backlog and task ids (B55, VW1-13, SEC-12, L5B-54, M3-07, ...) out of the rustdoc text: 271 from parenthetical citations by script, each kept in a // Tracker: comment beside its item, and about 70 in prose by hand ("Lane Six recovery helpers", "Phase 1 leftovers", "This is L5B-11.6"), reworded to say what the thing is, and the work-plan labels left in module docs and the CLIs' docs ("Lane C", "Phase 4d", "Phase B of the attack plan") the same way;
  • keeps RE-NN and #NNN, which outside contributors use too (puzzbobb, Erry91 and helenkwok cite RE ids 1 to 14 times per PR), and adds one note in the crate root and one in rvt::research saying where they lead;
  • adds a CI check, tools/ci/api-doc-ids.py in the PII guard job, that every RE-NN the API docs cite has a report under reports/ and that no backlog id or work-plan label is back. It reads the /// and //! lines of src/ and rvt-py/src/ (pyo3 makes the latter Python docstrings), the type stubs in python/rvt/ and docs/python.md, and skips code spans and quoted strings so Revit's phase names stay;
  • rewrites the stale overview of src/ifc/mod.rs and the stale "What this does NOT do yet" list in src/ifc/from_decoded.rs.

Motivation

The 2026-10-23 style audit (Google's "avoid abbreviations someone outside the project won't know"; Rust API Guidelines C-CRATE-DOC). I first planned a link on every RE id; a dry run measured about 2,500 added reference-definition lines in 92 files, conflicting with the three open outside PRs and asking every future RE PR to add definitions, so the note plus the check does the same job.

Changes

  • 46 files: tracker ids moved out of parenthetical lists (script docs_ids.py, run once, not committed).
  • 36 files: hand edits of prose, including the CLI help text of rvt-elements (--no-typed).
  • src/lib.rs, src/research.rs: "Reading the docs" note.
  • src/ifc/mod.rs, src/ifc/from_decoded.rs: overviews rewritten from what the code does now.
  • tools/ci/api-doc-ids.py, .github/workflows/ci.yml: the citation and label check.
  • rvt-py/src/lib.rs, python/rvt/__init__.pyi, docs/python.md, docs/export-diagnostics.md: the Python surface's API-13..16, Lane Five, Lane Six and Lane 7 labels, and the claim that only scaffold export succeeds until geometry recovery lands (true only of a file with no recovered elements).
  • CHANGELOG.md.

Testing

Docs only, plus the check. CI's cargo doc (default features) and the docs.rs preview (every feature) run with -D warnings. The citation check fails on this branch until #895 lands (RE-149, RE-165, RE-166, RE-167 had no report), which is the point: this PR merges after #895.

Audit-honesty checklist

  • Rewritten overviews state only what the code does (checked: the exporter does not use build_ifc_model; from_decoded does attach extrusions, materials and property sets)
  • No emojis, private paths or internal jargon

Legal and contribution hygiene

  • Apache-2.0

Breaking changes

None. rvt-elements --help words --no-typed differently.

Screenshots or output samples

N/A.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 23, 2026 12:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 605b0d42ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ifc/mod.rs Resolved
Comment thread src/ifc/from_decoded.rs Resolved
Comment thread src/ifc/mod.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c7a38623d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CHANGELOG.md Resolved
Comment thread src/lib.rs Resolved
…, and check none comes back; RE reports cite an export where one exists

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 438a1a78d3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/ci/api-doc-ids.py Resolved
…planning labels too, and the check covers them
…9, which no report names, cite RE-15 and their issues

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4747407542

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/ci/api-doc-ids.py Resolved
@DrunkOnJava
DrunkOnJava merged commit 40ec18e into main Oct 23, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/rustdoc-tracker-ids branch October 23, 2026 13:34
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant