update-index: fix
authorNiki Roo <niki@nikiroo.be>
Fri, 28 Feb 2025 12:39:40 +0000 (13:39 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 28 Feb 2025 12:39:40 +0000 (13:39 +0100)
index.md
mkdocs/site
mkdocs/update.sh
update-index.sh

index d27f4c7c275a11d9421b2f343bf3371caf70479f..4cd74edc447c4c3061b52854c695c5db02b5af76 100644 (file)
--- 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)
index 8282b241103eaeaaef0be2497b7e16855943b8f0..794420d4650faf130df6cb3553833bcac2671569 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 8282b241103eaeaaef0be2497b7e16855943b8f0
+Subproject commit 794420d4650faf130df6cb3553833bcac2671569
index a4a6aa7beecda815c30967f4e0b69a694fa7f7d9..970df39292d8d2ae07f4d9dfd3c315c5106d70cb 100755 (executable)
@@ -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 \
index 6979f30bf5858bb2a48033eb8948057a9f93b50c..43edf7284f918e347a63e54a58f4b37e7f8acf4b 100755 (executable)
@@ -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