From 8ca5e94114b7923e6c1e488364d797f8fcf6edae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20A=C3=ADsa?= Date: Tue, 9 Sep 2025 14:11:35 +0100 Subject: [PATCH] Overwrite url-helper functions using the theme configuration --- src/mixins/metadata.js | 2 +- src/utils/data.js | 2 +- src/utils/metadata.js | 2 +- src/utils/theme-settings.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mixins/metadata.js b/src/mixins/metadata.js index 1e29ae999..df2042350 100644 --- a/src/mixins/metadata.js +++ b/src/mixins/metadata.js @@ -10,7 +10,7 @@ import { addOrUpdateMetadata } from 'docc-render/utils/metadata'; import { firstParagraph } from 'docc-render/utils/strings'; -import { resolveAbsoluteUrl } from 'docc-render/utils/url-helper'; +import { resolveAbsoluteUrl } from 'theme/utils/url-helper'; import ContentNode from 'docc-render/components/ContentNode.vue'; export default { diff --git a/src/utils/data.js b/src/utils/data.js index fc1440457..6e93031a4 100644 --- a/src/utils/data.js +++ b/src/utils/data.js @@ -11,7 +11,7 @@ import { normalizePath } from 'docc-render/utils/assets'; import { queryStringForParams, areEquivalentLocations, getAbsoluteUrl, -} from 'docc-render/utils/url-helper'; +} from 'theme/utils/url-helper'; import emitWarningForSchemaVersionMismatch from 'docc-render/utils/schema-version-check'; import RedirectError from 'docc-render/errors/RedirectError'; import FetchError from 'docc-render/errors/FetchError'; diff --git a/src/utils/metadata.js b/src/utils/metadata.js index b318ab563..1d3f7b5bf 100644 --- a/src/utils/metadata.js +++ b/src/utils/metadata.js @@ -8,7 +8,7 @@ * See https://swift.org/CONTRIBUTORS.txt for Swift project authors */ import { getSetting } from 'docc-render/utils/theme-settings'; -import { resolveAbsoluteUrl } from 'docc-render/utils/url-helper'; +import { resolveAbsoluteUrl } from 'theme/utils/url-helper'; const themeTitle = getSetting(['meta', 'title'], process.env.VUE_APP_TITLE); diff --git a/src/utils/theme-settings.js b/src/utils/theme-settings.js index 22e45091d..3f18cc030 100644 --- a/src/utils/theme-settings.js +++ b/src/utils/theme-settings.js @@ -9,7 +9,7 @@ */ import get from 'docc-render/utils/get'; -import { resolveAbsoluteUrl } from 'docc-render/utils/url-helper'; +import { resolveAbsoluteUrl } from 'theme/utils/url-helper'; /** * Theme settings state.