mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-21 09:29:08 +01:00
Remove old docbook doc related stuff
This commit is contained in:
parent
96d99f5b06
commit
1c42aa3a47
4 changed files with 1 additions and 103 deletions
|
@ -7,13 +7,3 @@ repos:
|
|||
- id: php-stan
|
||||
files: ^src\/.*\.(php)$
|
||||
args: ['--configuration=.phpstan/config.neon']
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: xmlint
|
||||
files: ^doc\/.*\.(docbook)$
|
||||
name: xmlint
|
||||
entry: xmllint --valid --noout doc/LdapSaisie.docbook
|
||||
pass_filenames: false
|
||||
language: system
|
||||
types: [text]
|
||||
pass_filenames: false
|
||||
|
|
8
INSTALL
8
INSTALL
|
@ -78,7 +78,7 @@ Toutes les nuits, un snapshot de l'arbre Git est réalisé et est téléchargeab
|
|||
Racine
|
||||
|
||||
doc/
|
||||
Les fichiers sources de la documentation (docbook).
|
||||
Les fichiers sources de la documentation (Markdown).
|
||||
lsexample/
|
||||
Les fichiers relatifs à l'annuaire d'exemple.
|
||||
src/
|
||||
|
@ -186,17 +186,11 @@ présente dans les sources du projet dans le dossier lsexample.
|
|||
Nom du fichier de log des mises à jour.
|
||||
THEME
|
||||
Le nom du theme à installer (facultatif et non traité dans ce tutoriel).
|
||||
BUILD_DOC
|
||||
Variable booléene définissant si la documentation doit être compiler en utilisant le script buildDocExports.sh.
|
||||
Ceci ne sera pas expliqué dans ce tutoriel et nous partirons donc du principe que cette variable est à 0.
|
||||
|
||||
########
|
||||
# Note #
|
||||
########
|
||||
#
|
||||
# * D'autres variables sont présentes dans ce fichier et concerne uniquement la compilation de la documentation.
|
||||
# Elle peuvent être ignorée à partir du moment ou la variable BUILD_DOC vaut 0.
|
||||
#
|
||||
# * Il est possible d'utiliser dans ce fichier de configuration la variable bash $ROOT_DIR correspondant au chemin
|
||||
# du dossier d'installation, c'est à dire dans notre exemple /var/www/ldapsaisie.
|
||||
#
|
||||
|
|
|
@ -16,39 +16,3 @@ THEME_IMG_REF="default"
|
|||
|
||||
# Webserver service reload command to run on gettext MO files changed
|
||||
#WEBSERVER_RELOAD_CMD='sudo service apache2 force-reload'
|
||||
|
||||
# Do doc export ?
|
||||
BUILD_DOC=1
|
||||
|
||||
# The export dir
|
||||
# If EXPORT_DIR is a zero length string, will not export doc
|
||||
EXPORT_DOC_DIR=/var/www/ldapsaisie-doc
|
||||
|
||||
# PDF export name file
|
||||
# If PDF is a zero length string, pdf doc export will not build
|
||||
PDF=LdapSaisie.pdf
|
||||
|
||||
# EPUB export name file
|
||||
# If EPUB is a zero length string, epub doc export will not build
|
||||
EPUB=LdapSaisie.epub
|
||||
|
||||
# ALL_IN_ONE export name
|
||||
# If ALL_IN_ONE is a zero length string, all-in-one doc export will not build
|
||||
ALL_IN_ONE=all-in-one
|
||||
|
||||
# On-line export name
|
||||
# If ONLINE is a zero length string, on-line doc export will not build
|
||||
ONLINE=online
|
||||
|
||||
# Docbook export name
|
||||
# If DOCBOOK is a zero length string, docbook doc export will not buil
|
||||
DOCBOOK=docbook
|
||||
|
||||
# The CSS file to use in export
|
||||
CSS=$ROOT_DIR/doc/styles/LS.css
|
||||
|
||||
# The image doc directory
|
||||
IMAGES=$ROOT_DIR/doc/images
|
||||
|
||||
# The name of last update file
|
||||
LAST_UPDATE_FILE=$EXPORT_DOC_DIR/last_update.txt
|
||||
|
|
|
@ -80,19 +80,6 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
if [ $BUILD_DOC -eq 1 ]
|
||||
then
|
||||
msg "-> Clean the doc : " -en
|
||||
cd $ROOT_DIR/doc >> $LOG_FILE && make clean >> $LOG_FILE && cd - >> $LOG_FILE
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
msg "Error"
|
||||
exit 1
|
||||
else
|
||||
msg "Ok"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$THEME" != "" ]
|
||||
then
|
||||
msg "\t\t-> Remove theme : " -en
|
||||
|
@ -299,40 +286,3 @@ then
|
|||
else
|
||||
msg "Changed detected :\n\n/!\\ You have to force-reload your webserver to handle it ! /!\\\n\n"
|
||||
fi
|
||||
|
||||
if [ $BUILD_DOC -eq 1 ]
|
||||
then
|
||||
[ -n "$LAST_UPDATE_FILE" ] && [ "`$ROOT_DIR/checkDocExportsNecessity.sh`" == "" ] && echo "Export documentation is not necessary. Pass." && exit
|
||||
msg "-> Do you want build the documentation (y/N) ? " -en
|
||||
read a
|
||||
if [ "$a" == "y" -o "$a" == "Y" ]
|
||||
then
|
||||
msg "-> Build the doc : " -en
|
||||
cd $ROOT_DIR/doc
|
||||
|
||||
make clean >> $LOG_FILE 2>&1
|
||||
make >> $LOG_FILE 2>&1 &
|
||||
|
||||
export P=$!
|
||||
|
||||
trap exitwhell INT
|
||||
|
||||
function exitwhell() {
|
||||
[ -n "$P" ] && kill -9 $P 2> /dev/null
|
||||
echo " -- INT -- "
|
||||
exit 1
|
||||
}
|
||||
|
||||
while [ -d /proc/$P ]
|
||||
do
|
||||
echo -n .
|
||||
sleep 1
|
||||
done
|
||||
echo done.
|
||||
|
||||
if [ -n "$EXPORT_DOC_DIR" ]
|
||||
then
|
||||
$ROOT_DIR/buildDocExports.sh
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue