Update to mkdocs-material 8.3.9 (#14189)
This commit is contained in:
parent
8d863fbc83
commit
83126161d9
|
@ -1,4 +1,4 @@
|
||||||
FROM squidfunk/mkdocs-material:8.1.8
|
FROM squidfunk/mkdocs-material:8.3.9
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
pip install --no-cache-dir \
|
pip install --no-cache-dir \
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<div class="home-box">
|
<div class="home-box">
|
||||||
<div class="home-header">
|
<div class="home-header">
|
||||||
<a href="/API/">
|
<a href="/API/">
|
||||||
<i class="fas fa-connectdevelop"></i>
|
<i class="fab fa-connectdevelop"></i>
|
||||||
<span>API</span>
|
<span>API</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
const tabSync = () => {
|
|
||||||
const tabs = document.querySelectorAll(".tabbed-set > input")
|
|
||||||
for (const tab of tabs) {
|
|
||||||
tab.addEventListener("change", () => {
|
|
||||||
const current = document.querySelector(`label[for=${tab.id}]`)
|
|
||||||
const pos = current.getBoundingClientRect().top
|
|
||||||
const labelContent = current.innerHTML
|
|
||||||
const labels = document.querySelectorAll('.tabbed-set > label, .tabbed-alternate > .tabbed-labels > label')
|
|
||||||
for (const label of labels) {
|
|
||||||
if (label.innerHTML === labelContent) {
|
|
||||||
document.querySelector(`input[id=${label.getAttribute('for')}]`).click()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Preserve scroll position
|
|
||||||
const delta = (current.getBoundingClientRect().top) - pos
|
|
||||||
window.scrollBy(0, delta)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
tabSync();
|
|
||||||
}, false);
|
|
||||||
|
|
||||||
|
|
13
mkdocs.yml
13
mkdocs.yml
|
@ -28,6 +28,7 @@ theme:
|
||||||
- navigation.sections
|
- navigation.sections
|
||||||
- navigation.tracking
|
- navigation.tracking
|
||||||
- navigation.top
|
- navigation.top
|
||||||
|
- content.tabs.link
|
||||||
site_dir: out
|
site_dir: out
|
||||||
site_url: https://docs.librenms.org
|
site_url: https://docs.librenms.org
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
|
@ -72,14 +73,22 @@ plugins:
|
||||||
'Installation/Installing-LibreNMS.md': 'Installation/Install-LibreNMS.md'
|
'Installation/Installing-LibreNMS.md': 'Installation/Install-LibreNMS.md'
|
||||||
'Installation/Ubuntu-image.md': 'Installation/Images.md'
|
'Installation/Ubuntu-image.md': 'Installation/Images.md'
|
||||||
'Support/Support-New-OS.md': 'Developing/Support-New-OS.md'
|
'Support/Support-New-OS.md': 'Developing/Support-New-OS.md'
|
||||||
|
- minify:
|
||||||
|
minify_html: true
|
||||||
|
minify_js: true
|
||||||
|
minify_css: true
|
||||||
|
htmlmin_opts:
|
||||||
|
remove_comments: true
|
||||||
|
js_files:
|
||||||
|
- js/docs-settings-links.js
|
||||||
|
css_files:
|
||||||
|
- librenms.css
|
||||||
extra_css:
|
extra_css:
|
||||||
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css
|
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css
|
||||||
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css
|
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css
|
||||||
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css
|
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css
|
||||||
- librenms.css
|
- librenms.css
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
- js/docs-install-tab.js
|
|
||||||
- js/docs-settings-links.js
|
- js/docs-settings-links.js
|
||||||
extra:
|
extra:
|
||||||
analytics:
|
analytics:
|
||||||
|
|
Loading…
Reference in New Issue