Class: Jekyll::AgentMarkdown::LlmsFullRenderer

Inherits:
Object
  • Object
show all
Includes:
Filters::URLFilters
Defined in:
lib/jekyll/agent_markdown/llms_full_renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, settings, documents) ⇒ LlmsFullRenderer

Returns a new instance of LlmsFullRenderer.



15
16
17
18
19
20
# File 'lib/jekyll/agent_markdown/llms_full_renderer.rb', line 15

def initialize(site, settings, documents)
  @site = site
  @settings = settings
  @index = LlmsDocumentIndex.new(settings, documents)
  @context = Liquid::Context.new({}, {}, { site: site })
end

Instance Method Details

#to_sObject



22
23
24
25
# File 'lib/jekyll/agent_markdown/llms_full_renderer.rb', line 22

def to_s
  sections = index.sections.map { |section| render_section(section) }
  "#{([site_heading] + sections).join("\n\n")}\n"
end