For my Rails page help documentation, I utilized the HelpNDoc help authoring tool to generate a folder containing HTML pages and additional folders for JavaScript, images, stylesheets, and libraries. Now I am seeking the most efficient way to integrate this functionality into my Rails app.
Initially, I attempted to create a new controller named "help" and added the files to the view folder. I then modified the application.js and application.css.scss files to include the necessary JavaScript and CSS files. However, as the HTML files also had scripts, I consolidated them into the help.js file, which proved to be quite challenging due to needing to update references and other elements in the files.
Is there an alternative solution that requires less extensive modifications?
Any assistance would be greatly appreciated.
My approach
To tackle this issue, I opted for using an Engine by referring to the Ruby on Rails engine guide at http://guides.rubyonrails.org/engines.html. While I did need to make adjustments to the HTML files for routing purposes, I found this method to be the most straightforward and elegant solution.