docs: regenerate, include docfx config

This commit is contained in:
goat 2020-02-14 20:24:41 +09:00
parent 6e486d0cea
commit c59f53db2f
384 changed files with 248388 additions and 1052 deletions

View file

@ -562,6 +562,7 @@ body .toc{
border: 0;
color: #666666;
padding-left: 20px;
padding-right: 20px;
width: 100%;
}
.toc-filter > input:focus {
@ -572,6 +573,11 @@ body .toc{
top: 10px;
left: 5px;
}
.toc-filter > .clear-icon {
position: absolute;
top: 10px;
right: 5px;
}
.article {
margin-top: 120px;
margin-bottom: 115px;
@ -632,7 +638,6 @@ body .toc{
overflow: hidden;
padding-bottom: 10px;
height: calc(100% - 100px);
margin-right: -20px;
}
.affix ul > li > a:before {
color: #cccccc;

View file

@ -434,20 +434,29 @@ $(function () {
}
function registerTocEvents() {
var tocFilterInput = $('#toc_filter_input');
var tocFilterClearButton = $('#toc_filter_clear');
$('.toc .nav > li > .expand-stub').click(function (e) {
$(e.target).parent().toggleClass(expanded);
});
$('.toc .nav > li > .expand-stub + a:not([href])').click(function (e) {
$(e.target).parent().toggleClass(expanded);
});
$('#toc_filter_input').on('input', function (e) {
tocFilterInput.on('input', function (e) {
var val = this.value;
//Save filter string to local session storage
if (typeof(Storage) !== "undefined") {
sessionStorage.filterString = val;
}
if (val === '') {
// Clear 'filtered' class
$('#toc li').removeClass(filtered).removeClass(hide);
tocFilterClearButton.fadeOut();
return;
}
tocFilterClearButton.fadeIn();
// Get leaf nodes
$('#toc li>a').filter(function (i, e) {
return $(e).siblings().length === 0
@ -488,6 +497,22 @@ $(function () {
return false;
}
});
// toc filter clear button
tocFilterClearButton.hide();
tocFilterClearButton.on("click", function(e){
tocFilterInput.val("");
tocFilterInput.trigger('input');
if (typeof(Storage) !== "undefined") {
sessionStorage.filterString = "";
}
});
//Set toc filter from local session storage on page load
if (typeof(Storage) !== "undefined") {
tocFilterInput.val(sessionStorage.filterString);
tocFilterInput.trigger('input');
}
}
function loadToc() {
@ -1136,8 +1161,15 @@ $(function () {
}
$(window).on('hashchange', scrollToCurrent);
// Exclude tabbed content case
$('a:not([data-tab])').click(delegateAnchors);
scrollToCurrent();
$(window).load(function () {
// scroll to the anchor if present, offset by the header
scrollToCurrent();
});
$(document).ready(function () {
// Exclude tabbed content case
$('a:not([data-tab])').click(function (e) { delegateAnchors(e); });
});
}
});

File diff suppressed because one or more lines are too long

View file

@ -6,7 +6,7 @@
var stopWords = null;
var searchData = {};
lunr.tokenizer.seperator = /[\s\-\.]+/;
lunr.tokenizer.separator = /[\s\-\.]+/;
var stopWordsRequest = new XMLHttpRequest();
stopWordsRequest.open('GET', '../search-stopwords.json');