Skip to content

getDocsSiteAssetsDirectory

Gets the folder holding the shared site files.

The module runs from src/docs-site in this repository and from dist/lib/<format>/docs-site once installed, so the folder is found by walking up to the package root that holds it rather than by a fixed relative path.

Import:

import { getDocsSiteAssetsDirectory } from '@mnaoumov/typescript-dev-toolkit/docs-site/docs-site-assets';

Signature:

function getDocsSiteAssetsDirectory(moduleUrl: string): string

Parameters:

Parameter Type Description
moduleUrl string The URL of a module of this package to start from.

Returns: string — The folder’s absolute path.


Links to this page: