mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
docs: add version switcher
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
;(function () {
|
||||
function versionPlugin(hook) {
|
||||
hook.mounted(function () {
|
||||
document
|
||||
.getElementById('version-selector')
|
||||
.addEventListener('change', (e) => {
|
||||
window.location.href = '../' + e.target.value + '/'
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
$docsify = $docsify || {}
|
||||
$docsify.plugins = [].concat($docsify.plugins || [], versionPlugin)
|
||||
})()
|
||||
Reference in New Issue
Block a user