Skip to content

[v0.28.8] global.md is referenced in places it shouldn't #2987

@HarelM

Description

@HarelM

Expected Behavior

functions should belong to their respective class...?

Actual Behavior

A lot of methods are now part of global.md

Steps to reproduce the bug

  1. Clone maplibre/maplibre-gl-js
  2. run npm i && npm run generate-docs
  3. Check the docs/API/functions folder for "off.md" and others - they shouldn't be there.

Environment

  • Typedoc version: 0.28.8
  • TypeScript version: 5.8.3
  • Node.js version: 22.13
  • OS: macOS

I saw this issue as part of our dependabot package update.
The current docs can be found here, which are using version 0.28.7:
https://maplibre.org/maplibre-gl-js/docs/API/functions/addProtocol/
When building locally with latest version (0.28.8) I see a difference in what is being written in global.md file, which I believe is not correct, as most of the methods there are not really global and belong to a class (evented.ts in this case of off and on).

Let me know if there's any more information I can provide.
Here's the relevant PR that raised my attention to this change:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions