Time |
S |
Nick |
Message |
02:48 |
|
|
agperson joined #sourcefu |
06:27 |
|
|
philbot joined #sourcefu |
06:27 |
|
|
Topic for #sourcefu is now http://sourcefu.com | logs at http://irclog.greptilian.com/sourcefu/today |
11:25 |
|
|
philbot joined #sourcefu |
11:25 |
|
|
Topic for #sourcefu is now http://sourcefu.com | logs at http://irclog.greptilian.com/sourcefu/today |
15:29 |
|
|
spilth joined #sourcefu |
15:33 |
|
spilth |
I made a Liquid Tag that executes Ruby code blocks and appends the output to the page: http://spilth.org/plugins/ruby-block/ |
15:34 |
|
spilth |
Code is here: https://gist.github.com/4683737 |
15:34 |
|
pdurbin |
huh. cool |
15:35 |
|
spilth |
I should look into generifying it so you could run Python, Perl, etc... |
15:35 |
|
spilth |
I'm writing up a Ruby/Rails crash course for some people here and wanted an easy way to show the output of commands in my documentaiton |
15:37 |
|
pdurbin |
spilth: next make me a javaee/jsf crash course please |
15:40 |
|
spilth |
Here's what I have so far: http://spilth.org/notes/rails-crash-course/ |
15:42 |
|
spilth |
hrm, those output blocks might need a little more space after them. They kind of overtake the header below them |
15:57 |
|
spilth |
Nice - When you use the Kramdown gem (instead of RDiscount) for Markdown support, you can auto-generates linked TOCs from your headers! http://kramdown.rubyforge.org/converter/html.html#toc |
16:05 |
|
pdurbin |
i use http://ikiwiki.info/ikiwiki/directive/toc for this but sadly the anchors are meaningless: http://wiki.greptilian.com/ubuntu/#index1h2 . here's the source for that page: https://github.com/pdurbin/wiki/blob/master/ubuntu.mdwn |
16:06 |
|
spilth |
Kramdown seems to use the Header text so I guess it best be unique - http://localhost:4200/notes/rails-crash-course/#define-and-call-a-method |
16:08 |
|
spilth |
You can also specify header IDs it looks like - http://kramdown.rubyforge.org/converter/html.html#auto-ids |
16:08 |
|
spilth |
But at some point you might as well just write HTML :-/ |
16:09 |
|
* pdurbin |
asks about toc in #ikiwiki |
16:10 |
|
spilth |
I'm still going to look at ikiwiki at some point. Just enjoying playing with Jekyll still |
16:12 |
|
pdurbin |
cool. i like knowing jekyll a bit since github offers free web hosting and runs the source through jekyll. i doubt they'd ever support ikiwiki :( |
16:17 |
|
spilth |
TOC now: http://spilth.org/notes/rails-crash-course/ |
16:19 |
|
pdurbin |
now i'm jealous |
16:20 |
|
pdurbin |
a guy in #ikiwiki is telling me that switching to http://search.cpan.org/dist/Text-MultiMarkdown/ might help |
16:50 |
|
spilth |
ha. I just met Tomas Doran at DevOps Days. He showed me Orc - https://github.com/youdevise/orc |
16:55 |
|
spilth |
(he made Text-MultiMarkdown) |
17:12 |
|
pdurbin |
ah ha, so i see: https://github.com/bobtfish/text-multimarkdown |
19:55 |
|
spilth |
I'm going to work on making that Jekyll/Liquid block into a gem for easy integration |
20:02 |
|
pdurbin |
spilth: so are you going to try to use jekyll instead of, say, ikiwiki or gollum? |
20:49 |
|
spilth |
For now, yes |
20:49 |
|
pdurbin |
ok. please keep us posted |
20:49 |
|
spilth |
I don't need ikiwiki for my personal site |
20:49 |
|
spilth |
for work/multi-user I'd consider ikiwki |
20:51 |
|
pdurbin |
how interested are you in a hierarchy of documents, like i've got at http://wiki.greptilian.com/sitemap (if you scroll down) |
20:52 |
|
pdurbin |
i.e. http://wiki.greptilian.com/java/ee/jsf |
20:52 |
|
spilth |
and automating that organization via the filesystem? |
20:52 |
|
pdurbin |
yeah |
20:53 |
|
pdurbin |
https://github.com/pdurbin/wiki/tree/master/java/ee |
20:56 |
|
spilth |
That might be handy. Currently I just do it manually. |
20:56 |
|
pdurbin |
yeah, i got sick of that real quick with jekyll |
20:56 |
|
pdurbin |
and gollum is a flat namespace, which was a deal breaker for me |
20:56 |
|
spilth |
http://stackoverflow.com/questions/9053066/sorted-navigation-menu-with-jekyll-and-liquid |
21:02 |
|
spilth |
And admittedly I like being in a Ruby world to help keep me practicing |
21:06 |
|
pdurbin |
if you can make jekyll do what ikiwiki does... allow me to have a hierarchy of docs on my filesystem, i might switch |
21:16 |
|
pdurbin |
progress with solr: add solr demo · 280548e · IQSS/iqss-javaee-template - https://github.com/IQSS/iqss-javaee-template/commit/280548e31b5d69a9e02cbee8e23453d980b21894 |
21:31 |
|
spilth |
But you want to be able to host it on GitHub, right? |
21:31 |
|
pdurbin |
that would be nice |
21:32 |
|
spilth |
I believe you have to use Jekyll "as is" to host on GitHub |
21:32 |
|
pdurbin |
oh |
21:32 |
|
pdurbin |
so even after all your work, i would be able to use it on github? |
21:33 |
|
spilth |
I believe so |
21:34 |
|
pdurbin |
booo |
21:34 |
|
spilth |
https://help.github.com/articles/pages-don-t-build-unable-to-run-jekyll |
21:34 |
|
pdurbin |
my latest thoughts on solr: https://redmine.hmdc.harvard.edu/issues/2656#note-5 |
21:55 |
|
spilth |
I should probably give http://octopress.org/ and http://awestruct.org/ another look as well. |
23:23 |
|
pdurbin |
hadn't seen awestruct before |
23:25 |
|
pdurbin |
the thing with octopress is that you build the site locally and then push the generated html up: http://octopress.org/docs/deploying/github/ |
23:25 |
|
pdurbin |
that's my understanding anyway and i don't like it |
23:26 |
|
pdurbin |
with plain jekyll you can `git push` to GitHub Pages and the html gets generated for you server-side |
23:26 |
|
pdurbin |
and that's how ikiwiki works too... i edit my files, do a commit, and do a push. i don't have to generate the html client-side. i love it |
23:27 |
|
pdurbin |
but plain jekyll gets annoying if you want to make a lot of folders and subfolders (and more subfolders). ikiwiki is great for this |