# frozen-string-literal: true

# Simple controller for serving documentation
class DocController < ApplicationController
  def index
    @view_state = LanguageState.new(UserLanguageSelection.new(params))
  end

  def ukhpi_dsd
    send_file 'app/views/doc/ukhpi-dsd.ttl', type: 'text/turtle'
  end

  def ukhpi_user_guide
    send_file(
      'app/views/doc/ukhpi-user-guide.pdf',
      type: 'application/pdf',
      disposition: :inline
    )
  end
end

# frozen-string-literal: true

# Simple controller for serving documentation
class DocController < ApplicationController
  def index
    @view_state = LanguageState.new(UserLanguageSelection.new(params))
  end

  def ukhpi
    @view_state = LanguageState.new(UserLanguageSelection.new(params))
  end

  def ukhpi_dsd
    send_file 'app/views/doc/ukhpi-dsd.ttl', type: 'text/turtle'
  end

  def ukhpi_user_guide
    send_file(
      'app/views/doc/ukhpi-user-guide.pdf',
      type: 'application/pdf',
      disposition: :inline
    )
  end
end

Fix view-rendering regression in 'about UKHPI'
Fix view-rendering regression in 'about UKHPI'
