<div dir="ltr">It didn't work on the CentOS 7 system because Chris pushed while I was switching VMs.<div><br></div><div>I now get the same output on CentOS 7 as on Rocky 9. It has sphinx-build 5.3.0</div><div><br></div><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 19, 2023 at 3:10 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Module: rtems-docs<br>
Branch: master<br>
Commit: e31a0b22fe43e0ec910678cdc4bdcf2be661a461<br>
Changeset: <a href="http://git.rtems.org/rtems-docs/commit/?id=e31a0b22fe43e0ec910678cdc4bdcf2be661a461" rel="noreferrer" target="_blank">http://git.rtems.org/rtems-docs/commit/?id=e31a0b22fe43e0ec910678cdc4bdcf2be661a461</a><br>
<br>
Author: Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>><br>
Date: Tue Dec 19 12:31:52 2023 +1100<br>
<br>
sphinx/style: Fix building with the latest sphinx<br>
<br>
Tested on sphinx 7.2, 6.1.3 AND 5.3.0<br>
<br>
Closes #4980<br>
<br>
---<br>
<br>
common/sphinx_rtd_theme_rtems/layout.html | 6 +++++-<br>
common/waf.py | 4 +---<br>
2 files changed, 6 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/common/sphinx_rtd_theme_rtems/layout.html b/common/sphinx_rtd_theme_rtems/layout.html<br>
index 0fe6c65..3542bea 100644<br>
--- a/common/sphinx_rtd_theme_rtems/layout.html<br>
+++ b/common/sphinx_rtd_theme_rtems/layout.html<br>
@@ -67,7 +67,11 @@<br>
{%- endblock %}<br>
<br>
{# CSS #}<br>
- <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /><br>
+ {%- if sphinx_version <= "5.9.0" -%}<br>
+ <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /><br>
+ {%- else %}<br>
+ <link rel="stylesheet" href="{{ pathto('_static/' + styles[-1], 1) }}" type="text/css" /><br>
+ {%- endif %}<br>
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" /><br>
{%- for css in css_files %}<br>
{%- if css|attr("rel") %}<br>
diff --git a/common/waf.py b/common/waf.py<br>
index 6efe038..5f811f6 100644<br>
--- a/common/waf.py<br>
+++ b/common/waf.py<br>
@@ -16,11 +16,9 @@ from waflib.Build import BuildContext<br>
import latex<br>
import conf<br>
<br>
-# Sphinx >= 6 are currently broken. <br>
# If you do not want to check for a maximum version, set it to None.<br>
sphinx_min_version = (1, 3)<br>
-sphinx_max_version = (5, 9)<br>
-#sphinx_max_version = None<br>
+sphinx_max_version = None<br>
<br>
def version_cmdline(ctx):<br>
return '-Drelease="%s" -Dversion="%s" -Drtems_major="%s" ' \<br>
<br>
_______________________________________________<br>
vc mailing list<br>
<a href="mailto:vc@rtems.org" target="_blank">vc@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/vc" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/vc</a><br>
</blockquote></div>