X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FTheming.html;h=7cbf7aef1f2d4839338479c56efd2b6d1cabf2ae;hb=6b7ddb487126fd8f5be22e729ec8e0a2b639891b;hp=1eda52e404561ad3e39efa5c85e98807e6ec51fe;hpb=5409ade28c5f0acf99dbadd4d95e6f8efda5d395;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Theming.html b/doc/Theming.html index 1eda52e4..7cbf7aef 100644 --- a/doc/Theming.html +++ b/doc/Theming.html @@ -52,18 +52,17 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
@@ -122,18 +119,20 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Infmy-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)
Edit data/config.json.php
to have Shaarli use this template, in "resource"
e.g.
"raintpl_tpl": "tpl\/my-template\/",
/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:
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