diff --git a/Gemfile b/Gemfile index c4f4707b..ed82f36c 100644 --- a/Gemfile +++ b/Gemfile @@ -68,9 +68,6 @@ gem 'rubyzip' gem 'mitre-inspec-objects' gem 'rest-client' -# Markdown processing -gem 'redcarpet' - group :development do gem 'listen', '~> 3.1.5' # Access an interactive console on exception pages or by calling 'console' anywhere in the code. diff --git a/Gemfile.lock b/Gemfile.lock index cd339450..db44a153 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -350,7 +350,6 @@ GEM rb-fsevent (0.11.1) rb-inotify (0.10.1) ffi (~> 1.0) - redcarpet (3.6.0) regexp_parser (2.2.1) request_store (1.5.1) rack (>= 1.4) @@ -565,7 +564,6 @@ DEPENDENCIES pg (>= 0.18, < 2.0) puma (~> 5.6) rails (~> 6.1.4) - redcarpet rest-client rspec-mocks rspec-rails (~> 4.0.0) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4291bd9d..193bf184 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -21,39 +21,4 @@ def base_navigation nav_links end - - # Get the latest release changes to display on the landing page - def latest_release_details - changelog_path = Rails.root.join('CHANGELOG.md') - release_details = '' - - begin - File.open(changelog_path, 'r') do |file| - line = file.gets - while line - if line.start_with?('## [v') - # Found the beginning of a release, start reading details - release_details = line - line = file.gets - while line && !line.start_with?('## [v') - release_details += line - line = file.gets - end - # Exit the loop once the latest release details have been read - break - end - line = file.gets - end - end - rescue StandardError => e - Rails.logger.error "Unable to read latest release: #{e.message}" - end - - release_details - end - - def markdown_to_html(text) - options = %i[hard_wrap autolink no_intra_emphasis fenced_code_blocks] - Markdown.new(text, *options).to_html - end end diff --git a/app/javascript/components/navbar/App.vue b/app/javascript/components/navbar/App.vue index ccd3b179..7ec2573b 100644 --- a/app/javascript/components/navbar/App.vue +++ b/app/javascript/components/navbar/App.vue @@ -3,7 +3,10 @@