Skip to content

[docgen] export causes duplicate doc generation #17016

Closed
@konsumlamm

Description

@konsumlamm

If export is used on a public binding (for example a proc), the documentation for it is generated twice.

Example

proc test*() = discard

export test

Current Output

Expected Output

Additional Information

This bug appears in the random module (see #16953 (comment)), where the documentation for initRand(int64) is generated twice.

$ nim -v
Nim Compiler Version 1.5.1 [Linux: amd64]
Compiled at 2021-02-08
Copyright (c) 2006-2021 by Andreas Rumpf

git hash: c548f97241c9f0da8f9442c07b99dd9d6adf225a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation GenerationRelated to documentation generation (but not content).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions