@mdfriday/foundry 26.2.12 → 26.2.13

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.
@@ -1,4 +1,5 @@
1
1
  import { Pages } from '../type';
2
2
  export declare function sortByDefault(pages: Pages): void;
3
+ export declare function sortByTitle(pages: Pages): void;
3
4
  export declare function sortByWeight(pages: Pages): void;
4
5
  export declare function sortByLanguage(pages: Pages): void;
@@ -14,7 +14,12 @@ export declare class Page implements ContentPage, PageMeta {
14
14
  private resources;
15
15
  private _paginator;
16
16
  private _processedContent;
17
+ private _precomputedData;
17
18
  constructor(tmplSvc: Template, langSvc: LanguageService, publisher: Publisher, contentPage: ContentPage, site: Site);
19
+ precomputeTemplateData(): Promise<void>;
20
+ private precomputeBacklinks;
21
+ private precomputeTableOfContents;
22
+ private precomputeSummary;
18
23
  processResources(pageSources: PageSource[]): Promise<void>;
19
24
  render(): Promise<void>;
20
25
  getPageOutput(): PageOutput;
@@ -1,4 +1,4 @@
1
- import { LinkStrategy } from '../vo/path';
1
+ import { LinkStrategy } from '../valueobject/path';
2
2
  export declare class PageGraph {
3
3
  private allSlugs;
4
4
  private outgoingLinks;
@@ -30,6 +30,7 @@ export declare class Site {
30
30
  private title;
31
31
  private home;
32
32
  private pageGraph;
33
+ private backlinksCache;
33
34
  get Title(): string;
34
35
  get Description(): string;
35
36
  get Compiler(): Compiler;
@@ -100,5 +101,6 @@ export declare class Site {
100
101
  ProcessWikilinks(srcSlug: string, html: string): Promise<string>;
101
102
  getPageGraph(): PageGraph | null;
102
103
  GetBacklinks(targetSlug: string): string[];
104
+ buildBacklinksCache(pages: ContentPage[]): Promise<void>;
103
105
  GetContentIndex(): Promise<Map<string, any>>;
104
106
  }
@@ -1,5 +1,5 @@
1
1
  import { PageGraph } from '../entity/pagegraph';
2
- import { LinkStrategy } from '../vo/path';
2
+ import { LinkStrategy } from '../valueobject/path';
3
3
  export interface LinkProcessorOptions {
4
4
  markdownLinkResolution: LinkStrategy;
5
5
  prettyLinks: boolean;