-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add support for publishing org-roam file nodes via :input-source #57
base: main
Are you sure you want to change the base?
Conversation
ab36dd1
to
e548c44
Compare
Thank you so much to work on that @nanzhong , i'm ready to beta test when it's done :) ! |
@reyman thanks. I've been using this personally for a little while now and it fits my use cases pretty well. Feel free to give it a go, I'd definitely appreciate that! Happy to address any issues you find and incorporate any additional features you would find helpful. I've added an example site that you can take a look at to see how this extension can be used. @clarete does the direction that this is going look good to you? The last few bits that are missing are tests and updating the existing documentation (adding new docs for the org-roam extension and updating the change to input-source). I'm happy to start working on those if thing look generally good to you. I don't write a lot of elisp so please feel free to review with a fine tooth comb 😄. Since I make use of this myself, I'm happy to maintain this extension going forward. |
@nanzhong I start to config my site using weblorg, your first example is really helpfull, perhaps adding some more complicated filters query like :
I try to do that by myself too but some more doc with examples of filters could be good for lisp noob like me :)
I try different things, verifying that tags are ok using that, but i don't found a solution.
I use :
|
e67f461
to
1841c3a
Compare
3ed9d7c
to
3550300
Compare
This is an initial attempt at adding support for using weblorg to publish org-roam file nodes.
I'm very new to emacs lisp, so please feel free to point out anything that is not correct, not idiomatic, or if there are better ways to do something.
On a high level this PR introduces 3 things:
weblorg-route
:weblorg-input-source-org-roam-nodes
andweblorg-input-source-org-roam-nodes-agg
weblorg-site
that specifies the default route to use for id links)to support both list and function. This is needed because
weblorg--route-install-template-filters`, which configures the custom link exporters, happens after the route is defined. This means that make use of the link exporters, we need to run the org -> html export after the site/routes are defined.Each file node is represented as an alist similar to regular org files, however, there is an additional
backlinks
key that can be used to render backlinks for a given file node.There is still quite a bit missing such as tests, documentation, etc. but I wanted to get this up to make sure it's going in the right direction before spending time on those pieces.
Example usage
I've been using this for my own org-roam notes, the following are the relevant parts that show how this can be used (I did not include the theme template's but they should be relatively self-explanatory).