Skip to content
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

First pass at Jekyll-ization #383

Merged
merged 1 commit into from
Mar 21, 2013
Merged

First pass at Jekyll-ization #383

merged 1 commit into from
Mar 21, 2013

Conversation

benbalter
Copy link
Contributor

This deprecates the need for the source folder and source/compile.rb. Upon pushing to GitHub, Pages will automatically fire Jekyll to render the templates.

This is a direct port of the existing template, but note that while all content should be ported over, there is a Maruku bug preventing the Table of Contents from rendering in the sidebar for now which I'm debugging.

Note: All content should be ported over, but there is a Maruku bug preventing the Table of Contents from rendering in the sidebar.
@@ -10,9 +14,9 @@ Data on bills in Congress goes back to 2009, and comes from a mix of sources:

All requests require a valid [API key](index.html#parameters/api-key), and use the domain:

```text
{% highlight text %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the highlight tag and not the GFM syntax for syntax highlighting? I really like the ```.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You and me both. 😄

There's a maruku bug which prevents fenced code blocks from being properly rendered. There are three options:

  1. Reformat code blocks
  2. Switch to a different markdown renderer (which Jekyll supports), e.g., rdiscount or kramdown
  3. Use Pygments

I went with 3, just because it was the fastest / cleanest for a first pass, but switching rendering engines (configurable via _config.yml) until things are fixed upstream may make more sense. I believe Kramdown has Table of Contents support, but when I tested, the css on the code blocks was a bit wonky.

konklone added a commit that referenced this pull request Mar 21, 2013
First pass at Jekyll-ization
@konklone konklone merged commit b19e746 into propublica:gh-pages Mar 21, 2013
@konklone
Copy link
Contributor

Wow man, well this is unnecessarily amazingly helpful of you to do this. I admit to being inexperienced with Jekyll, so your tutelage is appreciated. I'll merge this and give it a shot.

@benbalter
Copy link
Contributor Author

Ha. Took 30 seconds. As the body of the PR noted, there's a bug which breaks the table of contents, but working on figuring out a work around. Glad to help out any time.

@konklone
Copy link
Contributor

I saw that - but forgot that merging automatically regenerates. So I've broken the docs. :) I'll revert for now, but will re-merge with the bug fix.

@adelevie
Copy link

@konklone, what's your current build "schedule"...build after every new update, or something like build once a day?

@konklone
Copy link
Contributor

Currently, I run the compile.rb script after every change I make, so it's something I have to just remember to do. In practice it's been easy to remember, but the system feels plenty wrong. :)

@konklone
Copy link
Contributor

konklone commented May 3, 2013

Hey @benbalter, did you ever work out the maruku table of contents rendering bug, by any chance? We never ended up switching to this model, even though we merged the pull request, and I'd like to re-evaluate it.

@konklone
Copy link
Contributor

konklone commented May 3, 2013

(Something I'd be happy to tackle on my own too - just wondering if you knew the answer offhand by now.)

@benbalter benbalter deleted the gh-pages branch May 3, 2013 20:09
@benbalter benbalter restored the gh-pages branch May 3, 2013 20:09
@benbalter
Copy link
Contributor Author

Have not had a chance... will take a pass next week, if not this weekend.

@adelevie, any thoughts?

@adelevie
Copy link

adelevie commented May 3, 2013

Exams for now :(

@benbalter
Copy link
Contributor Author

Your 🇺🇸 needs you.

@konklone konklone mentioned this pull request Dec 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants