From 0eaea3371092769066a38af4aed498e6adb7cf75 Mon Sep 17 00:00:00 2001 From: Andy Zhao <17884966+Zhao-Andy@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:01:01 -0400 Subject: [PATCH] Replace admin guide links (#13967) * Replace admin guide links * Add missing /docs/ * Add proper links --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .../admin/application_controller.rb | 24 +++++++++---------- app/views/admin/overview/index.html.erb | 18 +++++++------- app/views/layouts/admin.html.erb | 2 +- spec/tasks/metrics_spec.rb | 2 +- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index e9cbe2932..b0fb337a9 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -57,7 +57,7 @@ development process, or any of our internal teams? If so, please note how you will share this change with the people who need to know about it._ - [ ] I've updated the [Developer Docs](https://docs.forem.com) and/or - [Admin Guide](https://forem.gitbook.io/forem-admin-guide/), or + [Admin Guide](https://admin.forem.com/), or [Storybook](https://storybook.forem.com/) (for Crayons components) - [ ] I've updated the README or added inline documentation - [ ] I will share this change in a [Changelog](https://forem.dev/t/changelog) diff --git a/app/controllers/admin/application_controller.rb b/app/controllers/admin/application_controller.rb index dc442425b..736d91a45 100644 --- a/app/controllers/admin/application_controller.rb +++ b/app/controllers/admin/application_controller.rb @@ -5,18 +5,18 @@ module Admin after_action :verify_authorized HELP_URLS = { - badges: "https://forem.gitbook.io/forem-admin-guide/admin/badges", - badge_achievements: "https://forem.gitbook.io/forem-admin-guide/admin/badges", - configs: "https://forem.gitbook.io/forem-admin-guide/admin/config", - navigation_links: "https://forem.gitbook.io/forem-admin-guide/admin/navigation-links", - pages: "https://forem.gitbook.io/forem-admin-guide/admin/pages", - podcasts: "https://forem.gitbook.io/forem-admin-guide/admin/podcasts", - reports: "https://forem.gitbook.io/forem-admin-guide/admin/reports", - users: "https://forem.gitbook.io/forem-admin-guide/admin/users", - html_variants: "https://forem.gitbook.io/forem-admin-guide/admin/html-variants", - display_ads: "https://forem.gitbook.io/forem-admin-guide/admin/display-ads", - chat_channels: "https://forem.gitbook.io/forem-admin-guide/admin/chat-channels", - tags: "https://forem.gitbook.io/forem-admin-guide/admin/tags" + badges: "https://admin.forem.com/docs/admin/badges", + badge_achievements: "https://admin.forem.com/docs/admin/badges", + configs: "https://admin.forem.com/docs/admin/config/README", + navigation_links: "https://admin.forem.com/docs/admin/navigation-links", + pages: "https://admin.forem.com/docs/admin/pages", + podcasts: "https://admin.forem.com/docs/admin/podcasts", + reports: "https://admin.forem.com/docs/admin/reports", + users: "https://admin.forem.com/docs/admin/users/README", + html_variants: "https://admin.forem.com/docs/admin/html-variants", + display_ads: "https://admin.forem.com/docs/admin/display-ads", + chat_channels: "https://admin.forem.com/docs/admin/chat-channels", + tags: "https://admin.forem.com/docs/admin/tags" }.freeze private diff --git a/app/views/admin/overview/index.html.erb b/app/views/admin/overview/index.html.erb index 7fdc9b51c..041d04d83 100644 --- a/app/views/admin/overview/index.html.erb +++ b/app/views/admin/overview/index.html.erb @@ -8,17 +8,17 @@
Here are a few things we recommend doing now that you're using Forem!