Generate the llms.txt file for the hugo website
Project description
A simple utility to generate llms.txt for hugo website.
Usage
hugo2llmtxt --help
Usage: hugo2llmtxt.py [OPTIONS] FILE_PATH OUPUT_PATH RENDER_CONTENT
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * file_path TEXT Path to the CSV file obtained by running `hugo list all > hugo_list.all.csv` [default: None] [required] │
│ * ouput_path TEXT Path to the output text file like `static/llms.txt` [default: None] [required] │
│ * render_content Whether to output entire blog content to entire file. Pass true for `llmsfull.txt` [default: None] [required] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Run
- Make sure to run
hugo list all > hugo_list.csvthat contains all the contents in the CSV file. uvx --from hugo2llmtxt hugo2llmtxt hugo_list.csv static/llms.txt falseto generate the llms.txt file.uvx --from hugo2llmtxt hugo2llmtxt hugo_list.csv static/llms-full.txt false- These command should generate the llms.txt and llm-full.txt files.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hugo2llmtxt-0.1.4.tar.gz.
File metadata
- Download URL: hugo2llmtxt-0.1.4.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff281b3d90a6e11ddd16086e7c540b6501e38c38a21fac12d18328ce392f342f
|
|
| MD5 |
1da6492c8f9a1c6eae2f0acc6c9e0fb9
|
|
| BLAKE2b-256 |
95564e2495f6b8dc65e740f0cee80ed2ceec1ed8a8623eec296e9dbb0a453bbf
|
Provenance
The following attestation bundles were made for hugo2llmtxt-0.1.4.tar.gz:
Publisher:
workflow.yaml on kracekumar/hugo2llmtxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hugo2llmtxt-0.1.4.tar.gz -
Subject digest:
ff281b3d90a6e11ddd16086e7c540b6501e38c38a21fac12d18328ce392f342f - Sigstore transparency entry: 184529603
- Sigstore integration time:
-
Permalink:
kracekumar/hugo2llmtxt@1c051b8facb9c39b832d21ed6e400506f5271016 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/kracekumar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@1c051b8facb9c39b832d21ed6e400506f5271016 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hugo2llmtxt-0.1.4-py3-none-any.whl.
File metadata
- Download URL: hugo2llmtxt-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6787a984e6f172d7883836ec15eb74bd6568a0b1f2a01314e9e38e73ad717e0f
|
|
| MD5 |
97744f86d38726cc586cdb0090ae8acf
|
|
| BLAKE2b-256 |
903baae80126ba04ec8bbbddaa86c0ed15ee6095d8b494a55a2ecf10a00ef89e
|
Provenance
The following attestation bundles were made for hugo2llmtxt-0.1.4-py3-none-any.whl:
Publisher:
workflow.yaml on kracekumar/hugo2llmtxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hugo2llmtxt-0.1.4-py3-none-any.whl -
Subject digest:
6787a984e6f172d7883836ec15eb74bd6568a0b1f2a01314e9e38e73ad717e0f - Sigstore transparency entry: 184529609
- Sigstore integration time:
-
Permalink:
kracekumar/hugo2llmtxt@1c051b8facb9c39b832d21ed6e400506f5271016 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/kracekumar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@1c051b8facb9c39b832d21ed6e400506f5271016 -
Trigger Event:
push
-
Statement type: