From 7c9301117d6f331b4dbb3e270466f429ee36f382 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 28 Sep 2021 08:09:48 -0500 Subject: [PATCH] Deploy docs to gitlab pages --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 38c3e0a..ceec097 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,7 @@ stages: # Create documentation in all available languages so we'll have it at http://socializer.su/documentation # this job is triggered on every commit to master, so we always will display the latest available version of the documentation in the website. # We are not using the configure_environment job cause it adds all the dependencies, which are not needed for this to work. -documentation: +pages: stage: generate_docs image: python interruptible: true @@ -45,16 +45,17 @@ documentation: - python -m pip install --upgrade markdown # generate all html documents. - cp changelog.md doc/changelog.md + - mkdir public - cd doc - python documentation_importer.py - cd ../src - python ../doc/generator.py - - mv -f documentation ../ + - mv -f documentation ../public only: - master artifacts: paths: - - documentation + - public name: socializer_documentation expire_in: 1 day