build(deps): update dependencies (#2301)

* Bump flow version

* Bump jest version

* Bump eslint version

* Bump rollup version

* Bump webpack version

* Bump misc dependencies and update lockfile

* Update lockfile

* Bump commander version

* Bump misc dependencies

* Bump istanbul version

* Bump docusaurus version

* Update lockfile

* Explicitly declare dependencies

* Bump caniuse-lite version

* Update lockfile

* Bump commander version

* Bump webpack and css-loader version

* Bump flow version
This commit is contained in:
ylemkimon
2020-07-26 03:38:29 +09:00
committed by GitHub
parent e76857ec03
commit 8a24907518
28 changed files with 11760 additions and 4516 deletions

View File

@@ -7,8 +7,9 @@
"rename-version": "docusaurus-rename-version"
},
"devDependencies": {
"docusaurus": "^1.5.0",
"fs-extra": "^7.0.0"
"docusaurus": "^1.14.4",
"fs-extra": "^9.0.1",
"react": "^16.8.4"
},
"dependencies": {}
}

View File

@@ -157,6 +157,7 @@ const siteConfig = {
favicon: '../favicon.ico',
disableHeaderTitle: true,
scrollToTop: true,
/* colors for website */
colors: {
@@ -182,7 +183,6 @@ const siteConfig = {
scripts: [
'https://buttons.github.io/buttons.js',
'/js/scrollspy.js',
],
separateCss: ['static/static', 'static\\static'],

View File

@@ -1,52 +0,0 @@
/* eslint-disable no-var */
// Inspired by ScrollSpy as in e.g. Bootstrap
(function() {
var OFFSET = 10;
var timer;
var headingsCache;
function findHeadings() {
return headingsCache ? headingsCache :
document.querySelectorAll('.toc-headings > li > a');
}
function onScroll() {
if (timer) { // throttle
return;
}
timer = setTimeout(function() {
timer = null;
var found = false;
var headings = findHeadings();
for (var i = 0; i < headings.length; i++) {
// if !found and i is the last element, highlight the last
var current = !found;
if (!found && i < headings.length - 1) {
var next = headings[i + 1].href.split('#')[1];
var nextHeader = document.getElementById(next);
var top = nextHeader.getBoundingClientRect().top;
// The following tests whether top + scrollTop
// (the top of the header) is greater than scrollTop
// (where scrollTop = window.pageYOffset, the top of
// the window), with OFFSET pixels of slop.
current = top > OFFSET;
}
if (current) {
found = true;
headings[i].className = "active";
} else {
headings[i].className = "";
}
}
}, 100);
}
document.addEventListener('scroll', onScroll);
document.addEventListener('resize', onScroll);
document.addEventListener('DOMContentLoaded', function() {
// Cache the headings once the page has fully loaded.
headingsCache = findHeadings();
onScroll();
});
})();

6645
website/yarn.lock Normal file

File diff suppressed because it is too large Load Diff