Added customizations

This commit is contained in:
EpicKiwi 2023-10-29 15:34:12 +01:00
commit 8f2adeae92
Signed by: epickiwi
GPG Key ID: C4B28FD2729941CE
10 changed files with 352 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
logo/favicon-*.png

8
README.md Normal file
View File

@ -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`.

1
custom/header.html Normal file
View File

@ -0,0 +1 @@
<a target="_blank" href="https://labolyon.fr/">Labolyon.fr</a>

89
custom/userstyle.css Normal file
View File

@ -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;
}
}

30
install.sh Executable file
View File

@ -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/*

BIN
logo/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

73
logo/favicon.svg Normal file
View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
id="svg2"
version="1.1"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
width="94.468002"
height="94.468002"
viewBox="0 0 94.468002 94.468004"
sodipodi:docname="favicon.svg"
inkscape:export-filename="logo.png"
inkscape:export-xdpi="520.29999"
inkscape:export-ydpi="520.29999"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1485"
inkscape:window-height="927"
id="namedview4"
showgrid="false"
inkscape:zoom="6.5212376"
inkscape:cx="39.79306"
inkscape:cy="45.313485"
inkscape:current-layer="svg2"
inkscape:window-x="56"
inkscape:window-y="50"
inkscape:window-maximized="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:showpageshadow="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#d1d1d1" />
<rect
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#fff600;stroke-width:5.58135;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4542"
width="88.886658"
height="88.886658"
x="2.7906697"
y="2.7906749" />
<path
d="m 33.525836,77.69659 q -4.417076,0 -7.539491,-3.122415 Q 22.86393,71.451759 22.86393,67.034684 V 27.433318 q 0,-4.417075 3.122415,-7.539491 3.122415,-3.122415 7.539491,-3.122415 h 38.078236 v 45.693884 q -1.903911,0 -3.23665,1.332738 -1.332738,1.332738 -1.332738,3.23665 0,1.903912 1.332738,3.23665 1.332739,1.332738 3.23665,1.332738 v 6.092518 z m 1.523129,-21.323812 h 6.092518 V 22.86393 H 35.048965 Z M 33.525836,71.604072 H 61.9322 q -0.456939,-1.06619 -0.723486,-2.170459 -0.266548,-1.104269 -0.266548,-2.398929 0,-1.218504 0.22847,-2.360851 0.228469,-1.142347 0.761564,-2.208537 H 33.525836 q -1.980068,0 -3.274728,1.332738 -1.294661,1.332738 -1.294661,3.23665 0,1.980068 1.294661,3.274728 1.29466,1.29466 3.274728,1.29466 z"
id="path458"
style="fill:#fff600;fill-opacity:1;stroke-width:0.0761565" />
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
logo/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

141
logo/logo.svg Normal file
View File

@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
id="svg2"
version="1.1"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
width="94.468002"
height="94.468002"
viewBox="0 0 94.468002 94.468004"
sodipodi:docname="logo.svg"
inkscape:export-filename="logo.png"
inkscape:export-xdpi="130.08"
inkscape:export-ydpi="130.08"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1485"
inkscape:window-height="927"
id="namedview4"
showgrid="false"
inkscape:zoom="6.5212376"
inkscape:cx="47.230299"
inkscape:cy="45.160139"
inkscape:current-layer="svg2"
inkscape:window-x="56"
inkscape:window-y="50"
inkscape:window-maximized="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:showpageshadow="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#d1d1d1" />
<rect
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#fff600;stroke-width:4.70173;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4542"
width="89.766708"
height="62.459038"
x="2.350647"
y="16.004484" />
<g
id="g408"
transform="translate(3.3928368,18.830863)">
<rect
style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:2.93399;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect852"
width="14.782129"
height="6.7451782"
x="50.916714"
y="7.0008702"
ry="1.525695" />
<rect
ry="1.525695"
y="7.0008702"
x="33.0826"
height="6.7451782"
width="14.782129"
id="rect858"
style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:2.93399;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<circle
style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:8.0081;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle862"
cx="43.841164"
cy="22.393246"
r="4.0235658" />
<circle
r="4.0235658"
cy="22.393246"
cx="26.339252"
id="circle866"
style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:8.0081;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<circle
style="fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:8.0081;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle862-3"
cx="61.343075"
cy="46.432816"
r="4.0235658" />
<circle
r="4.0235658"
cy="46.432816"
cx="43.841164"
id="circle866-5"
style="fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:8.0081;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<circle
style="fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:8.0081;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle868-3"
cx="26.007051"
cy="10.373461"
r="4.0235658" />
<rect
style="fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:2.93399;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect852-6"
width="14.782129"
height="6.7451782"
x="50.916714"
y="31.040442"
ry="1.525695" />
<rect
ry="1.525695"
y="31.040442"
x="21.983486"
height="6.7451782"
width="14.782129"
id="rect858-7"
style="fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:2.93399;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<circle
style="fill:#ffff00;fill-opacity:1;stroke:none;stroke-width:8.0081;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle868-3-5"
cx="43.841164"
cy="34.413033"
r="4.0235658" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

9
make-favicon.sh Executable file
View File

@ -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