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

[Suggest] lentic can use org-publish to generate html #23

Open
tumashu opened this issue Mar 16, 2015 · 8 comments
Open

[Suggest] lentic can use org-publish to generate html #23

tumashu opened this issue Mar 16, 2015 · 8 comments

Comments

@tumashu
Copy link

tumashu commented Mar 16, 2015

I think we can use org-publish in lentic, which can recursive generate html, the below is my example code:

    https://github.com/tumashu/chinese-pyim/blob/master/chinese-pyim-devtools.el
@phillord
Copy link
Owner

Nice to see you using lentic. I've just changed the lentic-doc functionality, so that I can do publishing of an arbitrary package (currently, aimed at m-buffer which I thought was the only package other than lentic using lentic to document itself).

I could easily add support for using org-publish. I'm confused in this case though -- why is recursion valueable for you?

@tumashu
Copy link
Author

tumashu commented Mar 16, 2015

my package chinese-pyim use lentic-doc too, in my opinion , recursion very import, i can use [[ file:sample.org]] instead #+include sample.org

@tumashu
Copy link
Author

tumashu commented Mar 16, 2015

org-publish can auto convert sample.org to sample.html

@tumashu
Copy link
Author

tumashu commented Mar 16, 2015

The example:

* Lentic Mode

lentic-mode.el provides end-user functions for creating and manipulating
lentic buffers.

See:  [[file:lentic-mode.org]]

org-puglish can auto convert lentic-mode.org to lentic-mode.html, and the above become a link.

@phillord
Copy link
Owner

Okay -- so you mean "export everything" rather than recursively?

The lentic-doc package currently checks for a variable with name "feature-doc" -- so "lentic-doc" or "m-buffer-doc". The logic for handling this iff it's a string, treat it as the name of the "main" org file, iff t then just use the orgified file of the package (so lentic.org or m-buffer.org).

I could also add -- iff it's a list, treat it as an org-project-alist and publish (as you have done). Or most generically of all, iff it's a function call it. Would these work for you?

I have to say, though, I prefer my solution! Using org-info.js over a single document is, to me, more convenient than putting "See also" links in.

@tumashu
Copy link
Author

tumashu commented Mar 17, 2015

I could also add -- iff it's a list, treat it as an org-project-alist and publish (as you have done). Or most generically of all, iff it's a function call it. Would these work for you?

Good idea!

@tumashu
Copy link
Author

tumashu commented Apr 5, 2015

I have to say, though, I prefer my solution! Using org-info.js over a single document is, to me, more convenient than putting "See also" links in. 

I use lentic with different way, my interesting is like this:

(*.el + lentic + org-webpage  ==> project webpage), 

the below is my example, works very well:

http://tumashu.github.io/chinese-pyim/
https://github.com/tumashu/chinese-pyim
https://github.com/tumashu/chinese-pyim/blob/master/chinese-pyim-devtools.el

@phillord
Copy link
Owner

phillord commented Apr 7, 2015

It makes sense -- in fact, I do the same thing. I will try and add the org-publish support (or will accept a PR).

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

No branches or pull requests

2 participants