ENG-9435: add .md files to deal with AI blindly adding .md#6460
ENG-9435: add .md files to deal with AI blindly adding .md#6460adhami3310 wants to merge 2 commits intomainfrom
Conversation
Greptile SummaryThis PR adds trailing-slash URL variants for all markdown static assets so that AI agents requesting
Confidence Score: 5/5Safe to merge — the change is additive, only appending extra static asset paths to the returned tuple without modifying any existing paths or content. Both changed files are in the docs app layer with no impact on the core Reflex library. The path-conversion logic is simple and correct, the llms.txt/llms-full.txt entries are untouched, and the integration test directly validates content equality for every twin. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[generate_agent_files] --> B[generate_markdown_file_entries]
A --> C[generate_dynamic_api_reference_files]
B --> D[markdown_files\ntuple of url_path, content]
C --> E[dynamic_api_reference_files\ntuple of path, content]
D --> F[all_markdown_files list]
E --> F
F --> G[Canonical paths\npath/to/file.md]
F --> H[markdown_path_for_trailing_slash_url\npath/to/file.md → path/to/file/.md]
H --> I[Trailing-slash twins\npath/to/file/.md]
G --> J[Return tuple]
I --> J
A --> K[generate_llms_txt]
A --> L[generate_llms_full_txt]
K --> J
L --> J
Reviews (2): Last reviewed commit: "respond to greptile" | Re-trigger Greptile |
Merging this PR will not alter performance
Comparing Footnotes
|
|
@greptile |
ais just do that somestimes