@docmd/plugin-search
Advanced tools
+3
-3
@@ -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): { |
+6
-6
@@ -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) { |
+2
-2
| { | ||
| "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" | ||
| } | ||
| } |
+1
-1
| # @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. |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
22644
-0.08%