Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Doc fr CIDOC CRM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GT-CIDOC-CRM
GT-traduction-CIDOC-CRM-FR
Doc fr CIDOC CRM
Commits
baef455b
Commit
baef455b
authored
1 month ago
by
Bertrand DAVID-JACQUOT
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
5e4c8409
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#51053
failed
1 month ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-78
2 additions, 78 deletions
.gitlab-ci.yml
with
2 additions
and
78 deletions
.gitlab-ci.yml
+
2
−
78
View file @
baef455b
stages
:
-
build
-
deploy
create_htmls
:
image
:
name
:
pandoc/core
# image docker spécifique à pandoc (ni alpine ni ubuntu serveur n'ont pandoc dans leur dépôt)
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
artifacts
:
# récupération des fichiers issue du build pour le déployer au 'stage' deploy
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths
:
-
./*.html
-
./textes/*
-
./assets/*.css
-
./assets/icons/*.svg
stage
:
build
when
:
manual
script
:
-
pandoc --version
-
echo "converti les pages d'accueil (home, le projet de traduction, comment participer…)"
-
pandoc -f markdown textes/home.md > home-part.html
-
pandoc -f markdown textes/le-projet-de-traduction.md > le-projet-de-traduction-part.html
-
pandoc -f markdown textes/comment-participer.md > comment-participer-part.html
-
pandoc -f markdown textes/credits.md > credits-part.html
-
pandoc -f markdown textes/mentions-legales.md > mentions-legales-part.html
-
pandoc -f markdown textes/contact.md > contact-part.html
-
echo "concatène et convertit les entities/e*.md -> entities.html"
# création du sommaire des entités
-
grep "^# E" entities/e??.md | sed -f utils/toc-entities.sed > entities-summary.html
# concaténation, conversion markdown -> html et application correction SED (css…) des entitées
-
pandoc -f markdown entities/e*.md > entities.html
# création du sommaire des propriétés
-
grep "^# P" properties/p???.md | sed -f utils/toc-properties.sed > properties-summary.html
# concaténation et conversion markdown -> html des propriétés
-
echo "concatène et convertit les properties/p*.md -> properties.html"
-
pandoc -f markdown properties/p*.md > properties.html
# crée la sidebar (menu de gauche) utile à plusieurs pages
-
cat html/sidebar-part1.html entities-summary.html html/sidebar-part2.html properties-summary.html html/sidebar-part3.html > sidebar.html
# création des pages d'accueil (home, le projet de traduction, comment participer) du projet
-
cat html/index-part1.html sidebar.html html/index-part2.html home-part.html html/footer.html > home.html
-
cat html/index-part1.html sidebar.html html/index-part2.html le-projet-de-traduction-part.html html/footer.html > le-projet-de-traduction.html
-
cat html/index-part1.html sidebar.html html/index-part2.html comment-participer-part.html html/footer.html > comment-participer.html
-
cat html/index-part1.html sidebar.html html/index-part2.html credits-part.html html/footer.html > credits.html
-
cat html/index-part1.html sidebar.html html/index-part2.html mentions-legales-part.html html/footer.html > mentions-legales.html
-
cat html/index-part1.html sidebar.html html/index-part2.html contact-part.html html/footer.html > contact.html
# création de l'introduction de la traduction (introduction-part.html)
-
pandoc -f markdown textes/01_00_introduction.md > introduction-part.html
-
cat html/index-part1.html sidebar.html html/index-part2.html introduction-part.html html/footer.html > introduction.html
# création de la page principale (index.html)
-
cat html/index-part1.html sidebar.html html/index-part2.html entities.html properties.html html/footer.html > index.html
# applique des modifications pour modifier/ajouter des styles CSS notamment
-
sed -f utils/css-tables.sed -i index.html
#- echo "création de la page d'accueil"
#- pandoc --standalone -f markdown index.md > home.html
# suppression des fichiers intermédiaires
-
rm *-summary.html
job_show
:
#tags: # perment d'utiliser le runner shell
# - shell
# - arar
stage
:
deploy
when
:
manual
script
:
# avant de copier dedans… il faut les créer… au moins la 1ère fois
-
mkdir -p public/cidoc-crm-fr/assets/icons/
-
ls -dla
-
ls -la assets/
-
ls -la public/cidoc-crm-fr/
# ajoute les fichiers d'assets (CSS, JS… icons svg)
-
mv assets/*.css public/cidoc-crm-fr/assets/
-
mv assets/*.js public/cidoc-crm-fr/assets/
-
mv assets/icons/*.svg public/cidoc-crm-fr/assets/icons/
# màj du .htaccess avec la ré-écriture d'URL
-
mv utils/.htaccess public/cidoc-crm-fr/
# déplace les fichiers html dans le répertoire de "production"
-
mv index.html home.html le-projet-de-traduction.html comment-participer.html introduction.html credits.html mentions-legales.html contact.html public/cidoc-crm-fr/
# rm sidebar.html
# The Docker image that will be used to build your app
image
:
pandoc:core
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment