Skip to content

The @api doc block annotation #48

@mad-briller

Description

@mad-briller

Hey there,

Currently, Doctum responds to the @internal tag by adding a label to the structural element's documentation.
This is great to help guide users away from methods that they should not be using, or that aren't covered by backwards compatibility promises

However, the @api tag also exists: https://docs.phpdoc.org/guide/references/phpdoc/tags/api.html
This tag is meant to do the opposite; guide a user to look at the public interface / backwards compatible ensured elements first.

I think Doctum could handle the @api tag, and i propose a few things it could do when it detects it:

  • add a label similar to the internal one, that's green or some other positive color
  • sort @api elements to the top of their respective list, so they are seen first

As always, thanks your time and input.

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