-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Ajouter les fichiers de configuration pour la présentation
- Loading branch information
DEGODEZ Sebastien
authored and
DEGODEZ Sebastien
committed
Aug 19, 2024
0 parents
commit 24ac58e
Showing
12 changed files
with
289 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Deploiement le site MARP vers GitHub Pages | ||
concurrency: marp-to-pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
jobs: | ||
build: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
pages: write | ||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Ensure build dir exists | ||
run: mkdir -p build | ||
|
||
- name: Copy images directory (if exists) | ||
run: if [[ -d presentation/images ]]; then cp -R presentation/images build/images; fi | ||
|
||
- name: Build HTML from Build (slide.md) | ||
uses: docker://marpteam/marp-cli:v3.4.0 | ||
with: | ||
args: presentation/slide.md -o build/index.html | ||
env: | ||
MARP_USER: root:root | ||
|
||
|
||
- name: Build PDF from Marp (slide.pdf) | ||
uses: docker://marpteam/marp-cli:v3.4.0 | ||
with: | ||
args: presentation/slide.md -o build/slide.pdf --pdf | ||
env: | ||
MARP_USER: root:root | ||
|
||
- name: Build PPTX from Marp (slide.pptx) | ||
uses: docker://marpteam/marp-cli:v3.4.0 | ||
with: | ||
args: presentation/slide.md -o build/slide.pptx --pptx | ||
env: | ||
MARP_USER: root:root | ||
|
||
- name: Upload slide artifacts | ||
if: ${{ github.event_name == 'push' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: presentation | ||
path: | | ||
./build/*.pdf | ||
./build/*.pptx | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload entire repository | ||
path: 'build' | ||
|
||
- name: Deploy production to GitHub Pages | ||
if: ${{ github.event_name == 'push' }} | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Ignore build artifacts | ||
build/ | ||
dist/ | ||
|
||
# Ignore IDE and editor files | ||
*.iml | ||
|
||
# Ignore logs and temporary files | ||
*.log | ||
*.tmp | ||
|
||
# Ignore compiled binaries | ||
*.exe | ||
*.dll | ||
*.so | ||
|
||
# Ignore backup files | ||
*.bak | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
allowLocalFiles: true | ||
themeSet: ./presentation/themes | ||
lang: fr | ||
options: | ||
minifyCSS: true | ||
html: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"markdown.marp.enableHtml": true, | ||
"markdown.marp.themes": [ | ||
"./presentation/themes/custom-default.css" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build HTML from Marp", | ||
"type": "shell", | ||
"command": "docker run --rm -v .:/home/marp/app/ -e LANG=$LANG marpteam/marp-cli ./presentation/slide.md -o ./build/index.html", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Build PDF from Marp", | ||
"type": "shell", | ||
"command": "docker run --rm --init -v .:/home/marp/app/ -e LANG=$LANG -e PUPPETEER_TIMEOUT=0 marpteam/marp-cli ./presentation/slide.md -o build/slide.pdf --pdf", | ||
"group": { | ||
"kind": "build" | ||
} | ||
}, | ||
{ | ||
"label": "Build PPTX from Marp", | ||
"type": "shell", | ||
"command": "docker run --rm --init -v .:/home/marp/app/ -e LANG=$LANG -e PUPPETEER_TIMEOUT=0 marpteam/marp-cli ./presentation/slide.md --html -o build/slide.pptx --pptx", | ||
"group": { | ||
"kind": "build" | ||
} | ||
}, | ||
{ | ||
"label": "Watch Markdown", | ||
"type": "shell", | ||
"command": "docker run --rm --init -v .:/home/marp/app/ -e LANG=$LANG -p 8080:8080 -p 37717:37717 marpteam/marp-cli -w ./presentation/slide.md -s -I ./presentation", | ||
"group": { | ||
"kind": "build" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Changelog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 DEGODEZ Sébastien | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Bienvenue dans le projet Slide-MARP | ||
|
||
Ce projet contient les diapositives pour une présentation utilisant MARP, un outil de création de diapositives en Markdown. | ||
|
||
## Comment utiliser ce projet | ||
|
||
1. Clonez ce dépôt sur votre machine locale. | ||
2. Ouvrez le fichier `slides.md` dans votre éditeur de texte préféré. | ||
3. Modifiez les diapositives en utilisant la syntaxe Markdown. | ||
4. Lancez MARP pour générer les diapositives au format PDF ou HTML. | ||
|
||
## Syntaxe Markdown | ||
|
||
La syntaxe Markdown est simple et intuitive. Vous pouvez utiliser des balises pour formater le texte, insérer des images, créer des listes et bien plus encore. Consultez la documentation de Markdown pour en savoir plus sur toutes les possibilités. | ||
|
||
## Générer les présentations | ||
|
||
Pour générer les diapositives, vous devez avoir Docker installés sur votre machine. Suivez les instructions d'installation fournies dans la documentation officielle de MARP. | ||
|
||
Une fois que vous avez installé Docker, exécutez la commande suivante dans le répertoire du projet : | ||
|
||
```bash | ||
docker run --rm -v $pwd/presentation/:/home/marp/app/ -e LANG=$LANG marpteam/marp-cli slides.md --pdf -o output.pdf | ||
``` | ||
|
||
Cela générera un fichier PDF contenant les diapositives. | ||
|
||
N'hésitez pas à ouvrir une pull request si vous souhaitez contribuer à ce projet. Nous serons ravis de recevoir vos suggestions et améliorations. | ||
|
||
Une liste de tâche est présente pour vscode dans Terminal >> Run Task. | ||
|
||
## Contribuer | ||
|
||
Si vous souhaitez contribuer à ce projet, n'hésitez pas à ouvrir une pull request. Nous serons ravis de recevoir vos suggestions et améliorations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
slide.html | ||
slide.pdf | ||
slide.pptx |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
marp: true | ||
theme: custom-default | ||
class: | ||
- invert | ||
author: DEGODEZ Sébastien | ||
--- | ||
<!-- | ||
_class: | ||
- lead | ||
- invert | ||
paginate: skip | ||
--> | ||
|
||
# Slide MARP | ||
|
||
![bg opacity:.7](./images/bg.jpg) | ||
|
||
--- | ||
# DEGODEZ Sébastien | ||
|
||
<!-- | ||
_class: | ||
- lead | ||
- invert | ||
footer: '' | ||
paginate: skip | ||
--> | ||
![bg opacity:.7](./images/bg.jpg) | ||
|
||
##### Software Engineer chez AXA en France | ||
|
||
<i class="fa-brands fa-twitter"></i> Twitter: | ||
<i class="fa-brands fa-linkedin"></i> LinkedIn: | ||
<i class="fa-brands fa-github"></i> GitHub: | ||
|
||
--- | ||
<!-- | ||
paginate: true | ||
footer: 'DEGODEZ Sébastien - https://www.linkedin.com/in/sebastien-degodez' | ||
--> | ||
## What? | ||
|
||
[Marp](https://marp.app/) permet de créer des slides en markdown | ||
|
||
> Markdown is a lightweight markup language for creating formatted text using a plain-text editor. | ||
> | ||
> https://en.wikipedia.org/wiki/Markdown | ||
--- | ||
## Slide One | ||
|
||
* **Exemple 1** | ||
* Exemple 2 | ||
* *Exemple 3* | ||
* ~~Exemple 4~~ | ||
|
||
|
||
--- | ||
## Slide Two | ||
|
||
- C# | ||
- JAVA | ||
|
||
```csharp | ||
public class MySlide | ||
{ | ||
public string Title { private set; get;} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* custom-default.css */ | ||
/* @theme custom-default */ | ||
|
||
@import 'gaia'; | ||
|
||
/* Add custom styles here */ | ||
code { | ||
font-family: 'Fira Code', monospace; | ||
} | ||
|
||
|
||
@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css' |