Skip to content

docs: references generator shows protected members, raw link tags and nested index groups #528

Open

Description

@Exeloo

What is the type of issue?

Documentation is incorrect, Documentation is confusing

What is the issue?

Three problems in the API reference that the TypeDoc plugin generates (seen in the 3.0.0 reference on the docs site):

  1. Protected members on every library page. 17 pages (every library class, Library, NfException, NanoforgeClient, NanoforgeServer) list protected members, for example the inherited protected throwNotInitializedError() on each library class, with "Defined in: packages/common/dist/index.d.ts:536" (a build output path, no source link), and protected viewport, initialize(), schedule() on NanoforgeClient / NanoforgeServer. typedoc.json sets excludePrivate and excludeInternal but not excludeProtected. docs: fix the TypeDoc warnings and hide the protected internals of NetworkServerLibrary #468 covers the same cause for NetworkServerLibrary only; this is the same problem on every page.
  2. Raw {@link ...} tags in page descriptions. summaryOf builds the frontmatter description with Comment.combineDisplayParts, which keeps inline tags as text. Three pages ship descriptions such as "Options of {@link Graphics3DLibrary}."; Mintlify shows the raw tag and mint dev logs "Error compiling content Options of {@link Graphics3DLibrary}.".
  3. Nested index groups. For a package with several entry points (ecs, input, network), navigation.json has a group "@nanoforge-dev/ecs" that contains a second group also named "@nanoforge-dev/ecs", rooted at ecs/index/index, next to ecs/client, ecs/scene, ecs/server. The sidebar shows the package name twice, one inside the other.

Suggested fix: (1) mark the members library authors do not need @internal, or set excludeProtected and document the protected API of Library on its own page; (2) render the summary's inline tags as plain text (use the tag's text, or strip {@link X} to X) before writing the description; (3) in toMintlify, put the index entry point's pages directly in the package group instead of a same-named child group.

Found during the pre-testing-phase audit (2026-11-22).

Where did you find it?

Activity

  1. added
    documentation
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions