diff --git a/allianceauth/services/hooks.py b/allianceauth/services/hooks.py index 0049ecd9..7e76d6d5 100644 --- a/allianceauth/services/hooks.py +++ b/allianceauth/services/hooks.py @@ -148,7 +148,7 @@ class MenuItemHook(MenuItemHook): class AppAnnouncementHook(AppAnnouncementHook): """ - AppAnnouncementHook shim to allianceauth.templatetags.admin_status + AppAnnouncementHook shim to allianceauth.admin_status.hooks :param AppAnnouncementHook: _description_ :type AppAnnouncementHook: _type_ diff --git a/docs/development/custom/app-announcement-hooks.md b/docs/development/custom/app-announcement-hooks.md index 594a1d90..e4992864 100644 --- a/docs/development/custom/app-announcement-hooks.md +++ b/docs/development/custom/app-announcement-hooks.md @@ -9,7 +9,7 @@ To register an AppAnnouncementHook class, you would do the following: ```python from allianceauth import hooks -from allianceauth.admin_status.hooks import AppAnnouncementHook +from allianceauth.services.hooks import AppAnnouncementHook @hooks.register('app_announcement_hook') @@ -35,14 +35,14 @@ Here you should enter the namespace of your repository. The structure stays the same for both GitHub and GitLab repositories. \ A repository with the url `https://gitlab.com/username/appname` will have a namespace of `username/appname`. -### repository_kind +### Service -This variable is an enumeration of the class `AppAnnouncemementHook.RepositoryKind` +This variable is an enumeration of the class `AppAnnouncemementHook.Service` It is mandatory to specify this variable so alliance auth contacts the correct API when fetching your repository issues. ```{eval-rst} -.. autoclass:: allianceauth.services.hooks.AppAnnouncementHook.RepositoryKind +.. autoclass:: allianceauth.services.hooks.AppAnnouncementHook.Service :members: GITLAB, GITHUB :undoc-members: ``` diff --git a/docs/development/custom/img/app_announcement_hook_example.png b/docs/development/custom/img/app_announcement_hook_example.png deleted file mode 100755 index b57c6950..00000000 Binary files a/docs/development/custom/img/app_announcement_hook_example.png and /dev/null differ