.Antora is a multi-repo documentation site generator
image::multirepo-ssg.svg[Multirepo SSG,250]
+Make the switch today!
+
+[#english+中文]
+== English + 中文
+
Altera atomorum his ex, has cu elitr melius propriae.
Eos suscipit scaevola at.
var article = document.querySelector('article.doc')
var toolbar = document.querySelector('.toolbar')
+ function decodeFragment (hash) {
+ return hash && (~hash.indexOf('%') ? decodeURIComponent(hash) : hash).slice(1)
+ }
+
function computePosition (el, sum) {
if (article.contains(el)) {
return computePosition(el.offsetParent, el.offsetTop + sum)
}
window.addEventListener('load', function jumpOnLoad (e) {
- var hash, target
- if ((hash = window.location.hash) && (target = document.getElementById(hash.slice(1)))) {
+ var fragment, target
+ if ((fragment = decodeFragment(window.location.hash)) && (target = document.getElementById(fragment))) {
jumpToAnchor.bind(target)()
setTimeout(jumpToAnchor.bind(target), 0)
}
})
Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]')).forEach(function (el) {
- var hash, target
- if ((hash = decodeURIComponent(el.hash.slice(1))) && (target = document.getElementById(hash))) {
+ var fragment, target
+ if ((fragment = decodeFragment(el.hash)) && (target = document.getElementById(fragment))) {
el.addEventListener('click', jumpToAnchor.bind(target))
}
})