Commit Graph

16 Commits

Author SHA1 Message Date
Tom Alexander
397d4ea0bc Fix clippy issues.
All checks were successful
rust-test Build rust-test has succeeded
rust-clippy Build rust-clippy has succeeded
build-natter Build build-natter has succeeded
format Build format has succeeded
2023-12-23 07:08:06 -05:00
Tom Alexander
35dff5cdaf Rename to natter. 2023-12-21 19:28:31 -05:00
Tom Alexander
2914e42ba1 For plain list items with a single child that is a paragraph, do not wrap in paragraph html tags.
This is mimicking the behavior from org-mode's HTML exporter.
2023-12-21 17:18:51 -05:00
Tom Alexander
e3b5f7f74f Rename blog_post module to intermediate.
This module is mostly the intermediate representation of the AST, so the renaming is to make that more clear. The three forms are parsed => intermediate => render.

Parsed comes from Organic and is a direct translation of the org-mode text.

Intermediate converts the parsed data into owned values and does any calculations that are needed on the data (for example: assigning numbers to footnotes.)

Render takes intermediate and translates it into the format expected by the dust templates. The processing in this step should be minimal since all the logic should be in the intermediate step.
2023-10-27 13:10:21 -04:00
Tom Alexander
2b7a19a1d4 Introduce the corresponding non-render types. 2023-10-24 00:36:08 -04:00
Tom Alexander
3cfcae25a9 Move the render context to its own folder.
We are going to have a lot of render context types because there are so many org-mode elements/objects so I'm moving it to a separate folder for organization.
2023-10-23 23:49:35 -04:00
Tom Alexander
24bac982f1 Starting to create the renderer integrations.
These are the layer directly over dust which can be used by anything, not just blog posts.
2023-10-22 16:26:43 -04:00
Tom Alexander
2f0f3ab346 Switch to using CustomError because a boxed StdError is not Send. 2023-10-22 13:44:03 -04:00
Tom Alexander
d8fc49797e Moving into a load_blog_post function to create a BlogPost struct. 2023-10-22 12:04:09 -04:00
Tom Alexander
051e86e65a Remove the AddPost command.
I will be putting this back in later but having the skeleton sitting there unused has no value at this time.
2023-10-20 19:13:22 -04:00
Tom Alexander
933387eb6f Writing the writer.toml to a folder when running init. 2023-10-18 20:21:28 -04:00
Tom Alexander
63b0619094 Add the folder structure for the toml config. 2023-10-18 20:00:39 -04:00
Tom Alexander
8b5930f277 Set up folder structure for the command handlers. 2023-10-18 19:54:18 -04:00
Tom Alexander
a1f4600483 Move the CLI to a module. 2023-10-18 19:47:05 -04:00
Tom Alexander
1b189cf15c Add very basic CLI. 2023-10-18 19:36:15 -04:00
Tom Alexander
1ca2d2f49d Initial commit. 2023-10-18 19:03:45 -04:00