Skip to content

fix: improve HTML doc generation#793

Merged
crowlKats merged 4 commits into
mainfrom
jsr-docsgen-fixes
Apr 17, 2026
Merged

fix: improve HTML doc generation#793
crowlKats merged 4 commits into
mainfrom
jsr-docsgen-fixes

Conversation

@crowlKats

Copy link
Copy Markdown
Member

Summary

  • Reserved word handling in import usage: Package names that are JS reserved words (e.g. enum) are now capitalized in generated import statements to produce valid syntax
  • Interface construct signatures: Interface new() constructors are now rendered in a "Constructors" section
  • Doc inheritance from interfaces: Class methods/properties that lack JSDoc now inherit documentation from implemented interfaces
  • Type parameter and import linking: Type parameters and cross-module imports now produce proper hyperlinks using TypeRefResolution
  • Partition deduplication fix: Symbols with mixed reference/non-reference declarations no longer lose their non-reference declarations during partitioning

Companion PR: jsr-io/jsr#1371

Test plan

  • All 155 existing tests pass (snapshots updated for expected changes)
  • Added unit tests for reserved word detection, capitalize_first, and identifier sanitization

🤖 Generated with Claude Code

- Handle JS reserved words in import usage identifiers by capitalizing (#1092)
- Render interface construct signatures (new()) in docs (#1250)
- Inherit JSDoc from implemented interfaces for undocumented class members (#1013)
- Use TypeRefResolution to properly link type params and cross-module imports (#922)
- Fix partition deduplication to preserve non-reference declarations (#957)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts:
#	src/html/partition.rs
# Conflicts:
#	tests/snapshots/html_test__diff_comprehensive_full.snap
@crowlKats crowlKats merged commit 23dd267 into main Apr 17, 2026
7 checks passed
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.

2 participants