2022-07-23 23:45:48 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module DocUrlHelper
|
|
|
|
def version
|
|
|
|
"13.4.0-ee"
|
|
|
|
end
|
|
|
|
|
|
|
|
def doc_url(documentation_base_url)
|
|
|
|
"#{documentation_base_url}/13.4/ee/#{path}.html"
|
|
|
|
end
|
|
|
|
|
|
|
|
def doc_url_without_version(documentation_base_url)
|
|
|
|
"#{documentation_base_url}/ee/#{path}.html"
|
|
|
|
end
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
def stub_doc_file_read(content:, file_name: 'index.md')
|
2022-07-23 23:45:48 +05:30
|
|
|
expect_file_read(File.join(Rails.root, 'doc', file_name), content: content)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
DocUrlHelper.prepend_mod
|