Skip to content

Commit b1ed866

Browse files
committed
add llms.txt
1 parent 055d311 commit b1ed866

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/pages.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ jobs:
6464
UV_SYSTEM_RESOLVE: "0"
6565
run: uv run --project . sphinx-build -M html . _build
6666

67+
- name: Build llms.txt
68+
working-directory: docs
69+
env:
70+
UV_SYSTEM_RESOLVE: "0"
71+
run: |
72+
uv run --project . sphinx-build -M text . _build
73+
find _build/text -name '*.txt' -print | sort | xargs -r cat > _build/llms.txt
74+
cp _build/llms.txt _build/html/llms.txt
75+
6776
- name: Upload artifact
6877
uses: actions/upload-pages-artifact@v3
6978
with:

docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ OntoEnv Documentation
33

44
`OntoEnv` is a lightweight environment manager for RDF ontologies. The project ships a Rust core, a Python package, and a CLI so you can fetch, inspect, and reuse ontology imports from scripts or the command line.
55

6+
Need a plain-text snapshot for LLM ingestion? Grab `llms.txt <llms.txt>`_, a concatenated dump of the rendered docs.
7+
68
.. toctree::
79
:maxdepth: 2
810
:caption: Contents
911

1012
getting-started
1113
python-api/index
1214
cli/index
13-

0 commit comments

Comments
 (0)