forked from pool/python-sphinx-tabs
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6207cbf45a | |||
| 0b34aca051 | |||
| 2398b2a699 | |||
| 0a9984a5bb | |||
| febc2d8238 | |||
| 0d826eaabe |
563
docutils-0.22.patch
Normal file
563
docutils-0.22.patch
Normal file
@@ -0,0 +1,563 @@
|
||||
From 1df38a85fdf70a4d19001ca862a3d7d0c05a9214 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Shachnev <mitya57@gmail.com>
|
||||
Date: Sat, 27 Sep 2025 13:39:13 +0300
|
||||
Subject: [PATCH 1/2] Fix KeyError: 'backrefs' with Docutils 0.22
|
||||
|
||||
That attribute is no longer present since this Docutils commit:
|
||||
https://sourceforge.net/p/docutils/code/9684/
|
||||
|
||||
Fixes #206.
|
||||
---
|
||||
sphinx_tabs/tabs.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: sphinx-tabs-3.4.7/sphinx_tabs/tabs.py
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/sphinx_tabs/tabs.py
|
||||
+++ sphinx-tabs-3.4.7/sphinx_tabs/tabs.py
|
||||
@@ -66,7 +66,7 @@ def visit(translator, node):
|
||||
attrs.pop("ids")
|
||||
attrs.pop("names")
|
||||
attrs.pop("dupnames")
|
||||
- attrs.pop("backrefs")
|
||||
+ attrs.pop("backrefs", None)
|
||||
text = translator.starttag(node, node.tagname, **attrs)
|
||||
translator.body.append(text.strip())
|
||||
|
||||
Index: sphinx-tabs-3.4.7/tests/conftest.py
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/conftest.py
|
||||
+++ sphinx-tabs-3.4.7/tests/conftest.py
|
||||
@@ -2,6 +2,7 @@ import os
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
from bs4 import BeautifulSoup
|
||||
+import docutils
|
||||
import sphinx
|
||||
|
||||
from sphinx_tabs.tabs import JS_FILES, CSS_FILES
|
||||
@@ -132,6 +133,9 @@ def get_sphinx_app_doctree(file_regressi
|
||||
'<document source="index.rst">',
|
||||
"<document source=\"index.rst\" translation_progress=\"{'total': 0, 'translated': 0}\">",
|
||||
)
|
||||
+ if docutils.__version_info__ < (0, 22):
|
||||
+ text = text.replace('="False"', '="0"')
|
||||
+ text = text.replace('linenos="True"', 'linenos="1"')
|
||||
file_regression.check(text, extension=extension)
|
||||
|
||||
return doctree
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_html_assets_policy_index_.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_conditional_assets_html_assets_policy_index_.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_html_assets_policy_index_.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<document source="index.rst" translation_progress="{'total': 0, 'translated': 0}">
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="False" hidden="False" includefiles="no_tabs1 no_tabs2" includehidden="False" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="0" hidden="0" includefiles="no_tabs1 no_tabs2" includehidden="0" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="0">
|
||||
<section ids="fruits" names="fruits">
|
||||
<title>
|
||||
Fruits
|
||||
@@ -54,22 +54,22 @@
|
||||
<button aria-controls="panel-2-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-2-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-2-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
C Main Function
|
||||
<div aria-labelledby="tab-2-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
C++ Main Function
|
||||
<div aria-labelledby="tab-2-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
Python Main Function
|
||||
<div aria-labelledby="tab-2-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
Java Main Function
|
||||
<div aria-labelledby="tab-2-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
Julia Main Function
|
||||
<div aria-labelledby="tab-2-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
Fortran Main Function
|
||||
<container classes="sphinx-tabs" type="tab-element">
|
||||
<div aria-label="Tabbed content" classes="closeable" role="tablist">
|
||||
@@ -86,31 +86,31 @@
|
||||
<button aria-controls="panel-3-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-3-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-3-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
def main():
|
||||
return
|
||||
<div aria-labelledby="tab-3-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
<div aria-labelledby="tab-3-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
function main()
|
||||
end
|
||||
<div aria-labelledby="tab-3-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
PROGRAM main
|
||||
END PROGRAM main
|
||||
<section ids="group-tabs" names="group\ tabs">
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<document source="index.rst" translation_progress="{'total': 0, 'translated': 0}">
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="False" hidden="False" includefiles="no_tabs1 no_tabs2" includehidden="False" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="0" hidden="0" includefiles="no_tabs1 no_tabs2" includehidden="0" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="0">
|
||||
<section ids="fruits" names="fruits">
|
||||
<title>
|
||||
Fruits
|
||||
@@ -54,22 +54,22 @@
|
||||
<button aria-controls="panel-2-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-2-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-2-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
C Main Function
|
||||
<div aria-labelledby="tab-2-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
C++ Main Function
|
||||
<div aria-labelledby="tab-2-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
Python Main Function
|
||||
<div aria-labelledby="tab-2-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
Java Main Function
|
||||
<div aria-labelledby="tab-2-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
Julia Main Function
|
||||
<div aria-labelledby="tab-2-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
Fortran Main Function
|
||||
<container classes="sphinx-tabs" type="tab-element">
|
||||
<div aria-label="Tabbed content" classes="closeable" role="tablist">
|
||||
@@ -86,31 +86,31 @@
|
||||
<button aria-controls="panel-3-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-3-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-3-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
def main():
|
||||
return
|
||||
<div aria-labelledby="tab-3-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
<div aria-labelledby="tab-3-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
function main()
|
||||
end
|
||||
<div aria-labelledby="tab-3-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
PROGRAM main
|
||||
END PROGRAM main
|
||||
<section ids="group-tabs" names="group\ tabs">
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<document source="index.rst" translation_progress="{'total': 0, 'translated': 0}">
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="False" hidden="False" includefiles="no_tabs1 no_tabs2" includehidden="False" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="0" hidden="0" includefiles="no_tabs1 no_tabs2" includehidden="0" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="0">
|
||||
<section ids="fruits" names="fruits">
|
||||
<title>
|
||||
Fruits
|
||||
@@ -54,22 +54,22 @@
|
||||
<button aria-controls="panel-2-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-2-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-2-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
C Main Function
|
||||
<div aria-labelledby="tab-2-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
C++ Main Function
|
||||
<div aria-labelledby="tab-2-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
Python Main Function
|
||||
<div aria-labelledby="tab-2-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
Java Main Function
|
||||
<div aria-labelledby="tab-2-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
Julia Main Function
|
||||
<div aria-labelledby="tab-2-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
Fortran Main Function
|
||||
<container classes="sphinx-tabs" type="tab-element">
|
||||
<div aria-label="Tabbed content" classes="closeable" role="tablist">
|
||||
@@ -86,31 +86,31 @@
|
||||
<button aria-controls="panel-3-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-3-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-3-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
def main():
|
||||
return
|
||||
<div aria-labelledby="tab-3-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
<div aria-labelledby="tab-3-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
function main()
|
||||
end
|
||||
<div aria-labelledby="tab-3-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
PROGRAM main
|
||||
END PROGRAM main
|
||||
<section ids="group-tabs" names="group\ tabs">
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_index_.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_conditional_assets_index_.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_index_.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<document source="index.rst" translation_progress="{'total': 0, 'translated': 0}">
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="False" hidden="False" includefiles="no_tabs1 no_tabs2" includehidden="False" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="0" hidden="0" includefiles="no_tabs1 no_tabs2" includehidden="0" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="0">
|
||||
<section ids="fruits" names="fruits">
|
||||
<title>
|
||||
Fruits
|
||||
@@ -54,22 +54,22 @@
|
||||
<button aria-controls="panel-2-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-2-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-2-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
C Main Function
|
||||
<div aria-labelledby="tab-2-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
C++ Main Function
|
||||
<div aria-labelledby="tab-2-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
Python Main Function
|
||||
<div aria-labelledby="tab-2-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
Java Main Function
|
||||
<div aria-labelledby="tab-2-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
Julia Main Function
|
||||
<div aria-labelledby="tab-2-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
Fortran Main Function
|
||||
<container classes="sphinx-tabs" type="tab-element">
|
||||
<div aria-label="Tabbed content" classes="closeable" role="tablist">
|
||||
@@ -86,31 +86,31 @@
|
||||
<button aria-controls="panel-3-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-3-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-3-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
def main():
|
||||
return
|
||||
<div aria-labelledby="tab-3-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
<div aria-labelledby="tab-3-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
function main()
|
||||
end
|
||||
<div aria-labelledby="tab-3-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
PROGRAM main
|
||||
END PROGRAM main
|
||||
<section ids="group-tabs" names="group\ tabs">
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_no_tabs1_.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_conditional_assets_no_tabs1_.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_no_tabs1_.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<document source="index.rst" translation_progress="{'total': 0, 'translated': 0}">
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="False" hidden="False" includefiles="no_tabs1 no_tabs2" includehidden="False" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="0" hidden="0" includefiles="no_tabs1 no_tabs2" includehidden="0" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="0">
|
||||
<section ids="fruits" names="fruits">
|
||||
<title>
|
||||
Fruits
|
||||
@@ -54,22 +54,22 @@
|
||||
<button aria-controls="panel-2-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-2-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-2-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
C Main Function
|
||||
<div aria-labelledby="tab-2-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
C++ Main Function
|
||||
<div aria-labelledby="tab-2-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
Python Main Function
|
||||
<div aria-labelledby="tab-2-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
Java Main Function
|
||||
<div aria-labelledby="tab-2-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
Julia Main Function
|
||||
<div aria-labelledby="tab-2-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
Fortran Main Function
|
||||
<container classes="sphinx-tabs" type="tab-element">
|
||||
<div aria-label="Tabbed content" classes="closeable" role="tablist">
|
||||
@@ -86,31 +86,31 @@
|
||||
<button aria-controls="panel-3-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-3-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-3-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
def main():
|
||||
return
|
||||
<div aria-labelledby="tab-3-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
<div aria-labelledby="tab-3-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
function main()
|
||||
end
|
||||
<div aria-labelledby="tab-3-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
PROGRAM main
|
||||
END PROGRAM main
|
||||
<section ids="group-tabs" names="group\ tabs">
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_no_tabs2_.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_conditional_assets_no_tabs2_.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_conditional_assets_no_tabs2_.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<document source="index.rst" translation_progress="{'total': 0, 'translated': 0}">
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="False" hidden="False" includefiles="no_tabs1 no_tabs2" includehidden="False" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="True" entries="(None,\ 'no_tabs1') (None,\ 'no_tabs2')" glob="0" hidden="0" includefiles="no_tabs1 no_tabs2" includehidden="0" maxdepth="-1" numbered="0" parent="index" rawentries="" titlesonly="0">
|
||||
<section ids="fruits" names="fruits">
|
||||
<title>
|
||||
Fruits
|
||||
@@ -54,22 +54,22 @@
|
||||
<button aria-controls="panel-2-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-2-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-2-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
C Main Function
|
||||
<div aria-labelledby="tab-2-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
C++ Main Function
|
||||
<div aria-labelledby="tab-2-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
Python Main Function
|
||||
<div aria-labelledby="tab-2-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
Java Main Function
|
||||
<div aria-labelledby="tab-2-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
Julia Main Function
|
||||
<div aria-labelledby="tab-2-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-2-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
Fortran Main Function
|
||||
<container classes="sphinx-tabs" type="tab-element">
|
||||
<div aria-label="Tabbed content" classes="closeable" role="tablist">
|
||||
@@ -86,31 +86,31 @@
|
||||
<button aria-controls="panel-3-Rm9ydHJhbg==" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tab" tabindex="-1">
|
||||
Fortran
|
||||
<div aria-labelledby="tab-3-Qw==" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-3-Qw==" name="Qw==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-Qysr" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" xml:space="preserve">
|
||||
int main(const int argc, const char **argv) {
|
||||
return 0;
|
||||
}
|
||||
<div aria-labelledby="tab-3-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="py" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="py" xml:space="preserve">
|
||||
def main():
|
||||
return
|
||||
<div aria-labelledby="tab-3-SmF2YQ==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SmF2YQ==" name="SmF2YQ==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="java" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="java" xml:space="preserve">
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
<div aria-labelledby="tab-3-SnVsaWE=" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-SnVsaWE=" name="SnVsaWE=" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="julia" xml:space="preserve">
|
||||
function main()
|
||||
end
|
||||
<div aria-labelledby="tab-3-Rm9ydHJhbg==" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-3-Rm9ydHJhbg==" name="Rm9ydHJhbg==" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="fortran" xml:space="preserve">
|
||||
PROGRAM main
|
||||
END PROGRAM main
|
||||
<section ids="group-tabs" names="group\ tabs">
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_custom_lexer.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_custom_lexer.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_custom_lexer.xml
|
||||
@@ -6,9 +6,9 @@
|
||||
<button aria-controls="panel-0-QllP-1" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-0-QllP-1" name="QllP-1" role="tab" tabindex="-1">
|
||||
BYO
|
||||
<div aria-labelledby="tab-0-QllP" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-0-QllP" name="QllP" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="byo" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="byo" xml:space="preserve">
|
||||
Test
|
||||
This is just a test.
|
||||
<div aria-labelledby="tab-0-QllP-1" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-0-QllP-1" name="QllP-1" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="byo" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="byo" xml:space="preserve">
|
||||
Some other text.
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_other_with_assets.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_other_with_assets.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_other_with_assets.xml
|
||||
@@ -6,8 +6,8 @@
|
||||
<button aria-controls="panel-0-UHl0aG9u" aria-selected="false" classes="sphinx-tabs-tab code-tab group-tab" ids="tab-0-UHl0aG9u" name="UHl0aG9u" role="tab" tabindex="-1">
|
||||
Python
|
||||
<div aria-labelledby="tab-0-Qysr" classes="sphinx-tabs-panel code-tab group-tab" ids="panel-0-Qysr" name="Qysr" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="c++" linenos="True" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="c++" linenos="1" xml:space="preserve">
|
||||
std::cout << "hello world" << std::endl;
|
||||
<div aria-labelledby="tab-0-UHl0aG9u" classes="sphinx-tabs-panel code-tab group-tab" hidden="true" ids="panel-0-UHl0aG9u" name="UHl0aG9u" role="tabpanel" tabindex="0">
|
||||
- <literal_block force="False" highlight_args="{}" language="python" xml:space="preserve">
|
||||
+ <literal_block force="0" highlight_args="{}" language="python" xml:space="preserve">
|
||||
print('hello world')
|
||||
Index: sphinx-tabs-3.4.7/tests/test_build/test_rinohtype_pdf.xml
|
||||
===================================================================
|
||||
--- sphinx-tabs-3.4.7.orig/tests/test_build/test_rinohtype_pdf.xml
|
||||
+++ sphinx-tabs-3.4.7/tests/test_build/test_rinohtype_pdf.xml
|
||||
@@ -3,4 +3,4 @@
|
||||
<title>
|
||||
TESTING PDF
|
||||
<compound classes="toctree-wrapper">
|
||||
- <toctree caption="Contents:" entries="(None,\ 'tabs')" glob="False" hidden="False" includefiles="tabs" includehidden="False" maxdepth="2" numbered="0" parent="index" rawcaption="Contents:" rawentries="" titlesonly="False">
|
||||
+ <toctree caption="Contents:" entries="(None,\ 'tabs')" glob="0" hidden="0" includefiles="tabs" includehidden="0" maxdepth="2" numbered="0" parent="index" rawcaption="Contents:" rawentries="" titlesonly="0">
|
||||
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 7 06:53:55 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add patch docutils-0.22.patch:
|
||||
* Support docutils 0.22 changes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 22 01:07:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-sphinx-8.1.patch:
|
||||
* Support Sphinx 8.1 changes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 19:51:06 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 3.4.7:
|
||||
* As previous release, but with working deployment to PyPI
|
||||
- update to 3.4.6:
|
||||
* Unpin Python version and dont reread README.md in setup.py
|
||||
* Drop usage of internal API when conditionally including
|
||||
assets
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 1 21:22:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sphinx-tabs
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,13 +31,17 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-sphinx-tabs
|
||||
Version: 3.4.5
|
||||
Version: 3.4.7
|
||||
Release: 0
|
||||
Summary: Tabbed views for Sphinx
|
||||
License: MIT
|
||||
URL: https://github.com/executablebooks/sphinx-tabs
|
||||
# Use the github tag instead of the pythonhosted.org to get the tests folder
|
||||
Source: https://github.com/executablebooks/sphinx-tabs/archive/refs/tags/v%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#executablebooks/sphinx-tabs#200
|
||||
Patch0: support-sphinx-8.1.patch
|
||||
# PATCH-FIX-UPSTREAM gh#executablebooks/sphinx-tabs#207
|
||||
Patch1: docutils-0.22.patch
|
||||
BuildRequires: %{python_module Pygments}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module docutils}
|
||||
@@ -81,6 +85,8 @@ Create tabbed content in Sphinx documentation when building HTML.
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/sphinx_tabs
|
||||
%{python_sitelib}/sphinx_tabs-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
207
support-sphinx-8.1.patch
Normal file
207
support-sphinx-8.1.patch
Normal file
@@ -0,0 +1,207 @@
|
||||
From b5528ac02f472ecf1ef8c45eb4cc7249d3329b3d Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Shachnev <mitya57@gmail.com>
|
||||
Date: Sun, 24 Nov 2024 20:55:02 +0300
|
||||
Subject: [PATCH] Update the tests for Sphinx 8.1
|
||||
|
||||
Fixes #199.
|
||||
---
|
||||
tests/conftest.py | 4 ++++
|
||||
tests/test_build/test_basic.html | 2 ++
|
||||
.../test_conditional_assets_html_assets_policy_index_.html | 2 ++
|
||||
.../test_conditional_assets_html_assets_policy_no_tabs1_.html | 2 ++
|
||||
.../test_conditional_assets_html_assets_policy_no_tabs2_.html | 2 ++
|
||||
tests/test_build/test_conditional_assets_index_.html | 2 ++
|
||||
tests/test_build/test_conditional_assets_no_tabs1_.html | 2 ++
|
||||
tests/test_build/test_conditional_assets_no_tabs2_.html | 2 ++
|
||||
tests/test_build/test_custom_lexer.html | 2 ++
|
||||
tests/test_build/test_disable_closing.html | 2 ++
|
||||
tests/test_build/test_disable_css_loading.html | 2 ++
|
||||
tests/test_build/test_nested_markup.html | 2 ++
|
||||
tests/test_build/test_no_tabs.html | 2 ++
|
||||
tests/test_build/test_other_with_assets.html | 2 ++
|
||||
14 files changed, 30 insertions(+)
|
||||
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index 1dbf0ad..c4452df 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -91,6 +91,10 @@ def read(app, buildername="html", filename="index.html", encoding="utf-8"):
|
||||
for div in soup.find_all("div", {"class": "highlight"}):
|
||||
div.decompose()
|
||||
|
||||
+ if sphinx.version_info < (8, 1):
|
||||
+ body = soup.select("div.body")[0]
|
||||
+ body.append(soup.new_tag("div", **{"class": "clearer"}))
|
||||
+
|
||||
doc_div = soup.findAll("div", {"class": "documentwrapper"})[0]
|
||||
doc = doc_div.prettify()
|
||||
|
||||
diff --git a/tests/test_build/test_basic.html b/tests/test_build/test_basic.html
|
||||
index af63887..a5cc924 100644
|
||||
--- a/tests/test_build/test_basic.html
|
||||
+++ b/tests/test_build/test_basic.html
|
||||
@@ -37,6 +37,8 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_index_.html b/tests/test_build/test_conditional_assets_html_assets_policy_index_.html
|
||||
index b87a329..6e1cbc8 100644
|
||||
--- a/tests/test_build/test_conditional_assets_html_assets_policy_index_.html
|
||||
+++ b/tests/test_build/test_conditional_assets_html_assets_policy_index_.html
|
||||
@@ -243,6 +243,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html
|
||||
index b87a329..6e1cbc8 100644
|
||||
--- a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html
|
||||
+++ b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html
|
||||
@@ -243,6 +243,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html
|
||||
index b87a329..6e1cbc8 100644
|
||||
--- a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html
|
||||
+++ b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html
|
||||
@@ -243,6 +243,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_conditional_assets_index_.html b/tests/test_build/test_conditional_assets_index_.html
|
||||
index b87a329..6e1cbc8 100644
|
||||
--- a/tests/test_build/test_conditional_assets_index_.html
|
||||
+++ b/tests/test_build/test_conditional_assets_index_.html
|
||||
@@ -243,6 +243,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_conditional_assets_no_tabs1_.html b/tests/test_build/test_conditional_assets_no_tabs1_.html
|
||||
index b87a329..6e1cbc8 100644
|
||||
--- a/tests/test_build/test_conditional_assets_no_tabs1_.html
|
||||
+++ b/tests/test_build/test_conditional_assets_no_tabs1_.html
|
||||
@@ -243,6 +243,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_conditional_assets_no_tabs2_.html b/tests/test_build/test_conditional_assets_no_tabs2_.html
|
||||
index b87a329..6e1cbc8 100644
|
||||
--- a/tests/test_build/test_conditional_assets_no_tabs2_.html
|
||||
+++ b/tests/test_build/test_conditional_assets_no_tabs2_.html
|
||||
@@ -243,6 +243,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_custom_lexer.html b/tests/test_build/test_custom_lexer.html
|
||||
index 954a10a..a0af59a 100644
|
||||
--- a/tests/test_build/test_custom_lexer.html
|
||||
+++ b/tests/test_build/test_custom_lexer.html
|
||||
@@ -19,6 +19,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_disable_closing.html b/tests/test_build/test_disable_closing.html
|
||||
index e245915..98ba6ef 100644
|
||||
--- a/tests/test_build/test_disable_closing.html
|
||||
+++ b/tests/test_build/test_disable_closing.html
|
||||
@@ -37,6 +37,8 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_disable_css_loading.html b/tests/test_build/test_disable_css_loading.html
|
||||
index af63887..a5cc924 100644
|
||||
--- a/tests/test_build/test_disable_css_loading.html
|
||||
+++ b/tests/test_build/test_disable_css_loading.html
|
||||
@@ -37,6 +37,8 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_nested_markup.html b/tests/test_build/test_nested_markup.html
|
||||
index 22588a9..b15d43e 100644
|
||||
--- a/tests/test_build/test_nested_markup.html
|
||||
+++ b/tests/test_build/test_nested_markup.html
|
||||
@@ -207,6 +207,8 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_no_tabs.html b/tests/test_build/test_no_tabs.html
|
||||
index 6a0af85..26e2d70 100644
|
||||
--- a/tests/test_build/test_no_tabs.html
|
||||
+++ b/tests/test_build/test_no_tabs.html
|
||||
@@ -4,6 +4,8 @@
|
||||
<p>
|
||||
There are no tabs here
|
||||
</p>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
diff --git a/tests/test_build/test_other_with_assets.html b/tests/test_build/test_other_with_assets.html
|
||||
index 85b55c4..c8ee530 100644
|
||||
--- a/tests/test_build/test_other_with_assets.html
|
||||
+++ b/tests/test_build/test_other_with_assets.html
|
||||
@@ -19,6 +19,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
BIN
v3.4.5.tar.gz
(Stored with Git LFS)
BIN
v3.4.5.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
v3.4.7.tar.gz
(Stored with Git LFS)
Normal file
BIN
v3.4.7.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user