groc
groc copied to clipboard
Force single column for README or other pages?
Having all the text pushed over to the left for things like README pages seems suboptimal. Is there a way to control that that I'm missing?
And, BTW, just started with groc and mostly loving it so far. Thanks!
I like to see this happen.
You can make the div containing the documentation (the left-hand side) to be resizable via http://jqueryui.com/resizable/ or expand/collapse (also via jquery).
Groc's output already collapses to a single-colum, if you make the browser-window smaller (or use a mobile device). There is also a branch: https://github.com/sjorek/groc/tree/feature-collapsible-columns that adds a button to the top-pane to switch between the single- and two-column layout. It stores it's state in a cookie and you can choose how to start by tweaking the templates <html class="…">
-attribute.
Cheers & Merry X-Mas !
Pardon my cluelessness, but how do I install that branch? Git cloning doesn't seem to work because I think it's not installed as an npm module. I know there's a way to npm install a specific branch, but I haven't figured out how to do it here. But thanks so much. This is exactly what I need.
If I get you right, the following steps should work:
git clone -b feature-collapsible-columns https://github.com/sjorek/groc.git
cd groc
Local install/usage:
Issue npm install
once in groc
's folder from above and use it like PATH=/path/to/groc/bin:$PATH groc
Gobal install/usage:
Issue npm install -g
once in groc
's folder from above and run groc
wherever you want, as it should be in your PATH now.
… but I cannot promise that this “collapsible-collumns” branch will stay alive … it is what it is, a quick ~~'n'dirty~~ implementation. :smirk:
It'd be great if it's merged as a separate 'style' from default.
… I don't think that this will happen.
It's attractive and useful. Is there something about it that goes against groc's overall goals?
On Sat, Dec 28, 2013 at 8:47 AM, Stephan Jorek [email protected]:
… I don't think that this will happen.
— Reply to this email directly or view it on GitHubhttps://github.com/nevir/groc/issues/148#issuecomment-31296853 .
… no, I think the github diff-stats say everything:
Showing 43 changed files with 619 additions and 150 deletions.
Who will ever keep this in sync with upcoming changes in the default-style ? … keeping this draft-solution in sync with groc's default-style is a time-consuming and cumbersome task, at the current stage at least … :sweat_smile: