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
Pipeline #782 passed with stage
in 3 minutes and 17 seconds
...@@ -3,6 +3,11 @@ image: beagle/sphinx-build-env:latest ...@@ -3,6 +3,11 @@ image: beagle/sphinx-build-env:latest
stages: stages:
- deploy - deploy
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- public
pages: pages:
stage: deploy stage: deploy
script: script:
......
...@@ -100,7 +100,10 @@ with open(BBDOCS_BASE / "PAGES") as f: ...@@ -100,7 +100,10 @@ with open(BBDOCS_BASE / "PAGES") as f:
url, slug = m.groups(1) url, slug = m.groups(1)
pages_url = url pages_url = url
pages_slug = slug pages_slug = slug
docs_url = "/".join((url, slug)) if slug == "main":
docs_url = "/".join((url, "latest"))
else:
docs_url = "/".join((url, slug))
html_context = { html_context = {
"display_gitlab": True, "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