From cf7b9eea089be7432c68b152fbbfdf9dfd629415 Mon Sep 17 00:00:00 2001 From: "liwenjun@kylinos.cn" Date: Thu, 17 Oct 2024 17:45:01 +0800 Subject: [PATCH] Backport upstream patch for fix build error --- debian/changelog | 6 ++++++ tests/test_builders.py | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f80eb10..6b0834d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sphinx-rtd-theme (2.0.0+dfsg-ok2) nile; urgency=medium + + * Backport upstream patch for fix build error. + + -- liwenjun Thu, 17 Oct 2024 17:42:19 +0800 + sphinx-rtd-theme (2.0.0+dfsg-ok1) nile; urgency=medium * Build for openKylin. diff --git a/tests/test_builders.py b/tests/test_builders.py index d3d3c51..184e416 100644 --- a/tests/test_builders.py +++ b/tests/test_builders.py @@ -37,10 +37,13 @@ def test_basic(): ) assert search in content elif isinstance(app.builder, SingleFileHTMLBuilder): + internal_ref = '#document-foo' + if sphinx.version_info[:3] < (7, 3, 0): + internal_ref = 'index.html' + internal_ref search = ( '' )