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

Removed unnecessary absolute file path

- updated readme
This commit is contained in:
Inti Gabriel
2016-02-28 15:36:02 +01:00
parent 66e30f073d
commit bb21c1a56c
2 changed files with 56 additions and 74 deletions

View File

@@ -23,17 +23,7 @@ Let's assume you have a folder named `share` in your server root directory (the
* [Download](https://github.com/AdamWhitcroft/Apaxy/archive/master.zip) and unzip Apaxy * [Download](https://github.com/AdamWhitcroft/Apaxy/archive/master.zip) and unzip Apaxy
* Copy and paste the contents of the `/apaxy` folder to your `/share` folder. * Copy and paste the contents of the `/apaxy` folder to your `/share` folder.
* Edit `htaccess.txt` (now in the `/share` folder) and update all instances of paths marked with *{FOLDERNAME}* to point to your site root. * Rename `htaccess.txt` to `.htaccess` in both the `/share` and `/share/theme` folders.
So...
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif
Should be changed to...
AddIcon /share/theme/icons/gif.png .gif
* 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. * [Treat yo'self](http://25.media.tumblr.com/tumblr_lw7q28y0Mz1qanm80o1_500.gif), you're done.
##Apaxy themes ##Apaxy themes
@@ -48,15 +38,15 @@ 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: 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 AddIcon 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. The above rule will assign an icon named `gif.png` from the directory `theme/icons/` to any file with the `.gif` extension.
This URL path is relative to your site's root. This URL path is relative to your site's root.
##Mime Types ##Mime Types
The default Apaxy theme `/themes/apaxy` has icons in place for the following mime types: The default Apaxy theme `theme/apaxy` has icons in place for the following mime types:
.aif .aif .asf .asx .avi .bin .c .css .csv .dmg .doc .docm .docx .dot .dotm .eps .flv .gif .aif .aif .asf .asx .avi .bin .c .css .csv .dmg .doc .docm .docx .dot .dotm .eps .flv .gif
.htm .html .ico .iff .jar .jpeg .jpg .js .json .log .m3u .m4a .md .mid .mov .mp3 .mp4 .mpa .htm .html .ico .iff .jar .jpeg .jpg .js .json .log .m3u .m4a .md .mid .mov .mp3 .mp4 .mpa

View File

@@ -21,74 +21,66 @@
# GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY) # GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY)
# #
# AddIcon theme/icons/blank.png ^^BLANKICON^^
# Replace {FOLDERNAME} with your directory URL eg: AddIcon theme/icons/folder.png ^^DIRECTORY^^
# If your directory is http://mywebsite.com/share/ AddIcon theme/icons/folder-home.png ..
# you would change to:
#
# AddIcon /share/theme/icons/blank.png ^^BLANKICON^^
#
AddIcon /{FOLDERNAME}/theme/icons/blank.png ^^BLANKICON^^ AddIconByType (TXT,theme/icons/text.png) text/*
AddIcon /{FOLDERNAME}/theme/icons/folder.png ^^DIRECTORY^^ AddIconByType (IMG,theme/icons/image.png) image/*
AddIcon /{FOLDERNAME}/theme/icons/folder-home.png .. AddIconByType (SND,theme/icons/audio.png) audio/*
AddIconByType (VID,theme/icons/video.png) video/*
AddIconByType (TXT,/{FOLDERNAME}/theme/icons/text.png) text/*
AddIconByType (IMG,/{FOLDERNAME}/theme/icons/image.png) image/*
AddIconByType (SND,/{FOLDERNAME}/theme/icons/audio.png) audio/*
AddIconByType (VID,/{FOLDERNAME}/theme/icons/video.png) video/*
# #
# EXTENSION SPECIFIC ICONS # EXTENSION SPECIFIC ICONS
# #
AddIcon /{FOLDERNAME}/theme/icons/archive.png .7z .bz2 .cab .gz .tar AddIcon theme/icons/archive.png .7z .bz2 .cab .gz .tar
AddIcon /{FOLDERNAME}/theme/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod AddIcon theme/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod
AddIcon /{FOLDERNAME}/theme/icons/bin.png .bin .hex AddIcon theme/icons/bin.png .bin .hex
AddIcon /{FOLDERNAME}/theme/icons/bmp.png .bmp AddIcon theme/icons/bmp.png .bmp
AddIcon /{FOLDERNAME}/theme/icons/c.png .c AddIcon theme/icons/c.png .c
AddIcon /{FOLDERNAME}/theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv AddIcon theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv
AddIcon /{FOLDERNAME}/theme/icons/cd.png .iso AddIcon theme/icons/cd.png .iso
AddIcon /{FOLDERNAME}/theme/icons/cpp.png .cpp AddIcon theme/icons/cpp.png .cpp
AddIcon /{FOLDERNAME}/theme/icons/css.png .css .sass .scss AddIcon theme/icons/css.png .css .sass .scss
AddIcon /{FOLDERNAME}/theme/icons/deb.png .deb AddIcon theme/icons/deb.png .deb
AddIcon /{FOLDERNAME}/theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps AddIcon theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps
AddIcon /{FOLDERNAME}/theme/icons/draw.png .svg .svgz AddIcon theme/icons/draw.png .svg .svgz
AddIcon /{FOLDERNAME}/theme/icons/eps.png .ai .eps AddIcon theme/icons/eps.png .ai .eps
AddIcon /{FOLDERNAME}/theme/icons/exe.png .exe AddIcon theme/icons/exe.png .exe
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif AddIcon theme/icons/gif.png .gif
AddIcon /{FOLDERNAME}/theme/icons/h.png .h AddIcon theme/icons/h.png .h
AddIcon /{FOLDERNAME}/theme/icons/html.png .html .xhtml .shtml .htm .URL .url AddIcon theme/icons/html.png .html .xhtml .shtml .htm .URL .url
AddIcon /{FOLDERNAME}/theme/icons/ico.png .ico AddIcon theme/icons/ico.png .ico
AddIcon /{FOLDERNAME}/theme/icons/java.png .jar AddIcon theme/icons/java.png .jar
AddIcon /{FOLDERNAME}/theme/icons/jpg.png .jpg .jpeg .jpe AddIcon theme/icons/jpg.png .jpg .jpeg .jpe
AddIcon /{FOLDERNAME}/theme/icons/js.png .js .json AddIcon theme/icons/js.png .js .json
AddIcon /{FOLDERNAME}/theme/icons/markdown.png .md AddIcon theme/icons/markdown.png .md
AddIcon /{FOLDERNAME}/theme/icons/package.png .pkg .dmg AddIcon theme/icons/package.png .pkg .dmg
AddIcon /{FOLDERNAME}/theme/icons/pdf.png .pdf AddIcon theme/icons/pdf.png .pdf
AddIcon /{FOLDERNAME}/theme/icons/php.png .php .phtml AddIcon theme/icons/php.png .php .phtml
AddIcon /{FOLDERNAME}/theme/icons/playlist.png .m3u .m3u8 .pls .pls8 AddIcon theme/icons/playlist.png .m3u .m3u8 .pls .pls8
AddIcon /{FOLDERNAME}/theme/icons/png.png .png AddIcon theme/icons/png.png .png
AddIcon /{FOLDERNAME}/theme/icons/ps.png .ps AddIcon theme/icons/ps.png .ps
AddIcon /{FOLDERNAME}/theme/icons/psd.png .psd AddIcon theme/icons/psd.png .psd
AddIcon /{FOLDERNAME}/theme/icons/py.png .py AddIcon theme/icons/py.png .py
AddIcon /{FOLDERNAME}/theme/icons/rar.png .rar AddIcon theme/icons/rar.png .rar
AddIcon /{FOLDERNAME}/theme/icons/rb.png .rb AddIcon theme/icons/rb.png .rb
AddIcon /{FOLDERNAME}/theme/icons/rpm.png .rpm AddIcon theme/icons/rpm.png .rpm
AddIcon /{FOLDERNAME}/theme/icons/rss.png .rss AddIcon theme/icons/rss.png .rss
AddIcon /{FOLDERNAME}/theme/icons/script.png .bat .cmd .sh AddIcon theme/icons/script.png .bat .cmd .sh
AddIcon /{FOLDERNAME}/theme/icons/sql.png .sql AddIcon theme/icons/sql.png .sql
AddIcon /{FOLDERNAME}/theme/icons/tiff.png .tiff .tif AddIcon theme/icons/tiff.png .tiff .tif
AddIcon /{FOLDERNAME}/theme/icons/text.png .txt .nfo AddIcon theme/icons/text.png .txt .nfo
AddIcon /{FOLDERNAME}/theme/icons/video.png .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv AddIcon theme/icons/video.png .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv
AddIcon /{FOLDERNAME}/theme/icons/xml.png .xml AddIcon theme/icons/xml.png .xml
AddIcon /{FOLDERNAME}/theme/icons/zip.png .zip AddIcon theme/icons/zip.png .zip
DefaultIcon /{FOLDERNAME}/theme/icons/default.png DefaultIcon theme/icons/default.png
# #
# THEME FILES # THEME FILES
# #
HeaderName /{FOLDERNAME}/theme/header.html HeaderName theme/header.html
ReadmeName /{FOLDERNAME}/theme/footer.html ReadmeName theme/footer.html
IndexStyleSheet "/{FOLDERNAME}/theme/style.css" IndexStyleSheet theme/style.css