PAGES - switch to gitlab pages
This commit is contained in:
parent
cd22dd79af
commit
685a217eba
48
.drone.yml
48
.drone.yml
@ -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
|
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
@ -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
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
baseURL = "https://fic.srs.epita.fr/doc/"
|
||||
baseURL = "https://specs.fic.srs.epita.fr/"
|
||||
languageCode = "fr-fr"
|
||||
defaultContentLanguage = "fr"
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
<a id="logo" href="/doc/">
|
||||
<img src="/doc/img/fic.png" alt="FIC">
|
||||
<a id="logo" href="/">
|
||||
<img src="/img/fic.png" alt="FIC">
|
||||
</a>
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit fa4b9c282952d64e33fec74b75f5aed1caa36f03
|
Loading…
Reference in New Issue
Block a user