From ca6bdad8888e93cb1eff2d5b2f74d8b29f701cc3 Mon Sep 17 00:00:00 2001 From: Gllmar Date: Thu, 12 Sep 2024 12:38:32 -0400 Subject: [PATCH] relative path --- .run/10_generate_sidebar.sh | 5 ++++- _sidebar.md | 37 +++++++++++++++++---------------- activites/lx_midi_map/README.md | 4 ++++ contenus/1_lumieres/README.md | 7 ++++++- contenus/README.md | 2 +- index.html | 3 ++- 6 files changed, 36 insertions(+), 22 deletions(-) diff --git a/.run/10_generate_sidebar.sh b/.run/10_generate_sidebar.sh index f27d690..829b3c0 100644 --- a/.run/10_generate_sidebar.sh +++ b/.run/10_generate_sidebar.sh @@ -32,9 +32,11 @@ generate_sidebar() { if [[ -z "$title" ]]; then title=$(basename "$dir_path") fi - # Remove any double slashes from the path + # Remove any double slashes from the path and add leading slash for absolute path local clean_path clean_path=$(echo "$dir_path/" | sed 's://:/:g') + clean_path="/${clean_path}" # Add leading slash for absolute path + echo "$indent* [$title]($clean_path)" >> "$SIDEBAR_FILE" echo "Added: $clean_path with title '$title'" @@ -92,6 +94,7 @@ generate_readme_in_subfolders() { local clean_subdir_path clean_subdir_path=$(echo "$subdir" | sed 's://:/:g') + clean_subdir_path="/${clean_subdir_path}" # Add leading slash for absolute path new_content+="* [$subdir_title]($clean_subdir_path)\n" echo "Generated link for $clean_subdir_path with title '$subdir_title'" diff --git a/_sidebar.md b/_sidebar.md index d0e1c47..d621ecc 100644 --- a/_sidebar.md +++ b/_sidebar.md @@ -1,18 +1,19 @@ -* [Activités ](activites/) - * [Brancher des lampes](activites/lx_3_lampes/) - * [Midi Map](activites/lx_midi_map/) -* [Objectifs d'apprentissage ](apprentissages/) -* [Contenus](contenus/) - * [Lumière ](contenus/1_lumieres/) - * [DMX](contenus/1_lumieres/DMX/) - * [QLC+](contenus/1_lumieres/QLC/) - * [Lampe Disponible](contenus/1_lumieres/lampes/) - * [Audio](contenus/2_audio/) - * [Video](contenus/3_video/) - * [Plugdata](contenus/multimedia/plugdata/) - * [Objectifs](contenus/objectifs/) -* [Cours](cours/) -* [Description ](di/) -* [Évaluations](evaluations/) -* [Médiagraphie](mediagraphie/) -* [PIEA](piea/) +* [Activités ](/activites/) + * [Brancher des lampes](/activites/lx_3_lampes/) + * [Midi Map](/activites/lx_midi_map/) +* [Objectifs d'apprentissage ](/apprentissages/) +* [Contenus](/contenus/) + * [Lumière](/contenus/1_lumieres/) + * [DMX](/contenus/1_lumieres/DMX/) + * [QLC+](/contenus/1_lumieres/QLC/) + * [Lumière ](/contenus/1_lumieres/elements/) + * [Lampes disponibles](/contenus/1_lumieres/lampes/) + * [Audio](/contenus/2_audio/) + * [Video](/contenus/3_video/) + * [Plugdata](/contenus/multimedia/plugdata/) + * [Objectifs](/contenus/objectifs/) +* [Cours](/cours/) +* [Description ](/di/) +* [Évaluations](/evaluations/) +* [Médiagraphie](/mediagraphie/) +* [PIEA](/piea/) diff --git a/activites/lx_midi_map/README.md b/activites/lx_midi_map/README.md index eb69e1e..6545715 100644 --- a/activites/lx_midi_map/README.md +++ b/activites/lx_midi_map/README.md @@ -32,7 +32,11 @@ [Patch Plugdata Analyse](https://raw.githubusercontent.com/tim-montmorency/582513-conception/main/activites/lx_midi_map/analyse_audio.pd.zip) +#### Lien relatifs +[Patch Plugdata lfo](plugdata-lfo-ctl.pd) + +[Patch Plugdata Analyse](analyse_audio.pd) ### Configuration QLC diff --git a/contenus/1_lumieres/README.md b/contenus/1_lumieres/README.md index fa1c0d5..aeed282 100644 --- a/contenus/1_lumieres/README.md +++ b/contenus/1_lumieres/README.md @@ -1,4 +1,9 @@ # Lumière - + +* [DMX](/contenus/1_lumieres/DMX/README.md) +* [QLC+](/contenus/1_lumieres/QLC/README.md) +* [Lumière ](/contenus/1_lumieres/elements/README.md) +* [Lampes disponibles](/contenus/1_lumieres/lampes/README.md) + diff --git a/contenus/README.md b/contenus/README.md index e686437..bca2fa1 100644 --- a/contenus/README.md +++ b/contenus/README.md @@ -2,7 +2,7 @@ -* [Lumière ](/contenus/1_lumieres/README.md) +* [Lumière](/contenus/1_lumieres/README.md) * [Audio](/contenus/2_audio/README.md) * [Video](/contenus/3_video/README.md) * [Objectifs](/contenus/objectifs/README.md) diff --git a/index.html b/index.html index 5705791..0c2dfa4 100644 --- a/index.html +++ b/index.html @@ -46,12 +46,13 @@ auto2top: true, loadSidebar: true, // Enable sidebar loading subMaxLevel: 4, // Adjust the level to include in TOC + relativePath: true, // relative path enable copyCode: { buttonText: '📄', errorText: '⚠️', successText: '✅ ', }, - unhashtagLinkExtensions: ['.pdf', '.html', '.docx' ], + unhashtagLinkExtensions: ['.pdf', '.html', '.docx' ,'.pd' ], plugins: [ // Lightbox plugin function (hook, vm) {