Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions dbuild/templates/README.mkdocs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,17 @@ description: "{{ description }} Built natively for FreeBSD with PUID/PGID suppor

{% block screenshots %}
{% if screenshots %}
<div class="screenshot-strip" aria-label="{{ title }} screenshots">
<section class="splide screenshot-carousel" aria-label="{{ title }} screenshots">
<div class="splide__track">
<ul class="splide__list">
{% for shot in screenshots %}
<a href="{{ shot }}" class="glightbox screenshot-thumb" data-gallery="{{ name }}">
<img src="{{ shot }}" loading="lazy" alt="{{ title }} screenshot {{ loop.index }}">
</a>
<li class="splide__slide">
<img src="{{ shot }}" loading="lazy" alt="{{ title }} screenshot {{ loop.index }}">
</li>
{% endfor %}
</div>
</ul>
</div>
</section>
{% endif %}
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ def test_operator_first_order_and_fjord_default_tab(self):

# Zero @PLACEHOLDER@ tokens on site output
self.assertEqual(_re.findall(r"@[A-Z][A-Z0-9_]+@", site), [])
self.assertIn('class="screenshot-strip"', site)
self.assertIn('class="splide screenshot-carousel"', site)
self.assertIn('class="deploy-customizer"', site)
self.assertIn("## Deployment { #deployment data-search-exclude }", site)
self.assertIn("## Version Tags { #version-tags data-search-exclude }", site)
Expand Down