Skip to content
Snippets Groups Projects
Commit 62fb1819 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix starting h1

parent cc9ab760
No related branches found
No related tags found
1 merge request!284OP#7559 Doku der Icinga checks - keine H1 Überschriften verwenden https://projects.iml.unibe.ch/work_packages/7559
# Check_requirements ## Check_requirements
## Introduction
**check_requirements** is a plugin to run different check to show the ability to run an application. You can these checks **check_requirements** is a plugin to run different check to show the ability to run an application. You can these checks
......
# Check_smartstatus ## Check_smartstatus
## Introduction
**check_smartstatus** is a plugin run a smartctl check to verify the disk status of all local harddisks/ ssds. **check_smartstatus** is a plugin run a smartctl check to verify the disk status of all local harddisks/ ssds.
......
# check SNMP data ## Check SNMP data
## Introduction
**check_snmp_data** is a plugin for fetching performance data with a set of given OIDs. **check_snmp_data** is a plugin for fetching performance data with a set of given OIDs.
......
# check SNMP Synology ## Check SNMP Synology
## Introduction
**check_snmp_data** is a plugin to check the status of a Synology storage using snmp v2 or v3. **check_snmp_data** is a plugin to check the status of a Synology storage using snmp v2 or v3.
......
# Check ssl certs ## Check ssl certs
## Introduction
**check_ssl_certs** is a plugin to check local certificats. **check_ssl_certs** is a plugin to check local certificats.
......
# Check Systemd unit ## Check Systemd unit
## Introduction
This check shows the status of a systemd unit. This check shows the status of a systemd unit.
......
#!/bin/bash
tmpfile=/tmp/tmp_myfile_$USER__$$
cd "$( dirname "$0" )"
for f in *.md; do
if head "$f" | grep -q "^# "; then
echo
echo ">>>>> FIX $f"
echo
cp -p "$f" "$tmpfile"
if grep -q "^## Introduction" "$f"; then
echo "Replace '## Introduction'"
sed -i -e "s/^## Introduction.*//" "$tmpfile"
head -1 "$f" | tail -1 | grep "." && sed -i -e '2,3d' "$tmpfile"
# make 1st h1 smaller
sed -i -e "0,/^# /{s/^# /## /}" "$tmpfile"
else
echo "Move Headers"
if grep "^###### " "$f"; then
echo "ABORT: H6 was found that cannot moved to smaller level."
exit 1
fi
for header in "#####" "####" "###" "##" "#"
do
sed -i -e "s/^$header /#$header /g" "$tmpfile"
done
fi
diff -u --color "$f" "$tmpfile"
echo
read -p "Apply changes on '$f' [Y/n]? > " apply
if [ "$apply" = "" ] || [ "$apply" = "y" ]|| [ "$apply" = "Y" ]; then
echo "Applying ..."
mv "$tmpfile" "$f"
else
echo "Keeping current version."
rm "$tmpfile"
fi
sleep 1
echo
echo
echo
echo
echo
echo
echo ----------------------------------------------------------------------
else
echo "OK $f"
fi
done
\ No newline at end of file
# check NAME ## Check NAME
## Introduction Script: `check_NAME`
**check_NAME** is a plugin for ... It is a plugin for ...
## Syntax ## Syntax
......
## Shared functions
There is one include script used by all checks:
[inc_pluginfunctions](inc_pluginfunctions.md)
# Shared functions ## Shared functions
## Introduction
All scripts start with sourcing a shared bash file All scripts start with sourcing a shared bash file
......
# IML Checks for Icinga / Nagios ## IML Checks for Icinga / Nagios
## Introduction
IML - Institute for Medical Education at university in Bern, Switzerland. IML - Institute for Medical Education at university in Bern, Switzerland.
......
/* /*
override css elements of daux.io blue theme override css elements of daux.io blue theme
version 2024-10-24 version 2024-10-31
*/ */
:root { :root {
/* Axels Overrides */ /* Axels Overrides */
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
--sidebar-background: var(--body-background); --sidebar-background: var(--body-background);
--sidebar-border-color: none; --sidebar-border-color: none;
--sidebar-link-active-background: #f0f4f6; --sidebar-link-active-background: #f0f4f6;
--toc--inner-border-color: none;
/* Axels custom values */ /* Axels custom values */
--axel_bg-toc: var(--body-background); --axel_bg-toc: #f8fafa;
--axel_bg-toc-head: #f8f8f8; --axel_bg-toc-head: #f8f8f8;
--axel_brand-background: none; --axel_brand-background: none;
--axel_brand-pre-background: rgb(255, 0, 51); --axel_brand-pre-background: rgb(255, 0, 51);
...@@ -35,8 +36,8 @@ ...@@ -35,8 +36,8 @@
--axel_h2-hero-bottom: 2px solid #912; --axel_h2-hero-bottom: 2px solid #912;
--axel_h3: #333; --axel_h3: #333;
--axel_h3-bottom: 0px solid #ddd; --axel_h3-bottom: 0px solid #ddd;
--axel_h4: #478; --axel_h4: #666;
--axel_h5: #699; --axel_h5: #888;
--axel_hero_bg: #faf8f6; --axel_hero_bg: #faf8f6;
--axel_img-border: 2px dashed #ccc; --axel_img-border: 2px dashed #ccc;
--axel_nav-bg: #fcfcfc; --axel_nav-bg: #fcfcfc;
...@@ -60,6 +61,7 @@ ...@@ -60,6 +61,7 @@
--sidebar-background: var(--body-background); --sidebar-background: var(--body-background);
--sidebar-border-color: none; --sidebar-border-color: none;
--sidebar-link-active-background: #333; --sidebar-link-active-background: #333;
--sidebar-link-color: var(--link-color);
/* Axels custom values */ /* Axels custom values */
--axel_bg-toc: var(--body-background); --axel_bg-toc: var(--body-background);
--axel_bg-toc-head: #333; --axel_bg-toc-head: #333;
...@@ -126,19 +128,28 @@ a.Brand { ...@@ -126,19 +128,28 @@ a.Brand {
/* ---------- page content ---------- */ /* ---------- page content ---------- */
.s-content { .s-content {
padding-top: 1em; padding-top: 6em;
} }
/* .s-content h1::before{ h1::before{color: #aaa;content: 'h1: ';}
background: #fee; h2::before{color: #aaa;content: 'h2: ';}
border: 3px double #f00; h3::before{color: #aaa;content: 'h3: ';}
h4::before{color: #aaa;content: 'h4: ';}
h5::before{color: #aaa;content: 'h5: ';}
h6::before{color: #aaa;content: 'h6: ';}
h1::before{color: #aaa;content: '';}
h2::before{color: #888;content: ': : ';}
h3::before{color: #aaa;content: '> ';}
h4::before{color: #aaa;content: '_ ';}
h5::before{color: #aaa;content: 'h5: ';}
h6::before{color: #aaa;content: 'h6: ';}
.s-content h1::before{
color: #f00; color: #f00;
content: 'FEHLER: Keine Überschrift 1 in einer Markdown-Datei für Daux verwenden! Mit H2 beginnen!'; content: 'FEHLER: Keine Überschrift 1 in einer Markdown-Datei für Daux verwenden! Mit H2 beginnen!';
display: block; content: '!! h1 !! ';
font-size: 50%; }
padding: 0.3em;
margin-bottom: 2em;
} */
.s-content h1 { .s-content h1 {
background: var(--axel_h1-bg); background: var(--axel_h1-bg);
...@@ -159,8 +170,14 @@ a.Brand { ...@@ -159,8 +170,14 @@ a.Brand {
border-bottom: var(--axel_h2-bottom); border-bottom: var(--axel_h2-bottom);
} }
h1:first-of-type { .Page__header > h1:first-of-type {
margin-top: 0em; margin-top: 0em;
margin-left: -1em;
padding-left: 1em;
position: fixed;
min-width: 100%;
background: var(--body-background);
box-shadow: 0 2em 1em var(--body-background);
} }
h2:first-of-type { h2:first-of-type {
...@@ -211,6 +228,8 @@ ul.TableOfContents a{ ...@@ -211,6 +228,8 @@ ul.TableOfContents a{
} }
.s-content pre { .s-content pre {
background: var(--axel_pre-background); background: var(--axel_pre-background);
border-radius: 0.5em;
padding: 1rem;
} }
/* FIX smaller fnt size in tables */ /* FIX smaller fnt size in tables */
...@@ -262,14 +281,6 @@ div.hero h2 { ...@@ -262,14 +281,6 @@ div.hero h2 {
} }
/* ---------- TOC ---------- */ /* ---------- TOC ---------- */
@media(min-width:1700px) {
.TableOfContentsContainer {
position: fixed;
right: 2em;
top: 1em;
height: 96%;
}
}
.TableOfContentsContainer { .TableOfContentsContainer {
background-color: var(--axel_bg-toc); background-color: var(--axel_bg-toc);
...@@ -279,9 +290,11 @@ div.hero h2 { ...@@ -279,9 +290,11 @@ div.hero h2 {
.s-content .TableOfContentsContainer h4 { .s-content .TableOfContentsContainer h4 {
background-color: var(--axel_bg-toc-head); background-color: var(--axel_bg-toc-head);
border-top-left-radius: 1em; border-top-left-radius: 1em;
border-bottom: 2px solid var(--axel_bg-toc-bottom-border);
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 0.3em; padding: 0.3em;
display: none;
} }
.TableOfContentsContainer__content { .TableOfContentsContainer__content {
...@@ -300,6 +313,16 @@ ul.TableOfContents ul { ...@@ -300,6 +313,16 @@ ul.TableOfContents ul {
text-decoration: underline; text-decoration: underline;
} }
@media(min-width:1700px) {
.TableOfContentsContainer {
background: none;
position: fixed;
right: 2em;
top: 4em;
height: 90%;
}
}
/* ----- Icons on links --- */ /* ----- Icons on links --- */
.EditOn a::before{ .EditOn a::before{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment