Skip to content

Commit

Permalink
Rely on the plugin_manual mechanism in Foreman
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jun 27, 2023
1 parent 4acf90d commit 6322d50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/helpers/remote_execution_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ def time_in_words_span(time)
end

def documentation_button_rex(section = '')
url = "https://theforeman.org/plugins/foreman_remote_execution/#{rex_doc_version}/index.html#"
documentation_button section, :root_url => url
documentation_button section, type: 'plugin_manual', name: 'foreman_remote_execution', version: rex_doc_version, section: "##{section}"
end

def description_checkbox_f(f, job_template, disabled)
Expand Down
2 changes: 1 addition & 1 deletion lib/foreman_remote_execution/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Engine < ::Rails::Engine

initializer 'foreman_remote_execution.register_plugin', before: :finisher_hook do |_app|
Foreman::Plugin.register :foreman_remote_execution do
requires_foreman '>= 3.7'
requires_foreman '>= 3.8'
register_global_js_file 'global'
register_gettext

Expand Down

0 comments on commit 6322d50

Please sign in to comment.