commit 8f2adeae9279a3bb75310b34a41c6f895cac887c Author: EpicKiwi Date: Sun Oct 29 15:34:12 2023 +0100 Added customizations diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29a2f50 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +logo/favicon-*.png \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5894c8 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Dokuwiki Customizations + +Ensemble de customizations pour le dokuwiki du LOL + +## Installation + +Pour installer les customizations, lancez simplement le script `./install.sh`. +Il s'occupera de copier les fichiers dans `DOKUWIKI_CUSTOM` et `DOKUWIKI_CUSTOM_LOGO`. \ No newline at end of file diff --git a/custom/header.html b/custom/header.html new file mode 100644 index 0000000..b3b940c --- /dev/null +++ b/custom/header.html @@ -0,0 +1 @@ +Labolyon.fr \ No newline at end of file diff --git a/custom/userstyle.css b/custom/userstyle.css new file mode 100644 index 0000000..c311e01 --- /dev/null +++ b/custom/userstyle.css @@ -0,0 +1,89 @@ +html, +body { + background: black; +} + +.site>*:not(.wrapper) { + color: white; +} + +#dokuwiki__header a { + color: white; +} + +#dokuwiki__pagetools a { + color: white; +} + +#dokuwiki__footer a { + color: yellow; +} + +#dokuwiki__pagetools a:hover svg { + fill: yellow !important; +} + +#dokuwiki__pagetools:hover div.tools ul { + background: black; + border-collapse: white; + box-shadow: none +} + +#dokuwiki__pagetools div.tools ul li a:hover { + background: none; + color: yellow; +} + +#dokuwiki__header .headings a { + color: yellow; + ; +} + +#dokuwiki__header input, +#dokuwiki__header select { + background: none; + border: solid 1px white; + color: white; + padding-left: .5em; +} + +#dokuwiki__header input:focus, +#dokuwiki__header select:focus { + border: solid 1px yellow; + outline: none; +} + +#dokuwiki__header a:hover * { + fill: currentColor; +} + +.dokuwiki div.breadcrumbs, +.dokuwiki div.breadcrumbs div:last-child { + border: none; +} + +#dokuwiki__header .breadcrumbs a { + color: yellow; +} + +#dokuwiki__usertools { + top: 1em; +} + +#dokuwiki__content .page { + box-shadow: none; +} + +@media screen and (min-width: 480px) { + + #dokuwiki__header { + padding-top: 75px; + } + + #dokuwiki__header .tools ul { + display: flex; + justify-content: flex-end; + align-items: start; + } + +} \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..7a48967 --- /dev/null +++ b/install.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e + +if [ "$DOKUWIKI_CUSTOM" == "" ]; then + DOKUWIKI_CUSTOM="/usr/share/dokuwiki/conf/" +fi + +if [ "$DOKUWIKI_CUSTOM_LOGO" == "" ]; then + DOKUWIKI_CUSTOM_LOGO="/usr/share/dokuwiki/data/media/wiki" +fi + +echo "" +echo "Customizations will be installed into $DOKUWIKI_CUSTOM" +echo "and logo and favicon into $DOKUWIKI_CUSTOM_LOGO" +echo "(define DOKUWIKI_CUSTOM or DOKUWIKI_CUSTOM_LOGO env to change it)" +echo "" +read -p "Continue (y/N)?" confirm +case "$confirm" in + y|Y ) echo "yes";; + * ) exit 1;; +esac + +mkdir -p "$DOKUWIKI_CUSTOM" +cp -r -v -f ./custom/* "$DOKUWIKI_CUSTOM" +chown www-data:www-data $DOKUWIKI_CUSTOM/* + +mkdir -p "$DOKUWIKI_CUSTOM_LOGO" +cp -r -v -f ./logo/* "$DOKUWIKI_CUSTOM_LOGO" +chown www-data:www-data $DOKUWIKI_CUSTOM_LOGO/* \ No newline at end of file diff --git a/logo/favicon.ico b/logo/favicon.ico new file mode 100644 index 0000000..77b2a06 Binary files /dev/null and b/logo/favicon.ico differ diff --git a/logo/favicon.svg b/logo/favicon.svg new file mode 100644 index 0000000..e723ede --- /dev/null +++ b/logo/favicon.svg @@ -0,0 +1,73 @@ + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/logo/logo.png b/logo/logo.png new file mode 100644 index 0000000..c75b7a0 Binary files /dev/null and b/logo/logo.png differ diff --git a/logo/logo.svg b/logo/logo.svg new file mode 100644 index 0000000..b06c17c --- /dev/null +++ b/logo/logo.svg @@ -0,0 +1,141 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/make-favicon.sh b/make-favicon.sh new file mode 100755 index 0000000..f174834 --- /dev/null +++ b/make-favicon.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +inkscape -w 16 -h 16 -o logo/favicon-16.png logo/favicon.svg +inkscape -w 32 -h 32 -o logo/favicon-32.png logo/favicon.svg +inkscape -w 48 -h 48 -o logo/favicon-48.png logo/favicon.svg + +convert logo/favicon-16.png logo/favicon-32.png logo/favicon-48.png logo/favicon.ico \ No newline at end of file