Tom Alexander
add267d616
Switch over to using the render context in render calls.
2023-12-19 16:20:12 -05:00
Tom Alexander
cb3278aba5
Create a struct that will combine all the context for converting intermediate objects into the dust render context.
2023-12-19 14:54:12 -05:00
Tom Alexander
94d9a95967
Add a basic template for the blog stream page.
2023-12-19 14:13:29 -05:00
Tom Alexander
6511115b95
Implement a flawed version of RenderBlogStreamEntry::new.
...
There are some shortcomings in this implementation listed in the comments, but this is the general structure.
2023-12-19 10:59:34 -05:00
Tom Alexander
53cd55932b
Implement RenderBlogStream::new.
...
I still need to implement RenderBlogStreamEntry::new.
2023-12-19 10:47:03 -05:00
Tom Alexander
cbe2010407
Invoke dust to render the stream pages.
...
At this point the render_blog_stream function is done, but RenderBlogStream::new needs to be implemented to actually generate the render context. The body of this function should be similar to convert_blog_post_page_to_render_context.
2023-12-17 17:26:15 -05:00
Tom Alexander
2ba4a5e3d7
Generate newer and older links.
2023-12-17 17:16:26 -05:00
Tom Alexander
c3482cf1e4
Chunking the blog posts for the stream.
2023-12-17 16:57:37 -05:00
Tom Alexander
fdf84e3d0b
Finding the index page.
2023-12-17 15:45:50 -05:00
Tom Alexander
0a4376dfb8
Rename intermediate blog post source file.
2023-12-17 15:32:07 -05:00
Tom Alexander
e8ed4a4f4a
Initial structure for rendering a blog post stream.
2023-12-17 15:32:07 -05:00
Tom Alexander
60555999db
TEMP: Disable the css reset.
...
This is so I can develop the header without having any CSS written yet since the page is a mess without CSS.
2023-12-17 14:56:23 -05:00
Tom Alexander
6968a5b02c
Merge branch 'header'
2023-12-17 14:47:45 -05:00
Tom Alexander
c84cfdc02b
Basic template for a page header.
2023-12-17 14:45:42 -05:00
Tom Alexander
c98489cacb
Add the page header to the render context.
2023-12-17 14:45:42 -05:00
Tom Alexander
35dbab0ceb
Create a page header struct.
2023-12-17 14:45:42 -05:00
Tom Alexander
1ff41940a5
Merge branch 'css'
2023-12-17 14:02:20 -05:00
Tom Alexander
884215a7e1
Writing the stylesheets to the output folder.
2023-12-17 13:46:47 -05:00
Tom Alexander
20c55f0708
Loading stylesheets from the default environment.
2023-12-17 12:43:47 -05:00
Tom Alexander
9e3d72972c
Add a CSS reset file.
2023-12-17 11:55:38 -05:00
Tom Alexander
806c45a453
Switch back to the published version of organic.
2023-12-17 11:54:59 -05:00
Tom Alexander
270c42a509
Update to use get_value from the latest organic code.
2023-10-31 22:03:22 -04:00
Tom Alexander
e8963e107b
Merge branch 'table'
2023-10-31 20:38:36 -04:00
Tom Alexander
0b64551a23
Add templates for tables.
2023-10-31 20:31:36 -04:00
Tom Alexander
b654ca4859
Add render phase to tables.
2023-10-31 20:29:37 -04:00
Tom Alexander
386af57ce6
Add intermediate stage for tables.
2023-10-31 20:26:34 -04:00
Tom Alexander
ef4d315bf2
Run cargo fix.
2023-10-31 20:02:46 -04:00
Tom Alexander
2142b01967
Merge branch 'text_markup'
2023-10-31 20:02:13 -04:00
Tom Alexander
159d8fb72a
Add render stage for text markup.
2023-10-31 20:02:04 -04:00
Tom Alexander
0fae417610
Add intermediate stage for text markup.
2023-10-31 19:57:04 -04:00
Tom Alexander
ae933b491e
Use macros for the intermediate to render step.
...
This is largely to make changing the type signature of these functions easier by significantly reducing the amount of places that duplicates the signature.
2023-10-31 19:48:05 -04:00
Tom Alexander
5e476e189a
Merge branch 'latex_fragment'
2023-10-31 19:18:20 -04:00
Tom Alexander
533997dbf5
Add a template for latex fragment.
2023-10-31 19:16:13 -04:00
Tom Alexander
8695cf17c5
Copy the value of latex fragments through the pipeline.
2023-10-31 19:14:36 -04:00
Tom Alexander
e2f9938437
Add notes about latex fragments.
...
The places they are currently occurring in my posts are unintentional, so I don't think I will be implementing latex fragments right now, but the notes are worth keeping.
2023-10-31 12:32:20 -04:00
Tom Alexander
ada11816fb
Run cargo fix.
2023-10-29 22:31:29 -04:00
Tom Alexander
ff57242434
Merge branch 'footnote'
2023-10-29 22:29:38 -04:00
Tom Alexander
0da37b25e3
Assign the reference counts.
2023-10-29 22:29:29 -04:00
Tom Alexander
ff03140007
Order the footnotes based on when they start processing rather than when they finish.
...
This has the benefit of making the output order make sense when footnote definitions reference footnote references but I mostly did it to match the behavior of upstream org-mode.
2023-10-29 22:29:29 -04:00
Tom Alexander
0ae492f8d3
Promote waiting footnote definitions.
2023-10-29 22:29:29 -04:00
Tom Alexander
613d49c6ec
Record on-deck footnote definitions.
2023-10-29 22:29:29 -04:00
Tom Alexander
0f7e5eea25
no-op the template for footnote definitions.
2023-10-29 22:29:29 -04:00
Tom Alexander
2e7cfd5637
Only parse footnote definitions if they target a reference that exists.
2023-10-29 22:29:28 -04:00
Tom Alexander
afe62de2b6
Re-enable AstNode.
2023-10-29 22:29:28 -04:00
Tom Alexander
1f3b5262b8
Fix build by making the registry guarded by an ArcMutex.
2023-10-29 22:29:28 -04:00
Tom Alexander
f63620b547
Registry being mutuably borrowed.
2023-10-29 22:29:28 -04:00
Tom Alexander
671159cb82
Does not work even without IntoAstNode.
2023-10-29 22:29:28 -04:00
Tom Alexander
f1e985fb32
Lifetime issue.
2023-10-29 22:29:28 -04:00
Tom Alexander
a966be8122
Remove closures from iselector macro.
2023-10-29 22:29:28 -04:00
Tom Alexander
24b9782146
Avoid closures for the intermediate macro.
2023-10-29 22:29:28 -04:00