mirror of https://gitlab.com/pamhyr/pamhyr2
ci: Add HTML documentation.
parent
edc5b65234
commit
2bb783b5d4
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue