From 0a99775b84e5d80d912dddb07a153f1e77414c8b Mon Sep 17 00:00:00 2001 From: enyst <6080905+enyst@users.noreply.github.com> Date: Mon, 9 Mar 2026 03:48:44 +0000 Subject: [PATCH 1/3] docs: sync llms context files --- llms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llms.txt b/llms.txt index 849a69c4..dbd863d2 100644 --- a/llms.txt +++ b/llms.txt @@ -2,7 +2,7 @@ > LLM-friendly index of OpenHands documentation (V1). Legacy V0 docs pages are intentionally excluded. -The sections below intentionally separate OpenHands applications documentation (Web App Server / Cloud / CLI) +The sections below intentionally separate OpenHands product documentation (Web App Server / Cloud / CLI) from the OpenHands Software Agent SDK. ## OpenHands Software Agent SDK From ceee7413a59b37c31bfebdb738b0b51a3b0cbbf1 Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 9 Mar 2026 08:29:03 +0000 Subject: [PATCH 2/3] fix: restore applications wording in llms generator Co-authored-by: openhands --- llms.txt | 2 +- scripts/generate-llms-files.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llms.txt b/llms.txt index dbd863d2..849a69c4 100644 --- a/llms.txt +++ b/llms.txt @@ -2,7 +2,7 @@ > LLM-friendly index of OpenHands documentation (V1). Legacy V0 docs pages are intentionally excluded. -The sections below intentionally separate OpenHands product documentation (Web App Server / Cloud / CLI) +The sections below intentionally separate OpenHands applications documentation (Web App Server / Cloud / CLI) from the OpenHands Software Agent SDK. ## OpenHands Software Agent SDK diff --git a/scripts/generate-llms-files.py b/scripts/generate-llms-files.py index 543456af..aa29be75 100755 --- a/scripts/generate-llms-files.py +++ b/scripts/generate-llms-files.py @@ -228,7 +228,7 @@ def build_llms_txt(pages: list[DocPage]) -> str: "", "> LLM-friendly index of OpenHands documentation (V1). Legacy V0 docs pages are intentionally excluded.", "", - "The sections below intentionally separate OpenHands product documentation (Web App Server / Cloud / CLI)", + "The sections below intentionally separate OpenHands applications documentation (Web App Server / Cloud / CLI)", "from the OpenHands Software Agent SDK.", "", ] From f93ec5f9aa9dd46e6a4aa19b155d1028baf69b87 Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 9 Mar 2026 09:09:15 +0000 Subject: [PATCH 3/3] test: guard llms generator wording Co-authored-by: openhands --- tests/test_generate_llms_files.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/test_generate_llms_files.py diff --git a/tests/test_generate_llms_files.py b/tests/test_generate_llms_files.py new file mode 100644 index 00000000..775b8352 --- /dev/null +++ b/tests/test_generate_llms_files.py @@ -0,0 +1,30 @@ +"""Regression tests for the llms file generator.""" + +import importlib.util +import sys +from pathlib import Path + + +SCRIPT_PATH = Path(__file__).parent.parent / 'scripts' / 'generate-llms-files.py' +SPEC = importlib.util.spec_from_file_location('generate_llms_files', SCRIPT_PATH) +assert SPEC is not None +assert SPEC.loader is not None +MODULE = importlib.util.module_from_spec(SPEC) +sys.modules[SPEC.name] = MODULE +SPEC.loader.exec_module(MODULE) + + +class TestGenerateLlmsFiles: + """Tests for the llms file generator script.""" + + def test_llms_intro_uses_applications_wording(self): + """The llms intro should continue to use 'applications documentation'.""" + pages = MODULE.iter_doc_pages() + + llms_text = MODULE.build_llms_txt(pages) + + assert ( + 'The sections below intentionally separate OpenHands applications documentation ' + '(Web App Server / Cloud / CLI)' in llms_text + ) + assert 'OpenHands product documentation' not in llms_text