From d4c9247b87c0a2701683ed1a17383cfb451cf609 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Wed, 15 Jul 2020 23:00:28 -0700 Subject: [PATCH 01/15] fix: gitignore was ignoring folders in src, so VS Code search results or file fuzzy finder were not working, etc --- .gitignore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e9803a96f..dc015fd2a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,10 @@ .DS_Store .idea node_modules -themes/ -lib/ -cypress/integration/examples -cypress/fixtures/docs +/themes/ +/lib/ +/cypress/integration/examples +/cypress/fixtures/docs # exceptions -!.gitkeep \ No newline at end of file +!.gitkeep From e664a3428337eaeedd32dcc4b534748c0f0c7143 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Wed, 15 Jul 2020 23:20:10 -0700 Subject: [PATCH 02/15] remove `lib` from pull request template as it is gitignored --- .github/PULL_REQUEST_TEMPLATE.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index bb31bd41f..2d5b3e545 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -14,6 +14,7 @@ - [ ] Refactor - [ ] Docs - [ ] Build-related changes +- [ ] Repo settings - [ ] Other, please describe: If changing the UI of default theme, please provide the **before/after** screenshot: @@ -44,11 +45,3 @@ If adding a **new feature**, the PR's description includes: - [ ] Related tests have been updated To avoid wasting your time, it's best to open a **feature request issue** first and wait for approval before working on it. - - -**Other information:** - ---- - -* [ ] DO NOT include files inside `lib` directory. - From 667496b85d99b168255f58e60a6bfe902cc6ee03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Sun, 19 Jul 2020 09:00:23 +0800 Subject: [PATCH 03/15] feat: Add title to sidebar links (#1286) --- src/core/event/sidebar.js | 2 ++ src/core/render/tpl.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/event/sidebar.js b/src/core/event/sidebar.js index b15cb2afe..7ca72d94c 100644 --- a/src/core/event/sidebar.js +++ b/src/core/event/sidebar.js @@ -86,6 +86,8 @@ export function getAndActive(router, el, isParent, autoTitle) { const href = a.getAttribute('href'); const node = isParent ? a.parentNode : a; + a.title = a.innerText; + if (hash.indexOf(href) === 0 && !target) { target = a; dom.toggleClass(node, 'add', 'active'); diff --git a/src/core/render/tpl.js b/src/core/render/tpl.js index e3b35a5c3..2bad3a311 100644 --- a/src/core/render/tpl.js +++ b/src/core/render/tpl.js @@ -91,7 +91,7 @@ export function tree(toc, tpl = '') { let innerHTML = ''; toc.forEach(node => { - innerHTML += `
  • ${node.title}
  • `; + innerHTML += `
  • ${node.title}
  • `; if (node.children) { innerHTML += tree(node.children, tpl); } From 6f9baab616b7c608866582165792d5abf3c40330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Mon, 20 Jul 2020 08:54:54 +0800 Subject: [PATCH 04/15] style: Update index.html and scroll.js (#1292) --- docs/index.html | 1 - index.html | 10 +++++----- src/core/event/scroll.js | 7 +++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/index.html b/docs/index.html index 3f518db13..766d1acd8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -62,7 +62,6 @@ '/': 'Search' } }, - formatUpdated: '{MM}/{DD} {HH}:{mm}', plugins: [ function (hook, vm) { hook.beforeEach(function (html) { diff --git a/index.html b/index.html index 5d2319844..9c950964d 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ +