Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxtlabs/nuxt-llms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0
Choose a base ref
...
head repository: nuxtlabs/nuxt-llms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.1
Choose a head ref
  • 4 commits
  • 7 files changed
  • 3 contributors

Commits on Feb 24, 2025

  1. chore(release): v0.1.0

    farnabaz committed Feb 24, 2025
    Copy the full SHA
    b9f4da1 View commit details

Commits on Mar 22, 2025

  1. chore: rename llms_full.txt to llms-full.txt

    chore: rename `llms_full.txt` to `llms-full.txt`
    IO-Fire authored Mar 22, 2025
    Copy the full SHA
    c6cc516 View commit details
  2. fix: add charset=utf-8

    resolves #9
    atinux committed Mar 22, 2025
    Copy the full SHA
    dc786d7 View commit details
  3. chore: update deps

    atinux committed Mar 22, 2025
    Copy the full SHA
    6e0676d View commit details
Showing with 1,774 additions and 1,391 deletions.
  1. +33 −0 CHANGELOG.md
  2. +11 −11 README.md
  3. +11 −11 package.json
  4. +1,714 −1,364 pnpm-lock.yaml
  5. +3 −3 src/module.ts
  6. +1 −1 src/runtime/server/routes/{llms_full.txt.get.ts → llms-full.txt.get.ts}
  7. +1 −1 src/runtime/server/routes/llms.txt.get.ts
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
# Changelog


## v0.1.0

