🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More →
Socket
Book a DemoSign in
Socket

@docmd/plugin-search

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docmd/plugin-search - npm Package Compare versions

Comparing version
0.7.7
to
0.7.8
+3
-3
dist/index.d.ts

@@ -17,3 +17,3 @@ /**

/**
* Plugin translations hook — called by the engine for each locale.
* Plugin translations hook - called by the engine for each locale.
* Returns search-specific UI strings keyed by locale.

@@ -23,3 +23,3 @@ */

/**
* Post-build hook — generates per-locale search indexes.
* Post-build hook - generates per-locale search indexes.
* Each locale gets its own `search-index.json` covering all versions within that locale.

@@ -32,3 +32,3 @@ * Default locale index is at root, non-default locale indexes are at `/{locale}/search-index.json`.

* Strings are passed as data attributes so the client JS can read them
* regardless of locale — the engine merges plugin translations before render.
* regardless of locale - the engine merges plugin translations before render.
*/

@@ -35,0 +35,0 @@ export declare function generateScripts(config: any): {

@@ -24,3 +24,3 @@ /**

name: 'search',
version: '0.7.7',
version: '0.7.8',
capabilities: ['post-build', 'head', 'body', 'assets', 'translations']

@@ -54,3 +54,3 @@ };

/**
* Plugin translations hook — called by the engine for each locale.
* Plugin translations hook - called by the engine for each locale.
* Returns search-specific UI strings keyed by locale.

@@ -62,3 +62,3 @@ */

/**
* Post-build hook — generates per-locale search indexes.
* Post-build hook - generates per-locale search indexes.
* Each locale gets its own `search-index.json` covering all versions within that locale.

@@ -108,3 +108,3 @@ * Default locale index is at root, non-default locale indexes are at `/{locale}/search-index.json`.

// Use centralised URL utility for consistent slug generation.
// This is the single source of truth — no manual outputPath parsing.
// This is the single source of truth - no manual outputPath parsing.
let pageId = outputPathToSlug(page.outputPath);

@@ -127,3 +127,3 @@ // For search index, we want the slug without leading slash (except for root)

}
// Current version pages have no prefix — tag them with the current label
// Current version pages have no prefix - tag them with the current label
if (!version) {

@@ -191,3 +191,3 @@ const currentVersion = config.versions.all.find((v) => v.id === currentVersionId);

* Strings are passed as data attributes so the client JS can read them
* regardless of locale — the engine merges plugin translations before render.
* regardless of locale - the engine merges plugin translations before render.
*/

@@ -194,0 +194,0 @@ export function generateScripts(config) {

{
"name": "@docmd/plugin-search",
"version": "0.7.7",
"version": "0.7.8",
"description": "Offline full-text search for docmd.",

@@ -48,4 +48,4 @@ "type": "module",

"devDependencies": {
"@docmd/api": "^0.7.7"
"@docmd/api": "^0.7.8"
}
}
# @docmd/plugin-search
Offline full-text search for docmd sites — builds a `search-index.json` at compile time, no API keys, no cloud, works in air-gapped environments. Powered by [minisearch](https://github.com/lucaong/minisearch) for fast fuzzy matching. Bundled with `@docmd/core`, enabled by default.
Offline full-text search for docmd sites - builds a `search-index.json` at compile time, no API keys, no cloud, works in air-gapped environments. Powered by [minisearch](https://github.com/lucaong/minisearch) for fast fuzzy matching. Bundled with `@docmd/core`, enabled by default.

@@ -5,0 +5,0 @@ Part of the **[docmd](https://github.com/docmd-io/docmd)** documentation engine.