FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 1dc93b68 authored by Nick Brown's avatar Nick Brown
Browse files

chore: Debugging rel_url macro behaviour in CI

parent 3aec960d
No related branches found
No related tags found
1 merge request!453feat: Knowledge base enhancements (diataxis)
Pipeline #714084 passed
......@@ -40,7 +40,7 @@ test:
paths:
- public/
variables:
SITE_URL: "https://uis.uniofcam.dev/-/devops/docs/guidebook/-/jobs/${CI_JOB_ID}/artifacts/public/"
SITE_URL: "https://uis.uniofcam.dev/-/devops/docs/guidebook/-/jobs/${CI_JOB_ID}/artifacts/public"
markdownlint:
stage: test
......
......@@ -28,7 +28,7 @@ def variables(env: MacrosPlugin) -> dict:
def rel_url(env: MacrosPlugin, rel_path: str) -> str:
_env = environment(env)
site_url = _env["conf"]["site_url"]
return urljoin(site_url, rel_path)
return f"{site_url}/{rel_path}"
# Generic Macros:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment