Design System Utilities @ 0.1.1-alpha.0
    Preparing search index...

    Function makeRelativeURL

    • Makes a filenames-based relative url for offline-friendly exports.

      Parameters

      • config_base: string

        Value of base as imported from 'astro:config/client' in the build env.

      • config_build: { format: "preserve" | "file" | "directory" }

        Value of build as imported from 'astro:config/client' in the build env.

      • currentURL: URL

        Value of Astro.url in the build env.

      • targetSubpath: string

        Path to used to construct the URL - relative to the site root (ignoring the base path).

      Returns string

      0.1.0-alpha

      0.1.0-alpha.4 — Added a check for existing file extensions before adding '.html'.