jbt / docker

Documentation generator
http://jbt.github.com/docker
MIT License
233 stars 56 forks source link

var treeVisible #3

Closed shakty closed 12 years ago

shakty commented 12 years ago

Hi,

first of all, thanks a lot for the very nice port of Docco!

I was wondering if there is an easy way of setting the treeVisible variable always to TRUE (or FALSE), instead of using the localStorage.

I am referring to this line in the doc-script.js file:

var treeVisible = (window.localStorage && window.localStorage.docker_showTree == 'yes');

Thanks, shakty

jbt commented 12 years ago

Good idea. This is an option I've been meaning to add for a while, actually. I'll try and see if I can work it in in the next day or so.

shakty commented 12 years ago

nice! thanks

jbt commented 12 years ago

I swear I commented on this yesterday, but clearly I forgot. I've added the -s option in 0.1.3 (08608bb2cf49b5c918f238740750ea790df08c5c) so you can use -s (true|false|yes|no) to specify the default state.

shakty commented 12 years ago

thanks, it works nice!