noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

commit: 0d8f280a8e1d14647aa558095ada8ee677510ba0
parent: 14b961821ebdf0cb4719f93b8895f5871cf91bd4
author: Chris Noxz <chris@noxz.tech>
date:   Sat, 21 Oct 2023 19:49:20 +0200
fix code box overflow
Mbuild2++
Mnoxz.tech/articles/manual-eduroam-connection/index.www3+--
Mnoxz.tech/index.www3+--
Mnoxz.tech/pub/style.css5+++++
4 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/build b/build
@@ -463,6 +463,8 @@ render_main_content() {
 		-e 's/\(src\|alt\)="[^"]*\(grohtml--[0-9]*.png\)/\1="\2/g'          \
 		-e 's/<p align="center"[^>]*>\(<img src="grohtml--[0-9]*.png\)/<p class="grohtml">\1/g' \
 		-e 's/<p align="\(left\|center\|right\)"[^>]*>/<p class="\1">/g'    \
+		-e 's/<pre><code>/<div class="code-wrap"><pre><code>/g'             \
+		-e 's/<\/code><\/pre>/<\/code><\/pre><\/div>/g'                     \
 	| tidy -asxhtml                                                         \
 	| sed -e '/^\s*<dd><\/dd>$/d'                                           \
 	| awk '
diff --git a/noxz.tech/articles/manual-eduroam-connection/index.www b/noxz.tech/articles/manual-eduroam-connection/index.www
@@ -35,8 +35,7 @@ with the name of the installer script you've downloaded):
 .CDS
 .COS
 echo -----BEGIN CERTIFICATE-----; \\
-sed -n '/^Config.CA = """/,/"""/{/^Config.CA = """/!{/"""/!p;};}' \\
-installer.py
+sed -n '/^Config.CA = """/,/"""/{/^Config.CA = """/!{/"""/!p;};}' installer.py
 .COE
 .CDE
 
diff --git a/noxz.tech/index.www b/noxz.tech/index.www
@@ -73,8 +73,7 @@ Public keys
 .CDS
 .COS
 # Add my public ssh key to your machine, if you want me to access it
-mkdir -p ~/.ssh;\\
-curl https://noxz.tech/pub/chrisnoxz.pub >> ~/.ssh/authorized_keys
+mkdir -p ~/.ssh; curl https://noxz.tech/pub/chrisnoxz.pub >> ~/.ssh/authorized_keys
 .COE
 .CDE
 
diff --git a/noxz.tech/pub/style.css b/noxz.tech/pub/style.css
@@ -139,6 +139,11 @@ pre code {
 	padding         : 0;
 }
 
+.code-wrap {
+	overflow        : scroll;
+	display         : grid;
+}
+
 #content {
 	clear           : both;
 	margin          : 0;