1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-18 18:11:18 +02:00

Merge pull request #105 from PeterDaveHelloKitchen/README-codeblock-syntax-highlight

[Docs] Enable README code block syntax highlight
This commit is contained in:
oupala
2018-02-27 21:20:07 +01:00
committed by GitHub

View File

@@ -35,21 +35,29 @@ Let's assume you have a folder named `share` in your server root directory (the
So...
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif
```ApacheConf
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif
```
Should be changed to...
AddIcon /share/theme/icons/gif.png .gif
```ApacheConf
AddIcon /share/theme/icons/gif.png .gif
```
* Edit `footer.html` (now in the `/share/theme` folder) and update all instances of paths marked with *{FOLDERNAME}* to point to your site root.
So...
<script src=/{FOLDERNAME}/theme/apaxy.js></script>
```html
<script src=/{FOLDERNAME}/theme/apaxy.js></script>
```
Should be changed to...
<script src=/share/theme/apaxy.js></script>
```html
<script src=/share/theme/apaxy.js></script>
```
* Once done, rename `htaccess.txt` to `.htaccess` in both the `/share` and `/share/theme` folders.
* [Treat yo'self](http://25.media.tumblr.com/tumblr_lw7q28y0Mz1qanm80o1_500.gif), you're done.
@@ -73,7 +81,9 @@ Edit these as you would any other HTML or CSS file.
Adding your own icons is a little more involved. You'll need to edit the main Apaxy `.htaccess` file. Look for the following as an example:
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif
```ApacheConf
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif
```
The above rule will assign an icon named `gif.png` from the directory `/{FOLDERNAME}/theme/icons/` to any file with the `.gif` extension.