Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Outillage
prezbuilder
Commits
fdcb1136
Commit
fdcb1136
authored
Jun 29, 2020
by
Guillaume Perréal
Browse files
Met à jour l'installation (et la doc) pour NodeJS.
parent
c4b62153
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fdcb1136
...
...
@@ -44,7 +44,11 @@ npm-test:
stage
:
test
image
:
node:12
before_script
:
-
sudo npm install --global "git+${CI_REPOSITORY_URL}#${CI_COMMIT_REF_NAME}"
-
apt-get update -yq && apt-get install -yq pandoc wkhtmltopdf
-
mkdir -p $HOME/prezbuilder
-
cd $HOME/prezbuilder
-
npm install "git+${CI_REPOSITORY_URL}#${CI_COMMIT_REF_NAME}"
-
ln -s $HOME/prezbuilder/node_modules/.bin/prezbuilder $HOME/bin/prezbuilder
script
:
-
prezbuilder build src public
...
...
src/index.md
View file @
fdcb1136
...
...
@@ -17,22 +17,6 @@ La présentation que vous regardez a été générée avec prezbuilder !
# Installation
## Avec NodeJS
Prérequis :
-
[
node 12
](
https://nodejs.org/fr/download/
)
-
[
pandoc
](
https://pandoc.org/installing.html
)
-
[
drawio-desktop
](
https://github.com/jgraph/drawio-desktop/releases/latest
)
(
optionel
)
-
[
wkhtmltopdf
](
https://wkhtmltopdf.org/downloads.html
)
(
optionel
)
-
gulp-cli (
`npm install --global gulp-cli`
)
Installation :
```
bash
npm
install
--global
'git+https://gitlab.irstea.fr/pole-is/tools/prezbuilder.git#master'
```
## Avec Docker
L'image gitlab-registry.irstea.fr/pole-is/tools/prezbuilder:master contient
...
...
@@ -45,9 +29,7 @@ Il faut s'authentifier sur la registry Docker de Gitlab si ce n'est pas déjà f
docker login gitlab-registry.irstea.fr
```
Ensuite, le plus simple est de récupérer le script
`prezbuilder-docker`
:
Il est recommandé de récupérer le script
`prezbuilder`
pour faciliter l'utilisation :
Ensuite, le plus simple est de récupérer le script
`prezbuilder-docker`
:
```
console
sudo wget https://gitlab.irstea.fr/pole-is/tools/prezbuilder/-/raw/master/bin/prezbuilder-docker?inline=false -O /usr/local/bin/prezbuilder-docker
...
...
@@ -76,6 +58,25 @@ pages:
-
if
:
$CI_COMMIT_TAG
```
## Avec NodeJS (_a.k.a._ depuis les sources)
Il faudra installer vous-même les prérequis :
-
[
node 12
](
https://nodejs.org/fr/download/
)
-
[
pandoc
](
https://pandoc.org/installing.html
)
-
[
drawio-desktop
](
https://github.com/jgraph/drawio-desktop/releases/latest
)
(
optionel
)
-
[
wkhtmltopdf
](
https://wkhtmltopdf.org/downloads.html
)
(
optionel
)
-
gulp-cli (
`sudo npm install --global gulp-cli`
)
Installation :
```
bash
mkdir
-p
$HOME
/prezbuilder
cd
$HOME
/prezbuilder
npm
install
"git+
${
CI_REPOSITORY_URL
}
#
${
CI_COMMIT_REF_NAME
}
"
sudo ln
-s
$HOME
/prezbuilder/node_modules/.bin/prezbuilder /usr/local/bin/prezbuilder
```
# Utilisation
prezbuild crée une (ou plusieurs) présentation(s) dans
`public/`
à partir du
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment