From 999bd8bec8abe73f12abe20f58f8030be46c9ecd Mon Sep 17 00:00:00 2001 From: Viktor Arvidsson Date: Sun, 12 Jun 2022 05:24:19 +0200 Subject: [PATCH 1/2] fix: properly support no trailing slashes after fixing indexing top level pages Fixes #212 --- docusaurus-search-local/src/server/utils/processDocInfos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus-search-local/src/server/utils/processDocInfos.ts b/docusaurus-search-local/src/server/utils/processDocInfos.ts index f8ab8cf7..9b6786ef 100644 --- a/docusaurus-search-local/src/server/utils/processDocInfos.ts +++ b/docusaurus-search-local/src/server/utils/processDocInfos.ts @@ -110,7 +110,7 @@ export function processDocInfos( .map(({ route, url, type }) => ({ filePath: path.join( outDir, - siteConfig.trailingSlash === false + siteConfig.trailingSlash === false && route != "" ? `${route}.html` : `${route}/index.html` ), From 29a44266f63c0e72d612569e85dd8d2b546a221a Mon Sep 17 00:00:00 2001 From: EVE <78080814+easyops-eve@users.noreply.github.com> Date: Mon, 13 Jun 2022 09:24:39 +0800 Subject: [PATCH 2/2] chore(master): release 0.27.1 --- docusaurus-search-local/CHANGELOG.md | 7 +++++++ docusaurus-search-local/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docusaurus-search-local/CHANGELOG.md b/docusaurus-search-local/CHANGELOG.md index 330403db..eda32326 100644 --- a/docusaurus-search-local/CHANGELOG.md +++ b/docusaurus-search-local/CHANGELOG.md @@ -2,6 +2,13 @@ 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. +## [0.27.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.27.0...v0.27.1) (2022-06-13) + + +### Bug Fixes + +* properly support no trailing slashes after fixing indexing top level pages ([999bd8b](https://github.com/easyops-cn/docusaurus-search-local/commit/999bd8bec8abe73f12abe20f58f8030be46c9ecd)), closes [#212](https://github.com/easyops-cn/docusaurus-search-local/issues/212) + ## [0.27.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.26.1...v0.27.0) (2022-05-29) diff --git a/docusaurus-search-local/package.json b/docusaurus-search-local/package.json index 579b4899..93b54f4e 100644 --- a/docusaurus-search-local/package.json +++ b/docusaurus-search-local/package.json @@ -1,6 +1,6 @@ { "name": "@easyops-cn/docusaurus-search-local", - "version": "0.27.0", + "version": "0.27.1", "description": "An offline/local search plugin for Docusaurus v2", "repository": "https://github.com/easyops-cn/docusaurus-search-local", "homepage": "https://github.com/easyops-cn/docusaurus-search-local",