• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Like ngx-autoindex, but superb!

ngx-superbindex

Like ngx-autoindex, but superb!

  • Single, standalone file
  • Automatic light-dark theme
  • Colors by base16
  • Monospaced type
  • Minimal UI
  • Search as you type
  • Easily override colors through parameters
  • Works in every modern browser and gracefully degrades in Internet Explorer and Safari

Requirements

nginx with the xslt module. On Mac with Homebrew it's as easy as:

brew tap denji/nginx
brew install nginx-full --with-xslt

Usage

  1. Download superbindex.xslt into your root directory.

  2. Add the following lines to your nginx.conf location:

    location / {
        autoindex on;
        autoindex_format xml;
    
        xslt_stylesheet /path/to/root/directory/superbindex.xslt;
    }
  3. Restart nginx with nginx -s reload and voilà!

Color theme

A different color theme may be used by adding the following parameters:

location / {
    xslt_string_param color-base00 '#002635';
    xslt_string_param color-base07 '#fafaf8';
    xslt_string_param color-base0D '#5dd7b9';
    xslt_string_param color-base0E '#9a70a4';
}

Browse other themes here: base16 scheme repositories