Feature: Add bulk URL processing and global installation support #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature: Add bulk URL processing and global installation support
Problem
The current script only processes one URL at a time, making it inefficient for documentation sites with multiple pages. Users also need to manage dependencies manually and run the script from the project directory.
Solution
This PR adds bulk processing capabilities and global installation support to streamline documentation workflows.
Key improvements:
--urls-fileExample usage:
Output changes:
docs.example.com-llms.txt(overwrites on same domain)docs_example_page1.txt,docs_example_page2.txt(unique files)docs_example_consolidated_index_20250103_143022.txtImpact
Testing
Tested with various scenarios including API failures, mixed success/failure batches, and different URL patterns from sites like modelcontextprotocol.io.
Files changed:
generate-llmstxt.py- Core enhancementsREADME.md- Updated documentationCHANGELOG.md- Detailed change logpyproject.toml- uv dependenciessample-urls.txt- Example file