X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FTheming.html;h=13e6acf0b6fed9394e53f07b96fc3022ab1dd2d2;hb=24cfb960cfdd88255333bfb2a08d586916b460ae;hp=b5d214e58322c6431197547fffe0fcf20ce8621d;hpb=6335a0fc0ce0c2f962333f0b4d6baac1671df901;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Theming.html b/doc/Theming.html index b5d214e5..13e6acf0 100644 --- a/doc/Theming.html +++ b/doc/Theming.html @@ -4,45 +4,69 @@ -
WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.
tpl/
directory, run git clone https://url/of/my-template/
or unpack the zip archive.
my-template/
directory under the tpl/
dir, containing directly all the template files.Edit data/config.php
to have Shaarli use this template, e.g.
$GLOBALS['config'['RAINTPL_TPL'] = 'tpl/my-template/';]('RAINTPL_TPL']-=-'tpl/my-template/';.html)
$GLOBALS['config'['RAINTPL_TPL'] = 'tpl/my-template/';]('RAINTPL_TPL']-=-'tpl/my-template/';.html)
/home/user/public_html/somedir
is served as http://localhost/~user/somedir
http
is the name of the Apache user$ cd ~/public_html
+$ cd ~/public_html
# clone repositories
-$ git clone https://github.com/shaarli/Shaarli.git shaarli
-$ pushd shaarli/tpl
-$ git clone https://github.com/alexisju/albinomouse-template.git
-$ popd
+$ git clone https://github.com/shaarli/Shaarli.git shaarli
+$ pushd shaarli/tpl
+$ git clone https://github.com/alexisju/albinomouse-template.git
+$ popd
# set access rights for Apache
-$ chgrp -R http shaarli
-$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
+$ chgrp -R http shaarli
+$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
Get config written:
- go to the freshly installed site
- fill the install form
- log in to Shaarli
-Edit Shaarli's configuration|Shaarli configuration:
-# the file should be owned by Apache, thus not writeable => sudo
-$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
+Edit Shaarli's configuration|Shaarli configuration:
+# the file should be owned by Apache, thus not writeable => sudo
+$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php