Skip to content

Commit 8f1a939

Browse files
authored
Add LLM friendly documentation (llms.txt) (#103)
- Add llms.txt to docs/src so its included in static documentation website. - Also reference it in README.md - Add build script using fork of Documenter.jl to generate markdown output for creation of llms.txt
1 parent 49b30b8 commit 8f1a939

File tree

5 files changed

+506
-3
lines changed

5 files changed

+506
-3
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "gRPCClient"
22
uuid = "aaca4a50-36af-4a1d-b878-4c443f2061ad"
3-
authors = ["Carroll Vance <cs.vance@icloud.com>"]
43
version = "1.0.0"
4+
authors = ["Carroll Vance <cs.vance@icloud.com>"]
55

66
[deps]
77
FileWatching = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
@@ -10,14 +10,14 @@ PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1010
ProtoBuf = "3349acd9-ac6a-5e09-bcdb-63829b23a429"
1111

1212
[compat]
13-
julia = "1.10"
1413
FileWatching = "^1.10"
1514
LibCURL = "~0.6.4, 1"
1615
PrecompileTools = "^1.2"
1716
ProtoBuf = "~1.2.1"
17+
julia = "1.10"
1818

1919
[extras]
2020
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2121

2222
[targets]
23-
test = ["Test"]
23+
test = ["Test"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ gRPCClient.jl aims to be a production grade gRPC client emphasizing performance
1212
## Documentation
1313

1414
The documentation for gRPCClient.jl can be found [here](https://juliaio.github.io/gRPCClient.jl).
15+
LLM / agent friendly documentation is available in `docs/src/llms.txt`.
1516

1617
## Benchmarks
1718

docs/make_llms.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Documenter
2+
using gRPCClient
3+
4+
makedocs(
5+
sitename = "gRPCClient.jl",
6+
# NOTE: This is not implemented in upstream Documenter.jl
7+
# I maintain my own fork that I use in order to produce Markdown output
8+
# https://github.com/csvance/Documenter.jl/tree/markdown-output
9+
format = Documenter.MarkdownDoc(),
10+
modules = [gRPCClient]
11+
)

docs/make_llms.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
julia --project=docs << EOF
4+
using Pkg
5+
Pkg.add(url="https://github.com/csvance/Documenter.jl", rev="markdown-output")
6+
Pkg.develop(path=".")
7+
EOF
8+
9+
julia --project=docs docs/make_llms.jl
10+
cp docs/build/index.md docs/src/llms.txt
11+
12+
julia --project=docs << EOF
13+
using Pkg
14+
Pkg.add("Documenter")
15+
Pkg.rm("gRPCClient")
16+
EOF

0 commit comments

Comments
 (0)