[docs] Zensical docs (#13253)

* add zensical workflow

* rebuild schema dynamically

* load in new module

* Use zensical for docs invoke tasks

* modern

* improved carousel layout

* Increased content width

* fix for app icons

* Ensure schema dir exists

* remove unused requirement

* update readthedocs process

* fix polar.sh link

* adjust link checker pattern

* Revert some of the original style

* remove legacy mkdocs requirements

* fix for ready.py

* reduce db warnings during schema generation

* Adjust padding

* fix index issues

* fix page title

* fix pages with broken or missing headers

* split data import API schema

* cleanup old carousel

* remove djlint link
This commit is contained in:
Oliver authored and GitHub committed 2026-11-14 22:34:18 +11:00
1 parent 80ad822688
commit 19dfb81bfb
52 files changed
+1272 -4885

No files matched your search

+28 -10
View File
@@ -11,22 +11,40 @@
</div>
<script>
document.addEventListener( 'DOMContentLoaded', function () {
new Splide(
// With navigation.instant, page content is swapped in without a new
// DOMContentLoaded event, so mount immediately if the document has loaded
(function () {
function mountCarousel() {
if (window.carouselInstance) {
window.carouselInstance.destroy();
}
window.carouselInstance = new Splide(
'.splide', {
type: 'loop',
perPage: {{ per_page }},
autoplay: true,
pagination: false,
// cover: true,
// autoWidth: true,
height: '25rem',
// Each slide is as wide as its image, so that all images
// are scaled to the same height (set in extra.css)
autoWidth: true,
height: '{{ height | default("14rem") }}',
breakpoints: {
// Narrow screens (e.g. mobile)
700: {
height: '{{ mobile_height | default("8rem") }}',
},
},
gap: '1rem',
focus: 'center',
padding: {
left: '5rem',
right: '5rem',
}
}
).mount();
} );
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', mountCarousel);
} else {
mountCarousel();
}
})();
</script>