From aa1288f6270651016b1ad6ddd4815480e94f0752 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Sun, 29 Mar 2026 14:03:19 +0200 Subject: [PATCH] Revive docs preview --- .gitlab-ci.yml | 12 ++++++++++++ app/(home)/layout.tsx | 4 +--- app/(home)/page.tsx | 6 +++++- app/[...slug]/layout.tsx | 2 +- app/layout.config.tsx | 2 +- app/provider.tsx | 39 +++++++++++++++++++++++++++++++++++++++ ci-template.gitlab-ci.yml | 8 ++++---- next.config.mjs | 1 + 8 files changed, 64 insertions(+), 10 deletions(-) create mode 100644 app/provider.tsx diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab4c643..8ed4845 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,18 @@ build: extends: - .build stage: build + variables: + NEXT_PUBLIC_ARTIFACT_VIEWER: "true" + BASE_PATH: /-/development/telescopium/-/jobs/$CI_JOB_ID/artifacts/out + after_script: + - | + echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary" + echo "Documentation preview available at https://code0-tech.gitlab.io${BASE_PATH}/index.html" + echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K" + artifacts: + expire_in: 7 days + paths: + - out rules: - if: ($CI_COMMIT_BRANCH != "build-branch" || $C0_TRIGGER_REF != "refs/heads/main") && $C0_TRIGGER_REF != "refs/heads/main" diff --git a/app/(home)/layout.tsx b/app/(home)/layout.tsx index 5d2a41c..87c5046 100644 --- a/app/(home)/layout.tsx +++ b/app/(home)/layout.tsx @@ -3,9 +3,7 @@ import type {ReactNode} from 'react'; export default function Layout({children}: { children: ReactNode }) { return ( - - - + {children} diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx index 8ace8d3..88c93a7 100644 --- a/app/(home)/page.tsx +++ b/app/(home)/page.tsx @@ -1,3 +1,7 @@ export default function HomePage() { - return ; + return ( +