Functions

f
getBaseUrl

Determine portfolio base URL from the repository structure. Check the presence of ./dist/index.html to return either ./dist/ either ./ as base path.

f
getIndexUrl

Get portfolio index URL depending of the presence of /dist/index.html.

f
getRepoUrl

Get raw files repository base url.

f
getSourceUrl

Get portfolio source URL from request URL.

Usage

import * as mod from "url_utils.ts";