Skip to content

Commit

Permalink
Remove unconditional placeholder from dartdoc page rendering. (dart-l…
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Jan 14, 2025
1 parent e19c65e commit 127f6fc
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions app/lib/dartdoc/dartdoc_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,6 @@ extension DartDocPageRender on DartDocPage {
],
),
_left,
// TODO: remove this after all runtimes are rendered with dartdoc >=8.0.0
if (!left.contains('dartdoc-sidebar-left-content'))
d.div(id: 'dartdoc-sidebar-left-content', text: ''),
],
);

Expand Down
7 changes: 0 additions & 7 deletions app/test/dartdoc/dartdoc_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,6 @@ void main() {
renderedFirstBreadcrumbs.remove();
}

// removing unconditional placeholder
renderedXmlDoc.descendantElements
.firstWhereOrNull((e) =>
e.localName == 'div' &&
e.getAttribute('id') == 'dartdoc-sidebar-left-content')
?.remove();

// main content section -> div
final fileMainContentDiv = fileXmlRoot.descendantElements
.firstWhere(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ <h5 class="hidden-xs">
<a href="oxygen/">oxygen</a>
</li>
</ol>
<div id="dartdoc-sidebar-left-content"></div>
</div>
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right"></div>
</main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ <h5>
<a href="../oxygen/">oxygen</a>
</li>
</ol>
<div id="dartdoc-sidebar-left-content"></div>
</div>
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
<h5>oxygen library</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ <h5 class="hidden-xs">
<a href="oxygen/">oxygen</a>
</li>
</ol>
<div id="dartdoc-sidebar-left-content"></div>
</div>
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right"></div>
</main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ <h5>
<a href="../oxygen/">oxygen</a>
</li>
</ol>
<div id="dartdoc-sidebar-left-content"></div>
</div>
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
<h5>oxygen library</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ <h5 class="hidden-xs">
<a href="oxygen/">oxygen</a>
</li>
</ol>
<div id="dartdoc-sidebar-left-content"></div>
</div>
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right"></div>
</main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ <h5>
<a href="../oxygen/">oxygen</a>
</li>
</ol>
<div id="dartdoc-sidebar-left-content"></div>
</div>
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
<h5>oxygen library</h5>
Expand Down

0 comments on commit 127f6fc

Please sign in to comment.