jekyll-llmstxt 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '00811e8487b99ebddc04844bd4e49544e2b44e7545e00ecda2c05241eb423569'
4
- data.tar.gz: 631fa6d11228849db612d505b7b90e96965598b2ab5628b84ad30b9ded26a554
3
+ metadata.gz: 2bc1e280a53d039e9d26c8bb4a992aef8efd779e80c5c3ed6827387b87501bb8
4
+ data.tar.gz: a93fac23eb5ec25eae2823a45d2d9bff8b42bf992fa25f73338ed0337f88d232
5
5
  SHA512:
6
- metadata.gz: 810f1671477c8c5e4db0a23a450787d73a23657ac0f02107612ccac58d875c6f091eb98b1b22dbc910869fefc2c1efee66b2094f329c0fb12b019b968ba5c85b
7
- data.tar.gz: 94d98a6424645307841b8e8adeece7bedcb052569eaf9e31f4d66eb56802e5e953343b9bada51dbe07e3daf6d9c9d19294365103c65c09e1faee8cee3ffe971a
6
+ metadata.gz: 599ad8b8f33ab8de9e42122765ed19656d90d038eeb2fcf4f8beba9ecad80437a8f590955a873bc2c3efdafd1df222ca2ea0d888463bdd20a430be23b4fe4fe7
7
+ data.tar.gz: eaa955f51c2f48f819b93ed5de73aa2cd78103f1893d39b10018549eea6ed527c45d4987ac91355383f61fb3d9fba289d7dd4c21dd0a728f74ac93139c592c89
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # Jekyll::Llmstxt
1
+ # jekyll-llmstxt
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jekyll/llmstxt`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This is a Jekyll plugin that makes your site more LLM-friendly according to the
4
+ spec from [llmstxt.org](https://llmstxt.org). It generates a `/llms.txt` file
5
+ that contains basic information about your site and links to all posts in thei
6
+ raw markdown format.
6
7
 
7
8
  ## Installation
8
9
 
@@ -19,21 +20,3 @@ And then execute:
19
20
  Or install it yourself as:
20
21
 
21
22
  $ gem install jekyll-llmstxt
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-llmstxt.
36
-
37
- ## License
38
-
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Llmstxt
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -13,7 +13,8 @@ module Jekyll
13
13
  file.content += "## Posts:\n\n"
14
14
 
15
15
  site.posts.docs.each do |post|
16
- file.content += "- [#{post.data["title"]}](#{post.url}index.md)\n"
16
+ post_url = site.baseurl ? File.join(site.baseurl, post.url) : post.url
17
+ file.content += "- [#{post.data["title"]}](#{post_url}index.md)\n"
17
18
  end
18
19
 
19
20
  file.data["layout"] = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-llmstxt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Gao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-30 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll