1 ; File encoding: UTF-8 - If you have accents here please keep this way.
2 ; I use gvim or notepad++ to edit it and am a happy guy.
3 ; Use 'yes' or 'no' booleans when appropriate as the examples show.
4 ; Comments start the line with a semicolon.
7 ; Please don't change the link to the script if you did not changed it.
8 ; Will write the generated date and a little link on the footer with this.
9 my_source=http://dl.dropbox.com/u/552/pyndexer/1.2
10 pyndexer_url=%(my_source)s/index.html
12 ; Full path location of your dropbox Public folder. If not set, will try to find out
13 ; reading the dropbox database (won't work on dropbox 1.2.x - encrypted)
14 ; Use forward-slashes as folder name separators, even if in windows.
15 ;publicfolder=L:/PortableBox/Public/
17 ; Referrer link for invites - shameless link to mine, please change (or not heh) :p
18 dropbox_referrer=https://www.dropbox.com/referrals/NTU1Mjk
20 indexfilename=index.html
21 ; Date format for file modified time (raw strformat)
22 dateformat=%Y-%m-%d %H:%M
24 ; All below can be overriden by folder entries. When specified on the folder section,
25 ; will override for the folder only, subfolders will NOT inherit.
27 ; default sorting: name,size,date
29 ; show item count or size of subfolder? count,size
32 ; Patterns ignored by default on listing: index file itself,
33 ; the dependencies that maybe get copied to the folders,
34 ; and all files starting with dots (unix way to say "hidden")
35 ignorepattern=%(indexfilename)s,swfobject.js,player.swf,jsencryption.js,.*
37 ; Patterns that will NOT have the ?dl (download, not display) suffix on links
38 viewinbrowser=*.html,*.htm,*.txt,*.php,*png,*jpg,*gif
40 ; Files to place the "play" onclick on the icon image.
41 ; Will fire load event in jwplayer (see jwplayer.js)
42 playinbrowser=*.mp3,*.mp4
44 ; WARNING: You should not mess these defaults, set folder-specific ones.
45 ; I did not had time to think about these being changed here.
47 ; Ignore this folder: [yes|no|SomeFileNameToLink]
48 ; When a file name is given, will link to it but will not descend
49 ; Useful when you want to make the index file yourself
50 ; Not wise to set to yes here, set it in the folder section
53 ; Password-protect with javascript some specified folder (or all!)
54 ; If not using the all-in-one EXE you need M2Crypto, see the README-FIRST.
55 ; Because of something I did not made right yet it needs to be ascii-decodeable, please bear with me.
56 ;password=it's a secret!
59 ; Add some readme file to a folder, so it is appended at the end of the file listing.
60 ; If it is an HTML file, only the text inside the <body></body> tags will be appended.
66 ; Examples of some folders with fine-tuned configuration
67 ; The folder names are RELATIVE to the dropbox /Public/ folder.
68 ; If you want to index the public folder itself, add a section to the "." (it's only a dot) folder: [.]
69 ; Note1: Folders with ] in the name can be worked around with escaping, as [foo[bar\].txt]
70 ; Note2: Use forward slash "/" as folder separator. In windows the script will change it.
71 ; Note3: Need to test with all unicode types and then some.
74 ; Index this folder :)
78 ; Old script, it will index itself, no need to bother here
79 ; See the SomeFileNameToLink in action? :)
83 ; Should not ignore any files but the index, so everyone sees them
84 ;ignorepattern=%(indexfilename)s
85 ;readme=_README-FIRST.html
88 ; Should not ignore any files but the index, so everyone sees them
89 ;ignorepattern=%(indexfilename)s
90 ;readme=_README-FIRST.html
93 ; Should not ignore any files but the index, so everyone sees them
94 ;ignorepattern=%(indexfilename)s
95 ;readme=_README-FIRST.html
98 ; Should not ignore any files but the index, so everyone sees them
99 ;ignorepattern=%(indexfilename)s
100 ;readme=_README-FIRST.html
102 ; My test folder. Will index and list subfolders.
103 ;[pyndexer/test folders]
104 ; Any folder inside this folder will be listed (except: see below)
106 ;[pyndexer/test folders/Ignored Folder]
107 ; This folder is inside a listed one, but will not be indexed.
110 ;[pyndexer/test folders/Ignored Folder/But not this one]
111 ; But this one, even if it is inside an ignored folder, will be listed.
112 ; Will not link to parent, because it is set as ignored, see:
113 ; http://dl.dropbox.com/u/552/pyndexer/test%20folders/Ignored%20Folder/But%20not%20this%20one/index.html
114 ; The simple fact that we have the folder defined in a section suffices to the script
115 ; to list the folder (reads DEFAULT section), but I am including it here to be clear.
118 ;[pyndexer/test folders/A password-protected folder]
121 ;[pyndexer/test folders/Test folder for READMEs]
122 ;readme=readme-first.txt
123 ;[pyndexer/test folders/Test folder for READMEs/1 - one folder]
125 ;[pyndexer/test folders/Test folder for READMEs/2 - another folder]
127 ;[pyndexer/test folders/Test folder for READMEs/3 - and yet another one]
128 ;readme=readme-rich.html
130 ; I want these others indexed too
133 ;[pyDropboxPath/0.8.2]
134 ;readme=_README-FIRST.html
135 ;[pyDropboxPath/0.8.3]
136 ;readme=_README-FIRST.html
137 ;[pyDropboxPath/1.0.1]
138 ;readme=_README-FIRST.html
140 ;readme=_README-FIRST.html
143 ;readme=_README-FIRST.html