Skip to content

docs-site/docs-site-assets

Locates the files every documentation site shares — the API page components, the site title, the stylesheet and the Open Graph fonts — which this package ships under assets/docs-site rather than compiling.

Function Description
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.
Variable Description
API_COMPONENTS_IMPORT_PREFIX The specifier generated API pages import their components through. getDocsSiteAssetsDirectory’s components folder is aliased to it, so every site renders its API pages with the same components.