Edit this topic

Manifest repository url resolver

: shell

: repository-resolution

: manifest-repository-resolution

: /modules/core/documentation/services/manifest-repository-url-resolver.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/documentation/services/manifest-repository-url-resolver.js

class: ManifestRepositoryUrlResolver

new ManifestRepositoryUrlResolver()

Uses package.json manifest files to find the URL of the repository containing a file.

manifestRepositoryUrlResolver.resolve(filePath, displayType) ⇒ string

Resolves the repository URL for a file.

Returns: string - the URL of the repository, or null if not found.

Param Type Description
filePath string The path of the file for which the repository must be found.
displayType string The type of view for which we want the URL, 'display' or 'edit'.