Le wiki que vous êtes en train de lire fonctionne sous DokuWiki. C'est un wiki sans base de données, très rapide et facile à mettre en place. Voici quelques informations concernant Dokuwiki que je me garde sous le coude.
/conf/mime.local.conf
et y ajouter les types voulus. Exemple:exe application/octet-stream
/dokuwiki/lib/tpl/dokuwiki/style.ini
, changer:__site_width__ = "75em" ; @ini_site_width
en
__site_width__ = "100%" ; @ini_site_width
puis allez dans l'écran de configuration et re-validez le (Cela va purger le cache). Et voilà !
/conf/userstyle.css
et mettez-y ce que vous voulez, par exemple:body { font-family: "Droid Sans","Noto Sans","Ascender Uni","Linotype Aroma","FF Kievit","Source Sans","Open Sans","Museo Sans","Myriad","Camphor","Corbel","Frutiger","Vectora","Calibri","Ubuntu","Roboto",sans-serif; }
userstyle.css
, j'ajoute:@media screen and (max-width: 700px) { #dokuwiki__site > .site { padding-right: 0px; padding-left: 0px; } }
Il m'arrive d'avoir besoin/envie de personnaliser une page unique. C'est assez facile: Vous pouvez inclure du code HTML directement dans votre page wiki (pensez à activer l'option dans l'administration du wiki) avec les balises <html>
/</html>
. Exemple:
<html> <style type="text/css"> body { /* Généré vite fait avec https://cssgradient.io/ */ background: rgb(253,255,95); background: linear-gradient(180deg, rgba(253,255,95,1) 0%, rgba(151,135,238,0.9906163148853291) 13%, rgba(206,143,183,1) 23%, rgba(255,155,155,1) 36%, rgba(253,255,95,1) 50%, rgba(151,135,238,1) 69%, rgba(206,143,183,1) 83%, rgba(253,255,95,1) 100%); } </style> </html>
<html> <style type="text/css"> body { background: url("/galerie/photos/Wallpapers/Textures/red_mud_stones_diff_1k-lighter.jpg") repeat, #b48766; } .pad { background-color: rgb(255,255,255,0.5); } </style> </html>
<html> <style type="text/css"> h2 { padding: 5px 5px 5px 15px; background: linear-gradient(to bottom, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(254,254,254,1) 100%); border-radius: 0.8em; } h3 { padding: 5px 5px 5px 15px; margin-left: 20px; background: linear-gradient(to bottom, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(254,254,254,1) 100%); border-radius: 0.8em; font-style: italic; } </style> </html>
~~DISCUSSION~~
dans le corps de l'article.
/conf/userstyle.css
, ajouter à la fin:kbd { background-color: #F2F2F2 !important; border-style: outset; border-width: 3px; border-radius: 0.3em; padding : 0px 2px 0px 2px !important; }
{{anchor:NomDeLAncre}}
wiki/lib/tpl/dokuwiki/tpl_header.php
, modifier:<div id="dokuwiki__sitetools"> <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> <?php tpl_searchform(); ?> + <?php if (auth_isadmin()): ?> <div class="mobileTools"> <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?> </div> <ul> <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?> </ul> + <?php endif ?> </div> </div>
inc/media.php
en ajoutant la ligne suivant:--- media.php.original 2020-12-03 10:07:52.685477718 +0100 +++ media.php 2020-12-03 10:25:34.384486237 +0100 @@ -2423,6 +2423,7 @@ if(!function_exists('imagejpeg')){ $okay = false; }else{ + imageinterlace($newimg,true); $okay = imagejpeg($newimg, $to, $conf['jpg_quality']); } }elseif($ext == 'png') {
data/cache
(mais sans supprimer le répertoire lui-même).