Edit this topic

Manifest repository url resolver

: shell

: manifest-repository-resolution

: 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

ManifestRepositoryUrlResolver

Kind: global class

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.

Kind: instance method of ManifestRepositoryUrlResolver
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'.