From ccf8ed3be92786640e9194a3f80a8c22a22bc900 Mon Sep 17 00:00:00 2001 From: theodugautier Date: Sun, 31 Aug 2025 17:01:26 +0200 Subject: [PATCH] Migration from gitlab pages --- .gitlab-ci.yml | 86 ++++++++++++++++++++++----------------------- content/fr/about.md | 2 +- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d18f5e7..160d874 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,43 +1,43 @@ -variables: - DART_SASS_VERSION: 1.79.2 - HUGO_VERSION: 0.134.2 - NODE_VERSION: 20.x - GIT_DEPTH: 0 - GIT_STRATEGY: clone - GIT_SUBMODULE_STRATEGY: recursive - TZ: Europe/Paris - -image: - name: golang:1.22.1-bookworm - -pages: - script: - # Install brotli - - apt-get update - - apt-get install -y brotli - # Install Dart Sass - - curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz - - tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz - - cp -r dart-sass/ /usr/local/bin - - rm -rf dart-sass* - - export PATH=/usr/local/bin/dart-sass:$PATH - # Install Hugo - - curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb - - apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb - - rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb - # Install Node.js - - curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - - - apt-get install -y nodejs - # Install Node.js dependencies - - "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - # Build - - hugo --gc --minify - # Compress - - find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \; - - find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \; - artifacts: - paths: - - public - rules: - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - +# variables: +# DART_SASS_VERSION: 1.79.2 +# HUGO_VERSION: 0.134.2 +# NODE_VERSION: 20.x +# GIT_DEPTH: 0 +# GIT_STRATEGY: clone +# GIT_SUBMODULE_STRATEGY: recursive +# TZ: Europe/Paris +# +# image: +# name: golang:1.22.1-bookworm +# +# pages: +# script: +# # Install brotli +# - apt-get update +# - apt-get install -y brotli +# # Install Dart Sass +# - curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz +# - tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz +# - cp -r dart-sass/ /usr/local/bin +# - rm -rf dart-sass* +# - export PATH=/usr/local/bin/dart-sass:$PATH +# # Install Hugo +# - curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb +# - apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb +# - rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb +# # Install Node.js +# - curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - +# - apt-get install -y nodejs +# # Install Node.js dependencies +# - "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" +# # Build +# - hugo --gc --minify +# # Compress +# - find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \; +# - find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \; +# artifacts: +# paths: +# - public +# rules: +# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH +# diff --git a/content/fr/about.md b/content/fr/about.md index 2abcea0..13289fa 100644 --- a/content/fr/about.md +++ b/content/fr/about.md @@ -9,4 +9,4 @@ Notre boxe est une pratique ouverte à toustes, peu importe le genre, l’âge o **Contribuer au projet :** -Si vous souhaitez participer en rédigeant un cours et en le soumettant pour publication, le site est développé avec Hugo (un générateur de sites statiques) et le code source est accessible en open source : [https://gitlab.com/torpenn/bagarrons-nous](https://gitlab.com/torpenn/bagarrons-nous). Vous pouvez y proposer vos modifications directement. +Si vous souhaitez participer en rédigeant un cours et en le soumettant pour publication, le site est développé avec Hugo (un générateur de sites statiques) et le code source est accessible en open source : [https://code.morlaer.netlib.re/admin1312/bagarrons-nous](https://code.morlaer.netlib.re/admin1312/bagarrons-nous). Vous pouvez y proposer vos modifications directement.