Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit ebb7925e authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Update PDF slug for latest

parent afc75e38
No related merge requests found
......@@ -3,6 +3,11 @@ image: beagle/sphinx-build-env:latest
stages:
- deploy
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- public
pages:
stage: deploy
script:
......
......@@ -100,7 +100,10 @@ with open(BBDOCS_BASE / "PAGES") as f:
url, slug = m.groups(1)
pages_url = url
pages_slug = slug
docs_url = "/".join((url, slug))
if slug == "main":
docs_url = "/".join((url, "latest"))
else:
docs_url = "/".join((url, slug))
html_context = {
"display_gitlab": True,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment