Skip to content

Libdoc: Fix storing information about deprecated keywords to spec files #4387

Closed

Description

@pekkaklarck

We support marking keywords deprecated by starting their documentation with *DEPRECATED*. There are two problems with handling this information with Libdoc:

  • The information is included only in XML spec files, not in JSON spec files.
  • If documentation is converted to HTML, reading this information fails because the marker is tuned to <b>DEPRECATED</b>.

Activity

  1. added this to the v5.1 milestone on Jul 4, 2022
  2. pekkaklarck commented on Jul 4, 2022

    @pekkaklarck
    MemberAuthor

    One thing to decide is that should we include the deprecation information in JSON spec files always or only when a keyword is actually deprecated. Deprecation is pretty rare so adding this info always increases the spec file size a bit. With XML specs this info is added only when the keyword has been deprecated. For consistency reasons I believe specs should behave the same way, but we could obviously change XML specs to include this info always as well.

    This decision affects also privacy information. Support for private user keywords was just added (#430) and private keywords are included in Libdoc spec files but not in HTML outputs. To make it easier to see is a keyword private or not, I plan to add that info directly to spec files and need to decide should it be added always or only when a keyword actually is private. For consistency reason that decision should be the same as with deprecation info.

  3. pekkaklarck commented on Jul 4, 2022

    @pekkaklarck
    MemberAuthor

    Decided to only write deprecation info to JSON specs when keywords are actually deprecated. Main reasons:

    • That's how XML specs work as well.
    • Less changes need to existing tests.
    • Tools that want to support older RF versions cannot expect this info to be there anyway.

    If someone feels this info should always be included, we can still consider changing this.

  4. added theissue type on Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions