tonyaldon / one.el

one.el a simple Static Site Generator for Emacs Lisp programmers and org-mode users.
https://one.tonyaldon.com
GNU General Public License v3.0
37 stars 11 forks source link

Support to Build rss/atom feeds #3

Open idlip opened 10 months ago

idlip commented 10 months ago

Hi @tonyaldon!

Its so nice to see ssg with pure org-mode and elisp. I just tried it now, and I can feel how simple and friendly to org-mode it is.

I have to still dig and try out more possibility to get desired themes.

Just one required feature would be support to generate rss/atom feeds. This would be easy, even I will give a try of writing elisp that generates it.

Just adding it here, not an issue as such, just a feature request.

tonyaldon commented 10 months ago

Thanks @idlip for giving a try to one.el.

Just one required feature would be support to generate rss/atom feeds. This would be easy, even I will give a try of writing elisp that generates it.

I have not planned to add functions to build rss/atom feeds. I think this can be done on a per project basis. But I leave that issue open in case I change my mind in the future.

I just published tonyaldon/minibuffer.tonyaldon.com repository which contains the code/content of minibuffer.tonyaldon.com. You can find in its onerc.el file an example of how to produce a feed.xml file using one-hook. Specifically, check the function mb-feed.

I hope this is helpful.

idlip commented 10 months ago

Yes, that helps it. Jack looks like like it makes writing html in elisp very simple.

Thank you for sharing and your work on both the package! @tonyaldon

I'm sure with emacs conf, many people would be trying this and appreciate the design. Maybe in some stream daviwil (system crafters) can showcase live!

tonyaldon commented 10 months ago

Yes, that helps it.

Cool!

Maybe in some stream daviwil (system crafters) can showcase live!

Would be great!

idlip commented 10 months ago

Also @tonyaldon one issue I stumbled on, May I know where is (org-font-lock-ensure) is defined?

I get progn: Symbol’s function definition is void: org-font-lock-ensure while one-build

I dont see that function in org.el. Removing that line gets me no issue.

idlip commented 10 months ago

Another doubt, sorry that I'm asking it here only (did not wanted to open another issue)

Normal org export to html file inherits the src block's syntax highlight from emacs theme itself, so is there a way or option to do it that way for one-build too?

I saw there are one-hl-* classes. But since emacs theme itself gives us syntax highlight, it would be easy for newcomers to get started with good blogs with syntax highlight.

tonyaldon commented 10 months ago

I think the information you are looking for is in "one-ox | src-block":

https://one.tonyaldon.com/docs/one-ox-src-block/

Let me know if this answer to your question.

tonyaldon commented 10 months ago

I get progn: Symbol’s function definition is void: org-font-lock-ensure while one-build

The function org-font-lock-ensure has been remove in org-mode 9.6.6.

So I removed it in 597dce0.

Try to use one.el v1.1.

idlip commented 10 months ago

https://one.tonyaldon.com/docs/one-ox-src-block

Oh yes, it is what I needed to read. I rushed with excitement that I have not read the docs properly. lol

Try to use one.el v1.1.

Funny that I had cloned this repo to try when you posted on reddit itself, git pull and yes sir, its all good now!

Thank you for kind response and clarification!

tonyaldon commented 10 months ago

You're welcome