Skip to content

Deduplicate Re-used Headers #354

Description

@avivkeller

(Follow-up #285)

Image

Cases like the one above should be de-duplicated into a single heading.

Activity

  1. moshams272 commented on Mar 19, 2026

    @moshams272
    Contributor

    Regarding the recent UX discussion in #655:
    I know this might seem like a fairly obvious approach, but what if we visually group the overloads under a single primary heading!!

    ### `parseData`
    
    This function has multiple overloaded signatures:
    
    * **`parseData(source: string)`**
      Description for string-based parsing.
    
    * **`parseData(source: string, options: ParseOptions)`**
      Description for parsing with custom options.
  2. moshams272 commented on Mar 19, 2026

    @moshams272
    Contributor

    Or do you feel this would still run into the same "information overload"!!

  3. moshams272 commented on Jul 16, 2026

    @moshams272
    Contributor

    After brainstormming, I think that will be better to handle Overloads by adding tag like this in md files

    #### Overloads: `importModule`
    
    ##### `importModule(request, options, callback)`
    
    * `request` {string}
    * `options` {ImportModuleOptions | undefined}
    * `callback` {Function}
    * Returns: {void}
    
    ##### `importModule(request[, options])`
    
    * `request` {string}
    * `options` {ImportModuleOptions}
    * Returns: {Promise< any >}

    then make doc-kit to traverse on them and assign them like an overload boolean that helps us to not print the M for methods and do it to the name of function only to be like this:

    Image

    WDUT?!

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

    Web Generator`web`, `jsx-ast`, and `orama-db`

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions