aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-31 13:13:16 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-31 13:13:16 +0200
commitfd15eda1cf574d667fb04ebd2b51462ee8e7774e (patch)
tree02568b23e9e9f5d138d4576bc19033f6e0a1ae5b /.gitlab-ci.yml
parentecf882dad2aaa6160e6c27277dceae935658b4cb (diff)
downloadkernel-fd15eda1cf574d667fb04ebd2b51462ee8e7774e.tar.xz
kernel-fd15eda1cf574d667fb04ebd2b51462ee8e7774e.zip
docs: prepare for pages deployment
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f72fb58c..7752705a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -87,3 +87,33 @@ license_check:
name: docker.io/fsfe/reuse
entrypoint: [""]
script: reuse lint
+
+pages:
+ stage: deploy
+ image: registry.gitlab.ost.ch:45023/teachos/devcontainers/docs:latest
+ script:
+ - mkdir -p build/doxygen
+ - mkdir -p public/api public/dev
+
+ - doxygen Doxyfile
+ - cp -r build/doxygen/html/* public/api
+
+ - sphinx-build -b html docs public/dev
+
+ - |
+ cat <<EOF > public/index.html
+ <!DOCTYPE html><html><body>
+ <h1>TeachOS Documentation</h1>
+ <ul>
+ <li><a href="api/index.html">API Documentation</a></li>
+ <li><a href="dev/index.html">Developer Documentation</a></li>
+ </ul>
+ </body></html>
+ EOF
+ artifacts:
+ paths:
+ - public
+ needs:
+ - license_check
+ rules:
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH \ No newline at end of file