diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..3f991967f211d674276c38e7d8c5c9fe3f54b2b5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +variables: + GIT_SUBMODULE_STRATEGY: recursive + DocumentationPath: _site + PagesPath: public + +stages: + - documentation + - deploy + +default: + +# Generate the documentation +documentation: + stage: documentation + variables: + LogFile: DocumentationLogs.txt + script: + # Copy and fix README.md links + - sed -r 's#/?Documentation/##gi' README.md > Documentation/index.md + # Generate documentation + - docfx metadata -f Documentation/docfx.json | tee $LogFile + - docfx build -f Documentation/docfx.json | tee -a $LogFile + artifacts: + paths: + - $DocumentationPath + - $LogFile + +# Deploy the documentation online +pages: + stage: deploy + script: cp -r $DocumentationPath $PagesPath + artifacts: + paths: + - $PagesPath + only: + - master + diff --git a/README.md b/README.md index 970c6e09b83c8a80b3e973a3c3afba21238ac2f3..8a69d2e12656f3f8a3a2b093ad27f928b02efc0e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # LSL4Unity -[](https://tmonseigne.github.io/LSL4Unity/) +[](https://openvibe.gitlabpages.inria.fr/unity-games/LSL4Unity/) **It's a Forks** of an integration approach of the LabStreamingLayer Framework for Unity3D providing the following features.