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
- LLMS_TXT_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"
- LLMS_FULL_TXT_URL_REQUIRED_MESSAGE =
"url is required for agent_markdown.llms_full_txt and must be an absolute HTTP(S) URL " \ "without credentials, a query, or a fragment"
- ONE_MEBIBYTE =
1_048_576
Instance Attribute Summary collapse
-
#exported_documents ⇒ Object
readonly
Returns the value of attribute exported_documents.
Instance Method Summary collapse
Instance Attribute Details
#exported_documents ⇒ Object (readonly)
Returns the value of attribute exported_documents.
36 37 38 |
# File 'lib/jekyll/agent_markdown/generator.rb', line 36 def exported_documents @exported_documents end |
Instance Method Details
#generate(site) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/jekyll/agent_markdown/generator.rb', line 38 def generate(site) settings = Configuration.for(site) return if settings == false @exported_documents = exported_documents_for(site, settings) write_llms_txt(site, settings, exported_documents, @destination_claims) write_llms_full_txt(site, settings, exported_documents, @destination_claims) end |