[compare changes](https://github.com/nuxtlabs/nuxt-llms/compare/v0.0.2...v0.1.0)

### 🚀 Enhancements

- Deprecate module hook and use nitro hooks ([#4](https://github.com/nuxtlabs/nuxt-llms/pull/4))

### 🩹 Fixes

- Readme typo ([#6](https://github.com/nuxtlabs/nuxt-llms/pull/6))

### 📖 Documentation

- Add image ([2cbbe90](https://github.com/nuxtlabs/nuxt-llms/commit/2cbbe90))
- Add docs about Nuxt Content integration ([7c26dd4](https://github.com/nuxtlabs/nuxt-llms/commit/7c26dd4))
- Update readme ([ca0aad8](https://github.com/nuxtlabs/nuxt-llms/commit/ca0aad8))

### 🌊 Types

- Export correct types in `package.json` ([60fbed3](https://github.com/nuxtlabs/nuxt-llms/commit/60fbed3))

### 🏡 Chore

- Remove unused code ([032a55e](https://github.com/nuxtlabs/nuxt-llms/commit/032a55e))
- **playground:** Setup ([ced2cf6](https://github.com/nuxtlabs/nuxt-llms/commit/ced2cf6))

### ❤️ Contributors

- Hugo Richard ([@HugoRCD](http://github.com/HugoRCD))
- Farnabaz <farnabaz@gmail.com>
- Sébastien Chopin ([@atinux](http://github.com/atinux))

## v0.0.2

[compare changes](https://github.com/nuxtlabs/nuxt-llms/compare/v0.0.1...v0.0.2)
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ Nuxt LLMs automatically generates [`llms.txt` markdown documentation](https://ll
## Features

- Generates & prerenders `/llms.txt` automatically
- Generate & prerenders `/llms_full.txt` when enabled
- Generate & prerenders `/llms-full.txt` when enabled
- Customizable sections directly from your `nuxt.config.ts`
- Integrates with Nuxt modules and your application via the runtime hooks system

@@ -84,9 +84,9 @@ That's it! You can visit `/llms.txt` to see the generated documentation ✨
- `description`: The description of the link
- `href`(required): The href of the link
- `notes`: The notes of the documentation. Notes are a special section which always appears at the end of the documentation. Notes are useful to add any information about the application or documentation itself.
- `full`: The `llms_full.txt` configuration. Setting this option will enable the `llms_full.txt` route.
- `title`: The title of the llms_full documentation
- `description`: The description of the llms_full documentation
- `full`: The `llms-full.txt` configuration. Setting this option will enable the `llms-full.txt` route.
- `title`: The title of the llms-full documentation
- `description`: The description of the llms-full documentation

## Documentation Formats

@@ -101,11 +101,11 @@ The `/llms.txt` route generates a concise, structured documentation that follows
- Links with titles, descriptions, and URLs
- Optional notes section

### llms_full.txt
### llms-full.txt

The `/llms_full.txt` route provides a more detailed, free-form documentation format. This is useful to reduce crawler traffic on your application and provide a more detailed documentation to your users and LLMs.
The `/llms-full.txt` route provides a more detailed, free-form documentation format. This is useful to reduce crawler traffic on your application and provide a more detailed documentation to your users and LLMs.

By default module does not generate the `llms_full.txt` route, you need to enable it by setting `full.title` and `full.description` in your `nuxt.config.ts`.
By default module does not generate the `llms-full.txt` route, you need to enable it by setting `full.title` and `full.description` in your `nuxt.config.ts`.

```ts
export default defineNuxtConfig({
@@ -135,9 +135,9 @@ This hook is called for every request to `/llms.txt`. Use this hook to modify th
- `options`: ModuleOptions - The module options that you can modify to add sections, links, etc.


#### `llms:generate:llms_full(event, options, contents)`
#### `llms:generate:llms-full(event, options, contents)`

This hook is called for every request to `/llms_full.txt`. It allows you to add custom content sections in any format.
This hook is called for every request to `/llms-full.txt`. It allows you to add custom content sections in any format.

**Parameters:**
- `event`: H3Event - The current request event
@@ -169,7 +169,7 @@ export default defineNitroPlugin((nitroApp) => {

// Method 2: Using the helper function
nitroApp.hooks.hook('llms:generate:full', (event, options, contents) => {
// Add detailed documentation to llms_full.txt
// Add detailed documentation to llms-full.txt
contents.push(`## API Authentication
### Bearer Token
@@ -225,7 +225,7 @@ export default defineNuxtModule({

### Nuxt Content

Nuxt Content ^3.2.0 comes with built-in support for LLMs documentation. You can use `nuxt-llms` with `@nuxt/content` to efficiently write content and documentation for your website and generate LLM-friendly documentation without extra effort. Content module uses `nuxt-llms` hooks and automatically adds all your contents into `llms.txt` and `llms_full.txt` documentation.
Nuxt Content ^3.2.0 comes with built-in support for LLMs documentation. You can use `nuxt-llms` with `@nuxt/content` to efficiently write content and documentation for your website and generate LLM-friendly documentation without extra effort. Content module uses `nuxt-llms` hooks and automatically adds all your contents into `llms.txt` and `llms-full.txt` documentation.

All you need is to install both modules and write your content files in the `content` directory.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-llms",
"version": "0.0.2",
"version": "0.1.0",
"description": "Generate llms.txt documentation for your Nuxt application",
"repository": {
"type": "git",
@@ -39,22 +39,22 @@
"verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
},
"dependencies": {
"@nuxt/kit": "^3.15.4"
"@nuxt/kit": "^3.16.1"
},
"devDependencies": {
"nuxt-llms": "link:.",
"@nuxt/devtools": "^2.1.0",
"@nuxt/eslint-config": "^1.1.0",
"@nuxt/devtools": "^2.3.1",
"@nuxt/eslint-config": "^1.2.0",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.15.4",
"@nuxt/test-utils": "^3.15.4",
"@nuxt/schema": "^3.16.1",
"@nuxt/test-utils": "^3.17.2",
"@types/node": "latest",
"changelogen": "^0.5.7",
"eslint": "^9.20.1",
"nuxt": "^3.15.4",
"changelogen": "^0.6.1",
"eslint": "^9.23.0",
"nuxt": "^3.16.1",
"typescript": "~5.6.0",
"vitest": "^3.0.6",
"vitest": "^3.0.9",
"vue-tsc": "^2.2.2"
},
"packageManager": "pnpm@10.4.1"
"packageManager": "pnpm@10.6.5"
}
Loading