diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f12c3e7d23f5481a9d63a4119c254b591f46347..7f2aecdf169d8d0a783b8d463103520ab2d51d03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -109,9 +109,18 @@ build-developers-doc: script: - cd ./doc/dev/ - ./build.sh + # Create html documentation + - cd ../../src + - pdoc --html . + # Create archive + - tar cf html.tar ./html + - cd ../doc/dev + - mv ../../src/html.tar ./ artifacts: paths: - doc/dev/documentation.pdf + - doc/dev/documentation.html + - doc/dev/html.tar build-linux: stage: build @@ -167,8 +176,10 @@ build-linux: - cp ../tests_cases/Saar/Saar.pamhyr pamhyr/tests_cases/Saar/ # Copy documentations - mkdir -p pamhyr/doc/ + - mkdir -p pamhyr/doc/html/ - cp ../doc/users/documentation.pdf pamhyr/doc/Pamhyr2-users.pdf - cp ../doc/dev/documentation.pdf pamhyr/doc/Pamhyr2-dev.pdf + - cp ../doc/dev/documentation.html pamhyr/doc/html/dev.html # Create running script - echo "#!/bin/sh" > pamhyr/Pamhyr2 - echo "./pamhyr/pamhyr $@" >> pamhyr/Pamhyr2 diff --git a/doc/dev/build.sh b/doc/dev/build.sh index 476dd5adeed4c75818c2df2f192bde841fb030af..bf1a6790ae09cb2574846829a829802cb7d36112 100755 --- a/doc/dev/build.sh +++ b/doc/dev/build.sh @@ -1,10 +1,17 @@ #! /bin/sh -# Build the PDF - +echo " PDF documentation.org" emacs -Q -q -nw --batch \ --eval "(require 'org)" \ --eval "(require 'ox-latex)" \ --eval "(load-file \"../tools/setup.el\")" \ --file ./documentation.org \ -f org-latex-export-to-pdf + +echo " HTML documentation.org" +emacs -Q -q -nw --batch \ + --eval "(require 'org)" \ + --eval "(require 'ox-latex)" \ + --eval "(load-file \"../tools/setup.el\")" \ + --file ./documentation.org \ + -f org-html-export-to-html diff --git a/doc/users/build.sh b/doc/users/build.sh index 476dd5adeed4c75818c2df2f192bde841fb030af..bf1a6790ae09cb2574846829a829802cb7d36112 100755 --- a/doc/users/build.sh +++ b/doc/users/build.sh @@ -1,10 +1,17 @@ #! /bin/sh -# Build the PDF - +echo " PDF documentation.org" emacs -Q -q -nw --batch \ --eval "(require 'org)" \ --eval "(require 'ox-latex)" \ --eval "(load-file \"../tools/setup.el\")" \ --file ./documentation.org \ -f org-latex-export-to-pdf + +echo " HTML documentation.org" +emacs -Q -q -nw --batch \ + --eval "(require 'org)" \ + --eval "(require 'ox-latex)" \ + --eval "(load-file \"../tools/setup.el\")" \ + --file ./documentation.org \ + -f org-html-export-to-html