Code Monkey home page Code Monkey logo

ox-jekyll-subtree's Introduction

ox-jekyll-subtree

Extension to ox-jexkyll for better export of subtrees. This is only possible thanks to ox-jekyll, from the org-octopress repo (a copy is provided in this repo).

Please note, this is not a package, this is a script. Feel free to submit issues if you run into problems, just be aware that this does not fully conform with usual package standards.

Usage

Place this in your load-path, add the following lines to your init file, and invoke M-x ojs-export-to-blog to export a subtree as a blog post.

(autoload 'ojs-export-to-blog "ox-jekyll-subtree")
(setq org-jekyll-use-src-plugin t)

;; Obviously, these two need to be changed for your blog.
(setq ojs-blog-base-url "http://endlessparentheses.com/")
(setq ojs-blog-dir (expand-file-name "~/Git-Projects/blog/"))

ox-jekyll-subtree's People

Contributors

malabarba avatar egh avatar dotmilk avatar

Stargazers

Aneeq Asif avatar Andy Shevchenko avatar  avatar Grant Rettke avatar WeJan avatar Kevin Nolan avatar Andrea Richiardi avatar bin avatar  avatar Andrew Tropin avatar  avatar Andrea Crotti avatar Tiphaine Després avatar  avatar WordBrewery avatar Piotr Limanowski avatar Sineer avatar Tomas Markauskas avatar Brian Burns avatar Tristan Huang avatar stardiviner avatar vindarel avatar 子龙山人 avatar Brad Collins avatar Lili Karashchuk avatar Yoshinari Nomura avatar Matus Goljer avatar  avatar Sean Allred avatar Adrien Becchis avatar

Watchers

Tim avatar Brian Burns avatar  avatar James Cloos avatar Tristan Huang avatar  avatar Toby Moth avatar Kechao Cai avatar  avatar

ox-jekyll-subtree's Issues

regexp search: \n* not found

This happens due to the last ine of endless/prepare-input-buffer which, I guess, should skip to the next headline?

Maybe it would be safer to use outline-next-heading as it handles the case when there is nothing after the current heading (or it raises an error you can process).

This is really low-priority task though, so don't worry over it.

Backend issue with org-mode 9.0

In the ox-jekyll.el file, line 95, there is a ": export-block" in the org-export-define-derived-backend function. When using org-mode version 9.0 or above (I am using org-mode 9.0.2), the export-block synthax changed (see http://thread.gmane.org/gmane.emacs.orgmode/103736). However, I have never experience Lisp coding, and cannot solve this issue by myself. Could you help me?
Thank you,
T.

Multiple blogs

This is not so much an issue as a question. I would like to use ox-jekyll-subtree for multiple blogs, that are published separately. The simplest way I can think of doing this is to set #+BLOGDIR and #+BASEURL in each file and write a script to check to see if these properties are set and if they are, then setq endless/blog-base-url and endless/blog-dir.

Is there a simple way of grabbing the value of a property in orgmode? I haven't written any elisp in 7 years and am a bit rusty.

Bump ox-jekill.el

Greetings great @Malabarba!

I am not using this yet, but I have to say that after having read your blog post I am pretty sold 😀
I was just wondering one thing, I see that the ox-jekill.el file is old and has not been following up its counterpart.
I was wondering whether you'd want to either copy it over from there or even git submodule it, so that they will always be in sync.

Thanks a lot for this and other impressive Emacs stuff!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.