diff options
| author | sanine <sanine.not@pm.me> | 2022-01-13 17:41:02 -0600 | 
|---|---|---|
| committer | sanine <sanine.not@pm.me> | 2022-01-13 17:41:02 -0600 | 
| commit | 0ff62ea7886bdeff160682d3d5713c2c8a6dd4b1 (patch) | |
| tree | c70d31f35c1e54a7fc01246eb6740d79aef0ccd0 /site_root | |
initial commit
Diffstat (limited to 'site_root')
| -rw-r--r-- | site_root/about.lua | 17 | ||||
| -rw-r--r-- | site_root/blog/announcing_honeysuckle.lua | 37 | ||||
| -rw-r--r-- | site_root/index.lua | 28 | ||||
| -rw-r--r-- | site_root/projects/index.lua | 12 | ||||
| -rw-r--r-- | site_root/style.css | 44 | 
5 files changed, 138 insertions, 0 deletions
| diff --git a/site_root/about.lua b/site_root/about.lua new file mode 100644 index 0000000..ea832e1 --- /dev/null +++ b/site_root/about.lua @@ -0,0 +1,17 @@ +local md = [[ +about me +======== + +hey! i'm kate (aka sanine) and i like to write code, hack circuits, and grow plants. +i mostly use this site for documenting and sharing various projects.  +i also (very occasionally) make games!! you can see them [over on itch.io](https://sanine.itch.io/). + +if you need to get in contact with me, you can send me an email at `kate AT sanine DOT net`. +i hope you're having a good day. <3 +]] + +return { +   title='about me', +   layout='base', +   markdown=md, +} diff --git a/site_root/blog/announcing_honeysuckle.lua b/site_root/blog/announcing_honeysuckle.lua new file mode 100644 index 0000000..5fb97fb --- /dev/null +++ b/site_root/blog/announcing_honeysuckle.lua @@ -0,0 +1,37 @@ +return { +   title='announcing honeysuckle', +   layout='blog', +   date='2021-05-23', +   markdown=[[ +As I’ve been working on various projects for the past couple of years  +I have continued to find that a combination of C and Lua is my favorite  +way to write code. The ongoing development of [my game engine honey](https://honey3d.org/) +uses that pair and I’m planning on using it (whenever I get around to it) for my [dream  +atlas project](https://sanine.net/projects/dream-atlas). But, and I’ll be the first +to admit this, the C API is a little clunky.  +I don’t generally mind that all too much (after all, one of my favorite things about  +both C and Lua is that they’re languages you can carry around in your head, and having +a very explicit API means you only need to understand the fundamental concepts to use it) +but it does mean that dev work goes a bit slower. + +I did a good bit of work streamlining the process of writing Lua bindings in C when +tinkering with honey and ever since then I’ve found myself peeking back at that code +and re-implementing it in other projects. A colleague of mine once said that the time +to write a library is when you’ve done something once, you’re doing it now, and you +re pretty sure you’ll do it again, and I think I’ve quite handily cleared that condition +So! I’m splitting that code out and refactoring it into its own library which, due +to its historical roots, I’ve chosen to call honeysuckle. + +honeysuckle is still under development – the API is a bit different from the one I +came up with when working on honey and imo is easier to use – but when it’s ready +it will provide a whole host of helpful functions that make integrating Lua scripting +into C applications simple and fast. I am (attempting) to employ readme-driven development +so I’ve written up a readme for honeysuckle. Any feedback on the proposed API and +features would be much appreciated! As of writing, honeysuckle is planned to include +functions for parsing arguments to C functions from Lua, creating and processing tables +throwing and handling Lua errors, using the Lua registry, and creating printf-formatted strings. + +I’ve already created a repository for honeysuckle. There’s just a README in there +for now, but that will probably have changed even just later today, since I’m planning +on working on it more this afternoon. :p +]]} diff --git a/site_root/index.lua b/site_root/index.lua new file mode 100644 index 0000000..cc5f699 --- /dev/null +++ b/site_root/index.lua @@ -0,0 +1,28 @@ +local tk = require 'toolkit' + +function get_blog_links() +   local links = '<ul>\n' +   for _, page in pairs(tk.pages('blog/')) do +      links = links .. +	 string.format('<li><a href="%s">[%s] %s</a></li>\n', page.href, page.date, page.title) +   end +   return links..'</ul>' +end + + +local md = string.format([[ +home +==== + +welcome to sanine.net! + +%s + +[subscribe via rss](/rss.xml) +]], get_blog_links()) + +return { +   title='home', +   layout='base', +   markdown=md, +} diff --git a/site_root/projects/index.lua b/site_root/projects/index.lua new file mode 100644 index 0000000..96e3abe --- /dev/null +++ b/site_root/projects/index.lua @@ -0,0 +1,12 @@ +local md = [[ +projects +======== + +tl;dr projects go here +]] + +return { +   title='projects', +   layout='base', +   markdown=md, +} diff --git a/site_root/style.css b/site_root/style.css new file mode 100644 index 0000000..f43e73d --- /dev/null +++ b/site_root/style.css @@ -0,0 +1,44 @@ +body { +    color: #eee; +    background: #1c1c1c; +    font-family: monospace; +    font-size: 16px; +} + +#navigation { +    text-align: center; +} + +.centered { +    text-align: center; +} + +#content { +    width: 600px; +    max-width: 100%; +    margin: auto; +} + +a { +    color: #ff3a21; +} + +a:hover { +    color: #1c1c1c; +    background: #ff3a21; +    text-decoration: none; +} +     +ul { +    list-style: none; +} + +li:before { +    content: '* '; +} + +code { +    background: black; +    padding: 0 6px; +    border-radius: 4px; +} | 
