Skip to content

Commit

Permalink
TST: update role for caption in expected html output (sphinx 4.1) (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Aug 13, 2021
1 parent c9553a1 commit 403f174
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_build/test_sidebars_captions.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
<div class="bd-toc-item active">
<p class="caption">
<p class="caption" role="heading">
<span class="caption-text">
Section 1
</span>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_build/test_sidebars_level2.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
<div class="bd-toc-item active">
<!-- Use deeper level for sidebar -->
<p class="caption">
<p class="caption" role="heading">
<span class="caption-text">
Subsection 1.1
</span>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_build/test_sidebars_nested_page.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
<div class="bd-toc-item active">
<p class="caption">
<p class="caption" role="heading">
<span class="caption-text">
Section 1
</span>
Expand Down
4 changes: 2 additions & 2 deletions tests/test_build/test_sidebars_single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
<div class="bd-toc-item active">
<!-- Specify a startdepth of 0 instead of default of 1 -->
<p class="caption">
<p class="caption" role="heading">
<span class="caption-text">
Caption 1
</span>
Expand All @@ -13,7 +13,7 @@
</a>
</li>
</ul>
<p class="caption">
<p class="caption" role="heading">
<span class="caption-text">
Caption 2
</span>
Expand Down

0 comments on commit 403f174

Please sign in to comment.