Commit f0f0e51f authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

add pages generation via pkgdown

parent d410ff2a
......@@ -23,3 +23,4 @@
^windows
^doc$
^Meta$
^_pkgdown.yml$
......@@ -157,3 +157,19 @@ deploy:
script:
- sshpass -e ssh -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_IP "./launch.sh $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $CI_REGISTRY_IMAGE latest"
pages:
stage: deploy
image: rocker/tidyverse:4.0.1
before_script:
- apt-get update
- apt-get install -y --no-install-recommends libgsl-dev libudunits2-dev libproj-dev libgdal-dev libharfbuzz-dev libfribidi-dev
script:
- Rscript -e 'install.packages(c("devtools", "pkgdown"), repos="cloud.r-project.org")'
- Rscript -e 'devtools::install()'
- Rscript -e 'pkgdown::build_site(override = list(destination = "public"))'
artifacts:
paths:
- public
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: always
repo:
url:
home: https://gitlab.paca.inrae.fr/CSIRO-INRA/landsepi
navbar:
structure:
left: [home, intro, reference, articles, tutorials, news]
right: [gitlab]
components:
gitlab:
icon: fab fa-gitlab fa-lg
href: https://gitlab.paca.inrae.fr/CSIRO-INRA/landsepi
github:
icon: fab fa-gitlab fa-lg
href: https://gitlab.paca.inrae.fr/CSIRO-INRA/landsepi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment