Skip to content

Create a macro for linking API classes or functions #6186

@EmmanuelMess

Description

@EmmanuelMess

From #6181 (comment):

Instead of writing

`Node <{package_link(rclpy)}api/node.html>`__ class

everywhere to link to the API docs for Node, we need tooling that lets us write something like

{api(rclpy, rclpy.Node)} class

and expands it to the correct page.

I would also add the mapping:

`Node.get_logger() <{package_link(rclpy)}api/node.html#rclpy.node.Node.get_logger>`__

to:

{api(rclpy, rclpy.Node.get_logger)}

This isn't a priority, but I moved to an issue to keep it from falling through the cracks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions