-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's start a discussion #184
base: master
Are you sure you want to change the base?
Conversation
Wow. I really think we should join efforts into improving showoff (vs forking it). Thanks for all this! First of all, I couldn't agree more regarding GitHub's flavored markdown. It's the way to go, imo. I also like the stuff you did with static page & PDF generation. And finally, great work shrinking Having said this, I see a few issues with this pull request:
Let's discuss this a bit more! |
FYI I'm kinda doing some of this already with deck.rb, which is based on a cleaner JS presentation layer and an arguably cleaner and better tested Ruby tool. http://github.com/alexch/deck.rb (I'm not using full GFM but I'd love to be, and I'm inlining a lot of the JS and CSS too. Also it should be drop-in-compatible with showoff since I support showoff.json files so I'd love for more people to just give it a try and tell me what breaks.) |
@goncalossilva this is to start a conversation, so don't feel too bad about the work I have done on the fork coordinating with your work. Thanks for taking a look at it and your feedback. Supporting
|
Alright, both the server and the static generation will look for a Also I took a moment to make the server and the static generation use the full filepath provided and not simply a directory. So you could do something like: $ bin/showoff server examples/showon
$ bin/showoff server examples/custom.json Which will add those files to the list of files to search for when creating the presentation. |
Images are centered in the column Code samples do not have all those margins
@goncalossilva let's talk about what you would love to see in a series of smaller pull requests:
|
@burtlo In parts: Markdown Engine Configurability Presentation Templates RSpec test suite The rest seems fine. Your PR breakdown looks good to me. After ironing out the questions about the MD engines and the templates, I think we're good to go. I think this is the best approach:
These are big changes. I'm strongly in favor of most of them. Let's see if @schacon can weigh in on this! |
Oh templates! I must have forked before templates. I'll work on how that would integrate with the work I've done. |
There were a few commits after that one :| Everything after 580c025 (https://github.com/schacon/showoff/commits/master?page=2). |
Looking over the current template implementation, I'm not sure why the templates aren't simply using <div style='background-color: red;' id='<%= id %>' class='slide <%= slide_classes %>' data-transition='<%= transition %>'>
<div class='content <%= content_classes %>' ref='<%= reference %>'>
<%= content_as_html %>
</div>
</div> |
Within the showoff file, a template name can be associated with a template file. That name can be used within the slides to generate a slide with that template file.
Not at all. Did you check out the rest of the commits? |
Yes, I'm looking them over. |
Presentations are able to define a pause message for the pause screen. Unlike most features which is configurable per section, this one is only valid on the top level showoff file
Conflicts: example/default.css
because I got stuck thinking options were --thing=value
Added example generate presentation command
…er to user the correct renderer for content with caption
Allow the ability to define section specific slide styles and classes. ``` section "Iteration 0" do css_classes "greed-background" slides "iteration-zero.md" end section "Iteration 1" do css_classes "blue-background" slides "iteration-zero.md" end ``
A few weeks ago I started look at ways I could improve upon Showoff by adding:
Github Flavored Markdown
Static HTML and PDF
I think after that I went off the deep end trying to clean up and refactor the monolith sinatra class that contained all the parsing and rendering logic. At some point I questioned the usefulness of a
showoff.json
file and replaced with ashowoff
file which contained a DSL that allowed you to define sections and slides.The README describes in far greater detail this implementation.
Final Note