import * as configuration from "../configuration/index" ; import * as files from "./index" ; /**
 * A link relative to the current location,
 * i.e. a link not starting with '/'
 */ export class RelativeLink { readonly value : string ; constructor ( publicPath ) { this . value = publicPath ; } /**
     * Assuming this relative link is in the given file,
     * returns the absolute links that point to the same target as this relative link.
     */ absolutify ( containingLocation , publications ) { const urlOfDir = containingLocation . file . directory ( ) . publicPath ( publications ) ; return urlOfDir . append ( this ) ; } }