Skip to content

Convert standard library docs to Markdown and take argument documentation syntax to use #5709

Closed

Description

@pekkaklarck

Now that Libdoc supports Markdown (#5304) and arguments, return values and exceptions can be explicitly documented (#5604), we should take these great enhancements into use with standard libraries. Especially argument documentation will make resulting docs much better. Using Markdown instead of Robot's custom format doesn't matter that much for end users, but it certainly helps when libraries are shown as part of API docs.

It would be great to get all libraries converted in RF 7.5, but that may be too big a task. We should, however, convert at least some libraries so that they can be used as examples.

External help with conversion would be highly appreciated in general. This is an especially good issue for those who want to contribute to Robot Framework to get started. If you are interested, please comment here what library you'd like to look at first. Please also create PRs so that there are changes only to one library in one PR.

As part of this change, also the standard type documentation should be updated. That requires a small change on Robot side as well.

Activity

  1. added this to the v7.5 milestone on Jul 17, 2026
  2. added
    good first issue
    help wanted
    on Jul 17, 2026
  3. Shaurya2k06 commented on Jul 17, 2026

    @Shaurya2k06
    Contributor

    I want to pick this up!

    I'll start with Dialogs and Screenshot since they're small and self-contained, good first examples. Converting both to ROBOT_LIBRARY_DOC_FORMAT = "Markdown" with Args:/Returns: docs for every keyword, verified via libdoc. I'll open PRs, one library each. After that I'll move on to String, DateTime, and Collections,moving to the larger ones.

  4. pekkaklarck commented on Jul 17, 2026

    @pekkaklarck
    MemberAuthor

    Awesome! Doing libraries one-by-one is great, because we can then decide on conventions as needed.

    One thing to decide already now is what to do with exceptions. For example, does it make sense do add something like

    Raises:
        AssertionError: If `first` and `second` are not equal.
    

    to Should Be Equal or is that too redundant?

  5. coyaSONG commented on Jul 17, 2026

    @coyaSONG
    Contributor

    I would like to take the OperatingSystem library in one separate PR, without touching Dialogs, Screenshot, String, DateTime, or Collections. I will convert its library and keyword documentation to Markdown, add explicit argument and return documentation, keep exception documentation only where it adds useful information beyond the existing prose, and validate the generated Libdoc output plus the relevant tests. OpenAI Codex is assisting with the work, and I will disclose that in the PR.

  6. Shaurya2k06 commented on Jul 17, 2026

    @Shaurya2k06
    Contributor

    Hey @pekkaklarck , gave it some thought, and I think we should only use the former when it adds information the prose does not already make clear. What do you think?

  7. 61 remaining items

  8. pekkaklarck commented on Aug 31, 2026

    @pekkaklarck
    MemberAuthor

    Notice that if libraries need some kind of notes, tips or warnings, this kind of admonition syntax can be used:

    > [!NOTE]
    > The note text.
    

    For more details see discussion here.

  9. pekkaklarck commented on Sep 9, 2026

    @pekkaklarck
    MemberAuthor

    Telnet is now done so we only have OS left! I already merged the PR by @coyaSONG and @Vinni82 promised to make some further changes before I take the final look.

  10. pekkaklarck commented on Sep 14, 2026

    @pekkaklarck
    MemberAuthor

    All libraries have now been converted! Huge thanks for the help @Shaurya2k06, @coyaSONG and @Vinni82!

  11. added a commit that references this issue on Sep 14, 2026
    59da4b2
  12. pekkaklarck commented on Sep 17, 2026

    @pekkaklarck
    MemberAuthor

    Issue #5788 points out that generating standard library docs doesn't anymore work with a basic Robot Framework installation. Installing markdown, and optionally pygments for syntax highlighting, is so simple that I don't consider it a big problem. We also have the docs publicly available, so there aren't that often needs to generate them. That said, this issue deserves to be labeled backwards incompatible. I'll do that and also update RF 7.5 release notes to mention this.

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

    acknowledgebackwards incompatibleeffort: extra largegood first issuehelp wantedpriority: critical

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions