Class: Jekyll::AgentMarkdown::Generator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::AgentMarkdown::Generator
- Includes:
- Filters::URLFilters
- Defined in:
- lib/jekyll/agent_markdown/generator.rb
Constant Summary collapse
- URL_REQUIRED_MESSAGE =
"url is required for agent_markdown.llms_txt and must be an absolute HTTP(S) URL " \ "without credentials, a query, or a fragment"
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/jekyll/agent_markdown/generator.rb', line 22 def generate(site) settings = Configuration.for(site) return if settings == false @context = Liquid::Context.new({}, {}, { site: site }) destination_claims = destination_claims(site) included_posts = export_posts(site, settings, destination_claims) if Configuration.enabled?(settings, "posts") write_llms_txt(site, settings, included_posts || [], destination_claims) end |