Load assets using a relative path

Created on 14 August 2025, 1 day ago

Problem/Motivation

Currently the image assets used in the markdown files fail to render when viewed from the Gitlab repository.

This is because they currently use a /gitlab_templates/ prefix in order to render properly on GitLab pages.

Proposed resolution

We should use an appropriate variable so that Gitlab pages renders the relative asset paths properly.

Following the documentation on https://www.mkdocs.org/user-guide/configuration/#site_url, we should add the following to the mkdocs.yml file.

site_url: 'https://project.pages.drupalcode.org/gitlab_templates/'

And that'll render the assets properly.

Remaining tasks

Provide MR

📌 Task
Status

Active

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024