I need to display directory contents on GH Pages.
Would prefer
- Automatically, without index.html
- A tool or library for automatically generating the index.html
- Any other method
So, if I have a FS in my GH Pages repository:
http://github.com/[username]/[username].github.io/
:
script/
- app/
- core/
- init.js
- lib/
- Element.animate.js
- Object.overlay.js
- mod/
- anim/
- global/
- carousel/
- carousel.js
- global.js
- ext/
- cfgs.js
index.html
I would want each directory URL to index as usual, like so.
http://[username].github.io/script/
:
- app/
- lib/
- mod/
- ext/
http://[username].github.io/script/mod/anim/global/
:
- carousel/
- global.js
The only thing I can think of is preference #2, write or find a script to automatically generate the index.html from the GitHub Repo page or the local Repo on my FS.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…