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 +4 -4
- data/README.md +5 -22
- data/lib/jekyll-llmstxt/version.rb +1 -1
- data/lib/jekyll-llmstxt.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bc1e280a53d039e9d26c8bb4a992aef8efd779e80c5c3ed6827387b87501bb8
|
4
|
+
data.tar.gz: a93fac23eb5ec25eae2823a45d2d9bff8b42bf992fa25f73338ed0337f88d232
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 599ad8b8f33ab8de9e42122765ed19656d90d038eeb2fcf4f8beba9ecad80437a8f590955a873bc2c3efdafd1df222ca2ea0d888463bdd20a430be23b4fe4fe7
|
7
|
+
data.tar.gz: eaa955f51c2f48f819b93ed5de73aa2cd78103f1893d39b10018549eea6ed527c45d4987ac91355383f61fb3d9fba289d7dd4c21dd0a728f74ac93139c592c89
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# jekyll-llmstxt
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
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).
|
data/lib/jekyll-llmstxt.rb
CHANGED
@@ -13,7 +13,8 @@ module Jekyll
|
|
13
13
|
file.content += "## Posts:\n\n"
|
14
14
|
|
15
15
|
site.posts.docs.each do |post|
|
16
|
-
|
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.
|
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
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|