From 685a217eba72854f681c4d6bbcbfcdab3045caaf Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 19 Jul 2023 14:17:40 +0000 Subject: [PATCH] PAGES - switch to gitlab pages --- .drone.yml | 48 -------------------------------------- .gitlab-ci.yml | 19 +++++++++++++++ .gitmodules | 3 --- config.toml | 2 +- layouts/partials/logo.html | 4 ++-- themes/hugo-lamp | 1 - 6 files changed, 22 insertions(+), 55 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitlab-ci.yml delete mode 160000 themes/hugo-lamp diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 362138f..0000000 --- a/.drone.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -kind: pipeline -type: docker -name: default - -platform: - os: linux - arch: arm64 - -clone: - disable: true - -steps: - - name: clone - image: alpine - commands: - - apk add --no-cache git - - git clone --recursive $DRONE_GIT_HTTP_URL . - - git checkout $DRONE_COMMIT - - - name: build - image: plugins/hugo - settings: - hugo_version: 0.70.0 - validate: true - - - name: deploy - image: appleboy/drone-scp - settings: - debug: true - tar_tmp_path: /tmp/ - host: - from_secret: ssh_host - target: /var/www/fic/doc/ - source: public/* - strip_components: 1 - username: - from_secret: ssh_username - key: - from_secret: deploy_key - port: - from_secret: ssh_port - when: - branch: - - master - event: - exclude: - - pull_request diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9e862bf --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +# +# All available Hugo versions are listed under https://gitlab.com/pages/hugo/container_registry. +# +image: registry.gitlab.com/pages/hugo/hugo:latest + +stages: + - build + +before_script: + - git submodule init + - git submodule update + +pages: + stage: build + script: + - hugo + artifacts: + paths: + - public \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 6516640..01a0b24 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "themes/hugo-lamp"] - path = themes/hugo-lamp - url = https://github.com/huyb1991/hugo-lamp [submodule "themes/hugo-theme-learn"] path = themes/hugo-theme-learn url = https://github.com/matcornic/hugo-theme-learn.git diff --git a/config.toml b/config.toml index e8844a1..fdc999c 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "https://fic.srs.epita.fr/doc/" +baseURL = "https://specs.fic.srs.epita.fr/" languageCode = "fr-fr" defaultContentLanguage = "fr" diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index 1b58481..8d1e092 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,3 +1,3 @@ - diff --git a/themes/hugo-lamp b/themes/hugo-lamp deleted file mode 160000 index fa4b9c2..0000000 --- a/themes/hugo-lamp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fa4b9c282952d64e33fec74b75f5aed1caa36f03