@mdfriday/foundry 26.5.2 → 26.5.3
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.
|
@@ -242,6 +242,7 @@ export declare class KnowledgeBase {
|
|
|
242
242
|
wikiPageRepo: IWikiPageRepository;
|
|
243
243
|
pathService: IPathService;
|
|
244
244
|
fileSystem: IFileSystem;
|
|
245
|
+
sourcePath?: string;
|
|
245
246
|
}): Promise<void>;
|
|
246
247
|
private renderEntityPage;
|
|
247
248
|
private renderConceptPage;
|
|
@@ -249,7 +250,25 @@ export declare class KnowledgeBase {
|
|
|
249
250
|
private generateIndex;
|
|
250
251
|
private generateGlossary;
|
|
251
252
|
private sanitizeFilename;
|
|
253
|
+
/**
|
|
254
|
+
* Returns the wikilink name for a source path: relative path from content root, no .md extension.
|
|
255
|
+
*
|
|
256
|
+
* Given sourceRoot (project root) and a file like /project/content/b/a.md:
|
|
257
|
+
* relative = content/b/a.md → drop first segment (content dir) → b/a.md
|
|
258
|
+
* → convert separators to "-" → "b-a"
|
|
259
|
+
* Falls back to sanitized basename when sourceRoot is unavailable.
|
|
260
|
+
*/
|
|
261
|
+
private getSourceLinkName;
|
|
252
262
|
private getSourceFilename;
|
|
263
|
+
/**
|
|
264
|
+
* Computes path segments relative to the content root.
|
|
265
|
+
*
|
|
266
|
+
* sourceRoot is the project root (e.g. /project/).
|
|
267
|
+
* Files live under /project/content/... so relative gives "content/b/a.md".
|
|
268
|
+
* We drop the first segment (the contentDir symlink) to get ["b", "a.md"].
|
|
269
|
+
* If sourceRoot is not provided, falls back to just [basename].
|
|
270
|
+
*/
|
|
271
|
+
private resolveSourceRelParts;
|
|
253
272
|
/**
|
|
254
273
|
* 初始化或增量更新 Embedding Index
|
|
255
274
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdfriday/foundry",
|
|
3
|
-
"version": "26.5.
|
|
3
|
+
"version": "26.5.3",
|
|
4
4
|
"description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|