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

Jekyll - Live Preview support #9

Open
shiftkey opened this issue Jan 3, 2012 · 1 comment
Open

Jekyll - Live Preview support #9

shiftkey opened this issue Jan 3, 2012 · 1 comment

Comments

@shiftkey
Copy link
Member

shiftkey commented Jan 3, 2012

The Preview pane should detect if the page has been written within a Jekyll/Octopress application, and render the DOM around the post correctly.

How to detect if the markdown file is within a Jekyll/Octopress application:

  • the _config.yml file is found at the current folder or the folder above - do we really need to support further recursion?

When this is successful:

  • ... from the folder containing the _config.yml
  • look inside the _layouts folder for all *.html files - these are your layout templates
  • these will need to be parsed (with potentially other templates involved) to create the full page.
  • find the CSS stylesheets referenced on the page and load those files into memory
  • apply those styles to the live preview
@JakeGinnivan
Copy link
Member

We know if it is a jekyll site already. markpad probably should shell out to pretzel to update the preview. This should be an option I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants