Skip to content

Hyperlinks to external official documentation #85

Open
@lamourj

Description

@lamourj

Expected Behavior

When using -c show_types_annotations (found in #6), hyperlinks to external references should be added not only on the method declaration but also in the doc below (that is my understanding from https://pdoc3.github.io/pdoc/doc/pdoc/#linking-to-other-identifiers).

Actual Behavior and steps to reproduce

Example:

def example_method(a: datetime) -> int:
    """

    Parameters
    ----------
    a : `datetime.datetime`
        A date.

    Returns
    -------
    `int`
        The day.
    """

    return a.day

While the page renders as follows:
Screen Shot 2019-07-25 at 16 35 08
if using --http. When using --html, type hints are even completely omitted :
Screen Shot 2019-07-25 at 16 36 25

I guess the proper behavior would be to have the hyperlinks both in the method declaration in the first line and in the text below.
Moreover, it would likely be ideal to link to the official documentation, such as this for datetime

Additional info

  • pdoc version: 0.6.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions