So I\'m creating a GitHub Pages site to list all of the Gifs in my jglovier/gifs repo. GH Pages runs only static HTML/CSS/JS or Jekyll, so I cannot use an apache directory listi
tree -H . -o _includes/site-index.html should do everything you asked for.
tree -H . -o _includes/site-index.html