mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 22:34:47 +00:00
* Reshuffle/organize settings UI * Settings: AI prompt display/minor touch-ups * API key settings tests * Moved import/export together * Collapsible LLM prompt DIVs * Add export tests
19 lines
467 B
Ruby
19 lines
467 B
Ruby
class Settings::GuidesController < ApplicationController
|
|
layout "settings"
|
|
|
|
def show
|
|
@breadcrumbs = [
|
|
[ "Home", root_path ],
|
|
[ "Guides", nil ]
|
|
]
|
|
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
|
|
autolink: true,
|
|
tables: true,
|
|
fenced_code_blocks: true,
|
|
strikethrough: true,
|
|
superscript: true
|
|
)
|
|
@guide_content = markdown.render(File.read(Rails.root.join("docs/onboarding/guide.md")))
|
|
end
|
|
end
|