markmv - v1.39.2
    Preparing search index...

    Class DependencyOrderJoinStrategy

    Join strategy that orders content based on dependency relationships.

    Uses topological sorting to arrange sections so that files are ordered according to their cross-reference dependencies. Files with no dependencies come first, followed by files that depend on them.

    Dependency-based joining

    const strategy = new DependencyOrderJoinStrategy({
    mergeFrontmatter: true,
    deduplicateLinks: true
    });

    const result = await strategy.join(sections);
    if (result.success) {
    console.log(`Joined ${result.sourceFiles.length} files in dependency order`);
    }

    Hierarchy (View Summary)

    Index
    • Returns title unless it is undefined or the empty string, in which case filePath is used -- an empty title is treated as "no title supplied" rather than a meaningful value to sort or display by.

      Parameters

      • title: string | undefined
      • filePath: string

      Returns string