@easyops-cn/docusaurus-search-local 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.23.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.23.0...v0.23.1) (2022-04-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* parse `h1` from the whole `article` ([aeb063a](https://www.github.com/easyops-cn/docusaurus-search-local/commit/aeb063af9dbac9778e3436aa261e0c131a2ef8c2))
|
|
11
|
+
|
|
5
12
|
## [0.23.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.22.0...v0.23.0) (2022-03-10)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -4,7 +4,7 @@ exports.parseDocument = void 0;
|
|
|
4
4
|
const getCondensedText_1 = require("./getCondensedText");
|
|
5
5
|
const HEADINGS = "h1, h2, h3";
|
|
6
6
|
function parseDocument($) {
|
|
7
|
-
const $pageTitle = $("article
|
|
7
|
+
const $pageTitle = $("article h1").first();
|
|
8
8
|
const pageTitle = $pageTitle.text();
|
|
9
9
|
const sections = [];
|
|
10
10
|
const breadcrumb = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyops-cn/docusaurus-search-local",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "An offline/local search plugin for Docusaurus v2.",
|
|
5
5
|
"repository": "https://github.com/easyops-cn/docusaurus-search-local",
|
|
6
6
|
"homepage": "https://github.com/easyops-cn/docusaurus-search-local",
|