From ebb7925e7adf776715188e29c0d68254483b216b Mon Sep 17 00:00:00 2001 From: Deepak Khatri <lorforlinux@beagleboard.org> Date: Thu, 1 Sep 2022 23:37:12 +0530 Subject: [PATCH] Update PDF slug for latest --- .gitlab-ci.yml | 5 +++++ conf.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abf6e568..16675752 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,11 @@ image: beagle/sphinx-build-env:latest stages: - deploy +cache: + key: $CI_COMMIT_REF_SLUG + paths: + - public + pages: stage: deploy script: diff --git a/conf.py b/conf.py index 2e6dbb71..5f97e1ea 100644 --- a/conf.py +++ b/conf.py @@ -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, -- GitLab