HTML file indexing generator.
Project description
HTML Index
A python script that generates index.html files for file indexing.
Usage
Simply type index <path>
.
Replace the <path>
with the path to the directory you want to generate indexes for.
For example: index ./
Optional Arguments
-h, --help show this help message and exit
--title TITLE change the title of the index.
(`#DIR`: the directory path)
(default: "Index of #DIR"
--parent_dir PARENT_DIR change the name of the "parent directory"
button in the index.
(default: "parent directory")
--filename FILENAME change the name of the field "File Name" in the table.
(default: "File Name")
--size SIZE change the name of the field "Size" in the table.
(default: "Size")
--modified MODIFIED change the name of the field "Last Modified" in the table.
(default: "Last Modified")
For example:
index --title "檢索中: #DIR"
--parent_dir "往上一層"
--filename "檔案名稱"
--size "大小"
--modified "最後修改日期"
./
Note
It'll ignore any file that starts with a .
or a __
Customizing
Under html-index/assets
, there are several files.
__file_template.html
- This is the template for indexed files, edit it if you want to change how the indexed files look.
__index_template.html
- This is the template for the
index.html
, edit it if you want to change how the whole index looks.
- This is the template for the
__icons/
- Where all the icons are located.
icons.yml
- The icon settings.
- Note that it's currently generated by a script and still needs configuration.
- The icon settings.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
html-index-1.0.5.2.tar.gz
(188.2 kB
view hashes)
Built Distribution
html_index-1.0.5.2-py3-none-any.whl
(270.4 kB
view hashes)
Close
Hashes for html_index-1.0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68519428fd12adf23aaf4d2187d571b5586b0409c806bf145b90acbe1b3439c7 |
|
MD5 | 8d5c51eb1b8ee187b3b658357feacdc9 |
|
BLAKE2b-256 | eb2430ab6107a43b527b578b751e6b3e5826129a7634b0f5837c86c6a8e826d2 |