From 41f73f69c0327746237a60146ca17bf910610929 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 28 Feb 2025 13:39:40 +0100 Subject: [PATCH] update-index: fix --- index.md | 37 +++++++++++++++++++++++-------------- mkdocs/site | 2 +- mkdocs/update.sh | 4 ++++ update-index.sh | 6 +++++- 4 files changed, 33 insertions(+), 16 deletions(-) diff --git a/index.md b/index.md index d27f4c7..4cd74ed 100644 --- a/index.md +++ b/index.md @@ -2,20 +2,29 @@ Some documentation: -* Phone: - * [Framagenda](/Phone/Framagenda) * Politique: - * [Le droit d'asile (France)](/Politique/Le%20droit%20d%27asile%20pour%20les%20nuls) -* History - * [Ancient Rome](/Ancient%20Rome) + * [Le droit d'asile (France)](/Politique/Le%20droit%20d'asile%20pour%20les%20nuls) +* History: + * Ancient Rome: + * [Waking up](/History/Ancient%20Rome/Waking%20up) * Tech: - * [Dark-Olympic](/Tech/color-theme) - * [Git](/Tech/git) - * [MP4 Conversion](/Tech/mp4) - * [Linux display](/Tech/scaling) - * [Web css](/Tech/web-css) - * SteamDeck: - * [Docker](/Tech/SteamDeck/docker) - * [Scaling](/Tech/SteamDeck/scaling) + * [DosBox](/Tech/dosbox) + * [Dark-Olycmpic](/Tech/color-theme) + * [SteamDeck](/Tech/SteamDeck): * [Game Mode](/Tech/SteamDeck/game-mode) - + * [Force X11](/Tech/SteamDeck/force-x11) + * [Docker](/Tech/SteamDeck/docker) + * [SSH](/Tech/ssh) + * [Web CSS](/Tech/web-css) + * [MP4 Conversion](/Tech/mp4) + * Raspi: + * [Info](/Tech/Raspi/info) + * [MHS 3.5 Inch Display](/Tech/Raspi/MHS%203.5%20Inch%20Display) + * [Linux display scaling](/Tech/scaling) + * [Git](/Tech/git) + * [Firefox](/Tech/firefox) + * [Bash](/Tech/bash) + * [Qemu](/Tech/qemu) + * [Docker](/Tech/docker) +* Phone: + * [Framagenda](/Phone/Framagenda) diff --git a/mkdocs/site b/mkdocs/site index 8282b24..794420d 160000 --- a/mkdocs/site +++ b/mkdocs/site @@ -1 +1 @@ -Subproject commit 8282b241103eaeaaef0be2497b7e16855943b8f0 +Subproject commit 794420d4650faf130df6cb3553833bcac2671569 diff --git a/mkdocs/update.sh b/mkdocs/update.sh index a4a6aa7..970df39 100755 --- a/mkdocs/update.sh +++ b/mkdocs/update.sh @@ -11,6 +11,10 @@ if [ "$1" = "" ]; then exit 42 fi cd .. + + echo updating index... + ./update-index.sh > index.md + rm -f mkdocs/ok mkdocs/error.txt touch mkdocs/wip OPTS="-v $PWD:$DDIR:rw" /opt/docker/launch.sh \ diff --git a/update-index.sh b/update-index.sh index 6979f30..43edf72 100755 --- a/update-index.sh +++ b/update-index.sh @@ -23,10 +23,14 @@ work() { pre=" $pre" fi elif [ $cur_lvl -lt $lvl ]; then - pre=$(echo "$pre" | cut -c5-) + for i in $(seq 1 $((lvl - cur_lvl)) ); do + pre=$(echo "$pre" | cut -c5-) + done fi if [ "$ln" = "" ]; then + echo \# Content table + echo echo Some documentation: echo elif [ -d "$ln" ]; then -- 2.27.0