From c90a2c1c270ca14f31c70db3ac5f290360105825 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gabriel=20Preu=C3=9F?= <gabriel.preuss@helmholtz-berlin.de>
Date: Thu, 29 Aug 2024 13:14:25 +0200
Subject: [PATCH] remove jupyter books pipeline

---
 .gitignore     |  3 ++-
 .gitlab-ci.yml | 15 ++++++---------
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
index 51d2e0f9..a36d2b45 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,13 +2,14 @@
 /node_modules
 
 # Production
-/docs/_build
+/build
 
 # Generated files
 .docusaurus
 .cache-loader
 
 # Misc
+.idea
 .DS_Store
 .env.local
 .env.development.local
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 65f24986..1a5497da 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,26 +6,23 @@ stages:
 
 docs-build:
   stage: build
-  image: python:3.10
+  image: node:20
   script:
-    - pip install -U jupyter-book
-    - jupyter-book clean docs
-    - jupyter-book toc from-project docs > docs/_toc.yml
-    - jupyter-book build docs
+    - npm install
+    - npm run build
   artifacts:
     paths:
-      - docs/_build/
+      - build
 
 pages:
   stage: deploy
   image: busybox:latest
   needs: [docs-build]
   script:
-    - ls
-    - mv docs/_build/html public
+    - mv build public
   artifacts:
     paths:
       - public
   rules:
-    - if: $CI_COMMIT_BRANCH == "main"
+    - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+(\.\d+)?(-pl\d+){0,1}$/'
 
-- 
GitLab