Support customizable URI templates in llms.txt (#48)

This commit is contained in:
Jared Dillard
2025-10-27 17:41:04 -07:00
committed by GitHub
parent e2a80faf04
commit 5bfbb0168f
9 changed files with 298 additions and 5 deletions
+7 -1
View File
@@ -223,6 +223,7 @@ class LLMSFullManager:
filtered_page_order,
self.collector.page_titles,
0, # No line count since no llms-full.txt
sources_dir,
)
# Only warn if user explicitly wants llms-full.txt
@@ -523,6 +524,7 @@ class LLMSFullManager:
filtered_page_order,
self.collector.page_titles,
total_line_count,
sources_dir,
)
return
elif action == "note":
@@ -536,6 +538,7 @@ class LLMSFullManager:
filtered_page_order,
self.collector.page_titles,
total_line_count,
sources_dir,
)
return
elif action == "keep":
@@ -554,7 +557,10 @@ class LLMSFullManager:
if success and self.config.get("llms_txt_file"):
filtered_page_order = self._filter_ignored_pages(page_order)
self.writer.write_verbose_info_to_file(
filtered_page_order, self.collector.page_titles, total_line_count
filtered_page_order,
self.collector.page_titles,
total_line_count,
sources_dir,
)
def _read_source_file(self, file_path: Path, docname: str) -> Tuple[str, int]: