Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/eval/together_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion packaging/suse-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
34 changes: 34 additions & 0 deletions packaging/suse-docs/rancher-ai-1.2/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
The source tarball of suse-docs-mcp-rancher-ai-1.2: rancher/rancher-ai-product-docs at
the spec's revision with its submodule product-docs-common (the site's
attributes), without images, translations and other versions, as
rancher-ai-product-docs-SHORTREV.tar.xz. tools/suse-docs/source-tarball-antora
makes the tree the conversion reads, which is what CI builds from;
this service is written to make the same and has not been run. To
update: change the revision here and rev, shortrev and revdate in the
spec, then osc service manualrun.
-->
<services>
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/rancher/rancher-ai-product-docs.git</param>
<param name="revision">6c872577a6db7b3da64af6d15809f4c1b4651231</param>
<param name="filename">rancher-ai-product-docs</param>
<param name="version">6c87257</param>
<param name="submodules">enable</param>
<param name="exclude">dsc-style-bundle</param>
<param name="exclude">bin</param>
<param name="exclude">*/modules/de</param>
<param name="exclude">*/modules/es</param>
<param name="exclude">*/modules/fr</param>
<param name="exclude">*/modules/ja</param>
<param name="exclude">*/modules/pt</param>
<param name="exclude">*/modules/zh</param>
<param name="exclude">*/modules/en/images</param>
<param name="exclude">*/modules/en/attachments</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>
Original file line number Diff line number Diff line change
@@ -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
15 changes: 14 additions & 1 deletion packaging/suse-docs/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tools/suse-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 10 additions & 3 deletions tools/suse-docs/convert-antora
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -58,14 +59,20 @@ 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
product='Rancher AI' version=1.1 title='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
Expand Down Expand Up @@ -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."
Expand Down
Loading