From 758819406248808b98e773e1489d18a88a02119b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 13:23:03 +0000 Subject: [PATCH] Package Rancher AI 1.2's documentation, a prerelease MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit suse-docs-mcp-rancher-ai-1.2: the pages of docs/version-1.2.0 of rancher/rancher-ai-product-docs, which the sources mark a prerelease (-dev); the package's version is 1.2.0~dev+git…, and the collection's title says so. Built and smoke-tested in CI with the others, and one of the collections of the eval served together (thirteen; the counts are the same). Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01NWLUBP1bFcMfsbUeenRe2W --- .github/workflows/ci.yml | 4 +- CHANGELOG.md | 6 ++ README.md | 2 +- docs/architecture.md | 7 +- internal/eval/together_test.go | 2 +- packaging/suse-docs/README.md | 3 +- packaging/suse-docs/rancher-ai-1.2/_service | 34 ++++++++ .../suse-docs-mcp-rancher-ai-1.2.spec | 77 +++++++++++++++++++ packaging/suse-docs/smoke-test.sh | 15 +++- tools/suse-docs/README.md | 1 + tools/suse-docs/convert-antora | 13 +++- 11 files changed, 152 insertions(+), 12 deletions(-) create mode 100644 packaging/suse-docs/rancher-ai-1.2/_service create mode 100644 packaging/suse-docs/rancher-ai-1.2/suse-docs-mcp-rancher-ai-1.2.spec diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54eeb46..d785edb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,9 +124,9 @@ jobs: done # The cloud-native products: a source tarball each, of the product's # documentation repository (AsciiDoc, converted by the same package). - - name: Documentation packages (suse-docs-mcp-rancher-2.15, -rke2, -k3s, -suse-virtualization-1.8, -rancher-ai-1.1) + - name: Documentation packages (suse-docs-mcp-rancher-2.15, -rke2, -k3s, -suse-virtualization-1.8, -rancher-ai-1.1, -rancher-ai-1.2) run: | - for p in rancher-2.15 rke2 k3s suse-virtualization-1.8 rancher-ai-1.1; do + for p in rancher-2.15 rke2 k3s suse-virtualization-1.8 rancher-ai-1.1 rancher-ai-1.2; do cp "$(PRODUCT=$p tools/suse-docs/source-tarball-antora)" ~/rpmbuild/SOURCES/ rpmbuild -bb --define "_topdir $HOME/rpmbuild" packaging/suse-docs/$p/suse-docs-mcp-$p.spec rpmlint -r /tmp/rpmlintrc ~/rpmbuild/RPMS/noarch/suse-docs-mcp-$p-[0-9]*.rpm diff --git a/CHANGELOG.md b/CHANGELOG.md index a44b155..9610223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ Newest first. Each release's section is its GitHub release notes and its OBS changelog entry (packaging/suse/README.md). +## Unreleased + +- New package: `suse-docs-mcp-rancher-ai-1.2`, the documentation of + Rancher AI 1.2 as its sources have it before the release (a + prerelease). + ## v0.4.0 — 2026-11-17 SUSE's cloud-native products (docs/architecture.md §18) diff --git a/README.md b/README.md index 8545133..65ca5a6 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ SLES 16 ([packaging/suse](packaging/suse/README.md)), ranked search image. `mcp-docs-convert` converts SUSE's documentation (documentation.suse.com) from its DocBook sources: all of SLES, SLE HA and SLES for SAP 16.0 and 16.1, and SUSE Linux Micro 6.0, 6.1 and 6.2 ([tools/suse-docs](tools/suse-docs/README.md)), packaged as -`suse-docs-mcp-sles-16.0`, `suse-docs-mcp-sle-ha-16.0`, `suse-docs-mcp-sles-sap-16.0`, the same for 16.1, and `suse-docs-mcp-sle-micro`; and, from their AsciiDoc (Antora) sources, SUSE Rancher Prime 2.15, RKE2, K3s, SUSE Virtualization 1.8 and Rancher AI 1.1 (`suse-docs-mcp-rancher-2.15`, `-rke2`, `-k3s`, `-suse-virtualization-1.8`, `-rancher-ai-1.1`) ([packaging/suse-docs](packaging/suse-docs/README.md)); other formats than +`suse-docs-mcp-sles-16.0`, `suse-docs-mcp-sle-ha-16.0`, `suse-docs-mcp-sles-sap-16.0`, the same for 16.1, and `suse-docs-mcp-sle-micro`; and, from their AsciiDoc (Antora) sources, SUSE Rancher Prime 2.15, RKE2, K3s, SUSE Virtualization 1.8 and Rancher AI 1.1 and 1.2 (`suse-docs-mcp-rancher-2.15`, `-rke2`, `-k3s`, `-suse-virtualization-1.8`, `-rancher-ai-1.1`, `-rancher-ai-1.2`) ([packaging/suse-docs](packaging/suse-docs/README.md)); other formats than Markdown are designed, not built. See [docs/architecture.md](docs/architecture.md). How to write documentation that agents read cheaply, through mcp-docs diff --git a/docs/architecture.md b/docs/architecture.md index 162fc99..27c5f83 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -1886,8 +1886,9 @@ The latest released version of each, at pinned revisions | `k3s` | SUSE Rancher Prime: K3s | `k3s-product-docs`, `docs/latest` | 70 | 2.4 MiB | | `suse-virtualization-1.8` | SUSE Virtualization (Harvester) 1.8 | `harvester-product-docs`, `versions/v1.8` | 129 | 1.3 MiB | | `rancher-ai-1.1` | Rancher AI 1.1 | `rancher-ai-product-docs`, `docs/version-1.1.0` | 12 | 87 KiB | +| `rancher-ai-1.2` | Rancher AI 1.2, not released yet (the sources mark it a prerelease) | `rancher-ai-product-docs`, `docs/version-1.2.0` | 12 | 83 KiB | -All five are packaged (`packaging/suse-docs`), under the Apache +All six are packaged (`packaging/suse-docs`), under the Apache License 2.0. The first four repositories carry it; for `rancher-ai-product-docs` it is SUSE's word, and a pull request adds the file: until the package's revision has it, the package states the @@ -1948,7 +1949,7 @@ makes, and were not run. ### 18.4 Served with the others -Twelve collections together (the seven of §17.3 and the five packaged +Thirteen collections together (the seven of §17.3 and the six packaged here; 100 questions, none of Rancher AI's and none naming a collection): 76 answered by the first result. Two changes came of it: @@ -1965,7 +1966,7 @@ What it costs: on their systems (§17.4), the SLE collections answer 109 of 128 first, from 110, and the first result is the system's 101 times, from 102. And the pairs of spellings (§17.5, asked on a SLES 16.1 system with SLE HA) agree on 5 of 12, from 8 with the seven -collections: "back up the system" has more answers among twelve +collections: "back up the system" has more answers among thirteen collections than one, and which is first depends on less. Kubernetes' own questions ("upload a VM image", "rotate certificates of a cluster") are the ones not answered first: several diff --git a/internal/eval/together_test.go b/internal/eval/together_test.go index b541f94..35e51d4 100644 --- a/internal/eval/together_test.go +++ b/internal/eval/together_test.go @@ -47,7 +47,7 @@ func familyOf(collection string) string { return versionSuffix.ReplaceAllString( // togetherAll are the collections the floors are of: those of the // packages in packaging/suse-docs, at their pinned revisions. -var togetherAll = []string{"k3s", "rancher-2.15", "rancher-ai-1.1", "rke2", "sle-ha-16.0", "sle-ha-16.1", "sle-micro", "sles-16.0", "sles-16.1", +var togetherAll = []string{"k3s", "rancher-2.15", "rancher-ai-1.1", "rancher-ai-1.2", "rke2", "sle-ha-16.0", "sle-ha-16.1", "sle-micro", "sles-16.0", "sles-16.1", "sles-sap-16.0", "sles-sap-16.1", "suse-virtualization-1.8"} // tally is what a run of questions came to. diff --git a/packaging/suse-docs/README.md b/packaging/suse-docs/README.md index 2cc09e7..d430aaf 100644 --- a/packaging/suse-docs/README.md +++ b/packaging/suse-docs/README.md @@ -20,8 +20,9 @@ air-gapped, updated with the package. | `suse-docs-mcp-k3s` ([k3s](k3s)) | SUSE Rancher Prime: K3s, latest, 70 pages | rancher/k3s-product-docs | | `suse-docs-mcp-suse-virtualization-1.8` ([suse-virtualization-1.8](suse-virtualization-1.8)) | SUSE Virtualization (Harvester) 1.8, 129 pages | rancher/harvester-product-docs | | `suse-docs-mcp-rancher-ai-1.1` ([rancher-ai-1.1](rancher-ai-1.1)) | Rancher AI 1.1, 12 pages | rancher/rancher-ai-product-docs | +| `suse-docs-mcp-rancher-ai-1.2` ([rancher-ai-1.2](rancher-ai-1.2)) | Rancher AI 1.2, 12 pages; not released yet, the sources' prerelease (the package's version is `1.2.0~dev+git…`) | rancher/rancher-ai-product-docs | -The last five are converted from AsciiDoc +The last six are converted from AsciiDoc (`tools/suse-docs/convert-antora`), a document per page; their license is the Apache License 2.0 (Rancher AI's repository has no LICENSE file yet at the package's revision, so that package does not install one; diff --git a/packaging/suse-docs/rancher-ai-1.2/_service b/packaging/suse-docs/rancher-ai-1.2/_service new file mode 100644 index 0000000..fc4139a --- /dev/null +++ b/packaging/suse-docs/rancher-ai-1.2/_service @@ -0,0 +1,34 @@ + + + + git + https://github.com/rancher/rancher-ai-product-docs.git + 6c872577a6db7b3da64af6d15809f4c1b4651231 + rancher-ai-product-docs + 6c87257 + enable + dsc-style-bundle + bin + */modules/de + */modules/es + */modules/fr + */modules/ja + */modules/pt + */modules/zh + */modules/en/images + */modules/en/attachments + + + *.tar + xz + + diff --git a/packaging/suse-docs/rancher-ai-1.2/suse-docs-mcp-rancher-ai-1.2.spec b/packaging/suse-docs/rancher-ai-1.2/suse-docs-mcp-rancher-ai-1.2.spec new file mode 100644 index 0000000..55673a2 --- /dev/null +++ b/packaging/suse-docs/rancher-ai-1.2/suse-docs-mcp-rancher-ai-1.2.spec @@ -0,0 +1,77 @@ +# +# spec file for package suse-docs-mcp-rancher-ai-1.2 +# +# SUSE's documentation of Rancher AI 1.2 for agents: the pages of +# documentation.suse.com/cloudnative, converted at build time from their +# AsciiDoc sources (rancher/rancher-ai-product-docs, built with Antora) into a +# collection that mcp-docs serves; see packaging/suse-docs/README.md. +# The source tarball comes from tools/suse-docs/source-tarball-antora +# (or the _service file), at the revision below. +# The documentation is licensed under the Apache License 2.0; at the +# revision below its repository does not have the LICENSE file yet (a +# pull request adds it). Once it has: set the revision to one with the +# file, add "%%license LICENSE" and remove the collection's copy in +# %install, as the other cloud-native products' packages do. +# + +%define rev 6c872577a6db7b3da64af6d15809f4c1b4651231 +%define shortrev 6c87257 +%define revdate 20261105 +%define coll rancher-ai-1.2 +%define repo rancher-ai-product-docs + +Name: suse-docs-mcp-rancher-ai-1.2 +# Not released yet: the sources mark the version a prerelease (-dev). +Version: 1.2.0~dev+git%{revdate}.%{shortrev} +Release: 0 +Summary: Rancher AI 1.2 documentation for agents, served by mcp-docs +License: Apache-2.0 +Group: Documentation/Other +URL: https://documentation.suse.com/cloudnative/rancher-ai/1.2.0/en/ +Source0: %{repo}-%{shortrev}.tar.xz +BuildRequires: mcp-docs-convert +BuildArch: noarch + +%description +The documentation of Rancher AI 1.2 from +documentation.suse.com/cloudnative, as a collection of Markdown documents +for mcp-docs, the MCP server that gives agents documentation a section +at a time: Liz, the Rancher AI assistant: installing and configuring it, models, +how-tos for administrators and users, and release notes, one document +per page under the ids of the site's sections, each linked to its page +there. + +Converted at build time from the documentation's AsciiDoc sources +(rancher/%{repo}, revision %{shortrev}). Without mcp-docs the files +do nothing. + +%prep +%autosetup -n %{repo}-%{shortrev} + +%build +PRODUCT=%{coll} SRC=$PWD REV=%{rev} %{_datadir}/mcp-docs-convert/suse-docs/convert-antora \ + build/%{coll} %{_datadir}/mcp-docs/docs/suse/%{coll} + +%install +install -d %{buildroot}%{_datadir}/mcp-docs/docs/suse %{buildroot}%{_datadir}/mcp-docs/collections.d +cp -a build/%{coll} %{buildroot}%{_datadir}/mcp-docs/docs/suse/%{coll} +mv %{buildroot}%{_datadir}/mcp-docs/docs/suse/%{coll}/%{coll}.yaml %{buildroot}%{_datadir}/mcp-docs/collections.d/%{coll}.yaml + +%check +d=%{buildroot}%{_datadir}/mcp-docs/docs/suse/%{coll} +test -s "$d/mcp-docs.index" +test "$(find "$d" -name '*.md' | wc -l)" -ge 10 +grep -qx 'root: %{_datadir}/mcp-docs/docs/suse/%{coll}' %{buildroot}%{_datadir}/mcp-docs/collections.d/%{coll}.yaml +grep -q '^source: "https://documentation.suse.com/cloudnative/rancher-ai/1.2.0/en/quick-start.html"' \ + "$d/quick-start.md" +grep -q 'revision %{shortrev}' "$d/README.md" + +%files +%dir %{_datadir}/mcp-docs +%dir %{_datadir}/mcp-docs/collections.d +%dir %{_datadir}/mcp-docs/docs +%dir %{_datadir}/mcp-docs/docs/suse +%{_datadir}/mcp-docs/collections.d/%{coll}.yaml +%{_datadir}/mcp-docs/docs/suse/%{coll} + +%changelog diff --git a/packaging/suse-docs/smoke-test.sh b/packaging/suse-docs/smoke-test.sh index 2f7ce29..c0b1d72 100755 --- a/packaging/suse-docs/smoke-test.sh +++ b/packaging/suse-docs/smoke-test.sh @@ -8,7 +8,7 @@ # PACKAGE: suse-docs-mcp-sles-16.0 (the default), suse-docs-mcp-sle-ha-16.0, # suse-docs-mcp-sles-sap-16.0, the same for 16.1, suse-docs-mcp-sle-micro, # or one of the cloud-native products': suse-docs-mcp-rancher-2.15, -# -rke2, -k3s, -suse-virtualization-1.8, -rancher-ai-1.1. +# -rke2, -k3s, -suse-virtualization-1.8, -rancher-ai-1.1, -rancher-ai-1.2. set -eu pkg=${1:-suse-docs-mcp-sles-16.0} @@ -125,6 +125,19 @@ suse-docs-mcp-rancher-ai-1.1) } answers='rancher-ai-1.1/quick-start.md rancher-ai-1.1/reference/troubleshooting.md +Install the UI extension' + ;; +suse-docs-mcp-rancher-ai-1.2) + coll=rancher-ai-1.2 + title='Rancher AI 1.2 (prerelease)' + owned=quick-start.md + calls() { + call 2 find_sections '{"query":"install Liz, the Rancher AI assistant","collection":"rancher-ai-1.2"}' + call 3 find_sections '{"query":"troubleshooting","collection":"rancher-ai-1.2"}' + call 4 read_section '{"doc":"rancher-ai-1.2/quick-start.md#_install_the_ui_extension"}' + } + answers='rancher-ai-1.2/quick-start.md +rancher-ai-1.2/reference/troubleshooting.md Install the UI extension' ;; suse-docs-mcp-suse-virtualization-1.8) diff --git a/tools/suse-docs/README.md b/tools/suse-docs/README.md index 57a3275..5b9210a 100644 --- a/tools/suse-docs/README.md +++ b/tools/suse-docs/README.md @@ -123,6 +123,7 @@ PRODUCT=rke2 tools/suse-docs/convert-antora PRODUCT=k3s tools/suse-docs/convert-antora PRODUCT=suse-virtualization-1.8 tools/suse-docs/convert-antora PRODUCT=rancher-ai-1.1 tools/suse-docs/convert-antora +PRODUCT=rancher-ai-1.2 tools/suse-docs/convert-antora # not released yet: a prerelease ``` It fetches the repository into `build/`, and the site's attributes diff --git a/tools/suse-docs/convert-antora b/tools/suse-docs/convert-antora index 08ec1dc..9c76013 100755 --- a/tools/suse-docs/convert-antora +++ b/tools/suse-docs/convert-antora @@ -10,6 +10,7 @@ # k3s SUSE Rancher Prime: K3s (the same) # suse-virtualization-1.8 SUSE Virtualization 1.8 (Harvester) # rancher-ai-1.1 Rancher AI 1.1 +# rancher-ai-1.2 Rancher AI 1.2 (not released yet: its sources are a prerelease) # # PRODUCT=... tools/suse-docs/convert-antora [OUT [ROOT]] # PRODUCT=... tools/suse-docs/convert-antora --sources DIR @@ -28,7 +29,7 @@ # pinned one). set -eu -name=${PRODUCT:?convert-antora: set PRODUCT (rancher-2.15, rke2, k3s, suse-virtualization-1.8, rancher-ai-1.1)} +name=${PRODUCT:?convert-antora: set PRODUCT (rancher-2.15, rke2, k3s, suse-virtualization-1.8, rancher-ai-1.1, rancher-ai-1.2)} shared= navonly= case $name in @@ -58,6 +59,12 @@ suse-virtualization-1.8) product='SUSE Virtualization' version=1.8 title='SUSE Virtualization 1.8' about='installing and upgrading SUSE Virtualization (Harvester), hosts, virtual machines and images, networking, storage, the integration with Rancher, add-ons, troubleshooting' ;; +rancher-ai-1.2) + repo=rancher-ai-product-docs rev=6c872577a6db7b3da64af6d15809f4c1b4651231 common=a703771967f0ea1155d2f3ead98ab92d1520ccce + start=docs/version-1.2.0 shared=shared component=rancher-ai site=1.2.0 + product='Rancher AI' version=1.2 title='Rancher AI 1.2 (prerelease)' + about='Liz, the Rancher AI assistant, in the version in development: installing and configuring it, models, how-tos for administrators and users' + ;; rancher-ai-1.1) repo=rancher-ai-product-docs rev=6c872577a6db7b3da64af6d15809f4c1b4651231 common=a703771967f0ea1155d2f3ead98ab92d1520ccce start=docs/version-1.1.0 shared=shared component=rancher-ai site=1.1.0 @@ -65,7 +72,7 @@ rancher-ai-1.1) about='Liz, the Rancher AI assistant: installing and configuring it, models, how-tos for administrators and users' ;; *) - echo "convert-antora: unknown PRODUCT $name (rancher-2.15, rke2, k3s, suse-virtualization-1.8, rancher-ai-1.1)" >&2 + echo "convert-antora: unknown PRODUCT $name (rancher-2.15, rke2, k3s, suse-virtualization-1.8, rancher-ai-1.1, rancher-ai-1.2)" >&2 exit 2 ;; esac @@ -126,7 +133,7 @@ if [ -d "$repodir/cmd/mcp-docs-convert" ]; then fi license='Copyright SUSE LLC and contributors; licensed under the Apache License 2.0.' -if [ ! -f "$src/LICENSE" ] && [ "$name" != rancher-ai-1.1 ]; then +if [ ! -f "$src/LICENSE" ] && [ "$repo" != rancher-ai-product-docs ]; then # Rancher AI's documentation is under the Apache License 2.0; its # repository has no LICENSE file yet at the pinned revision. license="The sources' repository states no license."