Skip to content

Conversation

@halcyon
Copy link
Contributor

@halcyon halcyon commented May 19, 2016

Rebased version of PR #40, which addresses issues #35 and #36.

halcyon added 8 commits May 18, 2016 21:55
Use predicate nature of org2jekyll-article-p to remove need for
org2jekyll-layout, and turn org2jekyll-article-p into a function.
Rename org-to-yaml-metadata to org-to-jekyll-metadata as this function
is intended to translate org keywords to their jekyll equivalents.  The
translation table is locally scoped as it is only useful within
org-to-jekyll-metadata. While there is only one key in the translation
table, it's important to make it simple to add more if needed.
Keep Org-only options that have no meaning to Jekyll from leaking into
the final Jekyll front matter.
@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-0.2%) to 84.141% when pulling 5fb05aa on halcyon:rebased-refactor into 35e11ff on ardumont:master.

org2jekyll.el Outdated
("description" . 'mandatory)
("author")
("layout" . 'mandatory)))
(setq org2jekyll-header-metadata '((:title . 'mandatory)
Copy link
Owner

Choose a reason for hiding this comment

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

I liked the defvar, it's to avoid a warning at installation time.
I voluntarily declared it nil and set it after for dev reasons. When i was not yet sure of what i should put in there.

It should even be a defconst now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree.

@ardumont
Copy link
Owner

Hello again,

One note, you could have forced push on the #40 PR.

This seems good thanks.

One question to make sure i understood right.
To add some extra yaml, how one should go along?

For example, to add this:

scheme-text: "#0029ff"
scheme-link: "#ff00b4"

I just add in the org file:

#+scheme-text: "#0029ff"
#+scheme-link: "#ff00b4"

And when exported, we'll have the expected yaml. Did i understand right?

@ardumont ardumont changed the title Rebased refactor Allows for the usage of new front matter variables - rebased + refactor May 19, 2016
Renamed mandatory to required.  Adjusted comments, and renamed a few
other symbols to more clearly express their purpose.
@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-0.2%) to 84.141% when pulling d1fc4f7 on halcyon:rebased-refactor into 35e11ff on ardumont:master.

@halcyon
Copy link
Contributor Author

halcyon commented May 19, 2016

I felt hesitant to force push to PR #40 because I ended up creating a new branch and manually reimplementing the original PR instead of using interactive rebase - it was too much of a mess! I wasn't thrilled about creating a new PR, but I didn't want to risk obfuscating the original PR and discussion. Will definitely keep force push on hand for future work.

Yes, your interpretation is correct. Although the convention for Org mode's special lines seems to be all caps. The PR downcases as part of the transformation, so the result should be the same and less jarring with:

Input:

#+SCHEME-TEXT: "#0029ff"
#+SCHEME-LINK: "#ff00b4"

Output:

scheme-text: "#0029ff"
scheme-link: "#ff00b4"

@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-0.2%) to 84.141% when pulling b4d5ba0 on halcyon:rebased-refactor into 35e11ff on ardumont:master.

@ardumont
Copy link
Owner

Yes, your interpretation is correct. Although the convention for Org mode's special lines seems to be all caps. The PR downcases as part of the transformation, so the result should be the same and less jarring with:

Yes, indeed. It is my experience org's ok with lower case as well.
In any case, thanks a bunch.

I'll adapt the README.org

Cheers,

@ardumont ardumont merged commit 7c1cacb into ardumont:master May 19, 2016
ardumont added a commit that referenced this pull request May 19, 2016
Thanks @halcyon for the great work.
ardumont added a commit that referenced this pull request May 19, 2016
Thanks @halcyon for the great work.
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