Skip to content

Commit

Permalink
Merge pull request #320 from nautobot/update_docs_link
Browse files Browse the repository at this point in the history
Updates for activating docs link.
  • Loading branch information
smk4664 authored Jul 30, 2024
2 parents a9b80af + 6fb942d commit 8f6b03d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/319.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated app config settings to point to new url.py path for activating docs link.
1 change: 1 addition & 0 deletions nautobot_chatops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class NautobotChatOpsConfig(NautobotAppConfig):
}

caching_config = {}
docs_view_name = "plugins:nautobot_chatops:docs"

def ready(self):
"""Function invoked after all apps have been loaded."""
Expand Down
3 changes: 3 additions & 0 deletions nautobot_chatops/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import logging

from django.urls import path
from django.templatetags.static import static
from django.views.generic import RedirectView

from nautobot.apps.config import get_app_settings_or_config
from nautobot.extras.views import ObjectChangeLogView, ObjectNotesView
Expand Down Expand Up @@ -100,4 +102,5 @@
kwargs={"model": ChatOpsAccountLink},
),
*grafana_urlpatterns,
path("docs/", RedirectView.as_view(url=static("nautobot_chatops/docs/index.html")), name="docs"),
]

0 comments on commit 8f6b03d

Please sign in to comment.