Skip to main content

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.csv that contains all the contents in the CSV file.
  • uvx --from hugo2llmtxt hugo2llmtxt hugo_list.csv static/llms.txt false to 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

hugo2llmtxt-0.1.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hugo2llmtxt-0.1.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for hugo2llmtxt-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ff281b3d90a6e11ddd16086e7c540b6501e38c38a21fac12d18328ce392f342f
MD5 1da6492c8f9a1c6eae2f0acc6c9e0fb9
BLAKE2b-256 95564e2495f6b8dc65e740f0cee80ed2ceec1ed8a8623eec296e9dbb0a453bbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo2llmtxt-0.1.4.tar.gz:

Publisher: workflow.yaml on kracekumar/hugo2llmtxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for hugo2llmtxt-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6787a984e6f172d7883836ec15eb74bd6568a0b1f2a01314e9e38e73ad717e0f
MD5 97744f86d38726cc586cdb0090ae8acf
BLAKE2b-256 903baae80126ba04ec8bbbddaa86c0ed15ee6095d8b494a55a2ecf10a00ef89e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugo2llmtxt-0.1.4-py3-none-any.whl:

Publisher: workflow.yaml on kracekumar/hugo2llmtxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page