crate / crate/about

llms-txt: Improve inlining by retaining HTTP link to original resource

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## About

The inlining process of [llms-txt](https://pypi.org/project/llms-txt/) can be improved.

## Retaining links

Currently, the inliner embeds link content, but does not retain the links. While the links per se would not be helpful for humans, it would be nice to retain references to the corresponding human-readable resource, like Junction and Turso are doing it per `Source: ` annotation right after the produced headline.

- https://docs.junction.com/llms.txt, https://docs.junction.com/llms-full.txt
- https://docs.turso.tech/llms.txt, https://docs.turso.tech/llms-full.txt

#### Source
```
- [Junction API](https://docs.junction.com/api-details/junction-api.md)
```
```
- [List Audit Logs](https://docs.turso.tech/api-reference/audit-logs/list.md): Return the audit logs for the given organization, ordered by the `created_at` field in descending order.
```
#### Result
```
# Junction API
Source: https://docs.junction.com/api-details/junction-api
```
```
# List Audit Logs
Source: https://docs.turso.tech/api-reference/audit-logs/list
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.