Skip to content

Commit

Permalink
fix: Fix search results urls
Browse files Browse the repository at this point in the history
Fixes diplodoc-platform/search-extension/#10
  • Loading branch information
3y3 committed Nov 19, 2024
1 parent e3f0174 commit fe036ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@diplodoc/cli",
"version": "4.47.0",
"version": "4.47.0-beta-1",
"description": "Make documentation using yfm-docs in Markdown and HTML formats",
"keywords": [
"markdown",
Expand Down
3 changes: 2 additions & 1 deletion src/services/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ function add(path: string, info: DocInnerProps) {

const toc = TocService.getForPath(path)[1];
const base = (toc as {base?: string}).base || '';
const url = base + '/' + router.pathname;
// TODO: adopt for non html links
const url = base + router.pathname + '.html';

indexer.add(lang, url, data as DocPageData);
}
Expand Down

0 comments on commit fe036ea

Please sign in to comment.