You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Libdoc: Fix storing information about deprecated keywords to spec files #4387
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>.
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.
Activity
pekkaklarck commentedon Jul 4, 2022
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.
pekkaklarck commentedon Jul 4, 2022
Decided to only write deprecation info to JSON specs when keywords are actually deprecated. Main reasons:
If someone feels this info should always be included, we can still consider changing this.