Skip to content

website: make "deprecation" more visible: red boxes #9478

Closed

Description

@nschloe

As discussed in #9475, numpy would likely profit from more visible deprecation notes than plain text in the docstring (see hstack's documentation, for example).

While actual deprecation is not desirable (for one, numpy 2.0 is a long way away), it was suggested to introduce big red boxes in the style of Python itself; see, e.g., here.

dep

Activity

  1. eric-wieser commented on Jul 27, 2017

    @eric-wieser
    Member

    Does .. deprecated: do the right thing here?

  2. nschloe commented on Jul 27, 2017

    @nschloe
    ContributorAuthor

    The function binary_repr has .. deprecated:: 1.12.0 set, but I see nothing of that in the generated docs.

    corrcoef actually shows something in the docs, but it isn't very visible either.

  3. njsmith commented on Jul 27, 2017

    @njsmith
    Member

    It's fairly straightforward to redefine deprecated to be more visible, or to define a new directive, either by modifying the numpydoc plugin or by making a little numpy-local plugin.

  4. changed the title [-]make "deprecation" more visible: red boxes[/-] [+]website: make "deprecation" more visible: red boxes[/+] on Dec 24, 2019
  5. seberg commented on Nov 5, 2021

    @seberg
    Member

    The deprecated directive now uses red boxes in the rendered docs.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions