Skip to content

Allow for plugins to provide docs in NetBox UI #9887

Closed
@ryanmerolle

Description

@ryanmerolle

NetBox version

v3.2.7

Feature type

Change to existing functionality

Proposed functionality

Currently get_docs_url does not allow for plugins to include their docs. It would be a nice feature if it did.

@register.filter()
def get_docs_url(model):
    """
    Return the documentation URL for the specified model.
    """
    return f'{settings.STATIC_URL}docs/models/{model._meta.app_label}/{model._meta.model_name}/'

Use case

Allow for higher quality plugins with documents in the NetBox UI just like any other model.

Database changes

N/A

External dependencies

N/A

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtopic: pluginsRelates to the plugins frameworktype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions