#+title: mir's new website

* hi.
** this here is my home on the world wide web. it is to be a place i put random stuff iv written.

and perhaps that's okay

but perhaps it's not!

idk

* how this works
** tl;dr:
You are seeing this page just like im seeing it in my Emacs! this is possible thanks to the built-in =htmlize= package.

Thanks to some minor regex fnaegling, links to other org files in my site directory are also resolved to their corresponding html.

** l;r:
the primary function to use is =htmlize-buffer= - the equivalent for files does not do syntax highlighting sadly. So we have to open a file in its buffer, fix all the links without saving, export that html into a _new_ buffer, and save /that/ to its final resting place. Seems simple enough right?

*wrong*

at least, the way i've been handling it as an outgrowth of my vimwiki imitation hastn't quite worked yet, at least not all the way thru. in fact, im writing this out in ordr to simplify the task and thereby solve my issues with this project.

if you're seeing this, it works! or at least it worked once...

*** putting some things togeth dont mind me
dir is the root, all files are relative to that
so all links are made relative to taht
wait our links are already doing their thing, tahts finde. 

okay i think i have it maybe...

or maybe not but possibly hmm im getting stumped tbh

who even knows anymore

ohhh making the directory is failing still right huh

*** Okay, forget about that silly stuff

Time to work on hyperbole!

*** just kidding it might have been important

while assembling my hyperbole stuff (same link, dw, just testing mostly and it does work yay) i realized that my approach of just turning say =word= into =[[word.org][word]]= is pretty flawed. much better to make it into =[[word/][word]]= that way when it exports you don't get name.html... and that export would then have to be like =[[word/][word]]= and that's fine but it raises the question of what to do when a sub-article references another word - that's awhat happens when i made the word "checked" in the hyperbole page a link. does it go to /checked/index.html? maybe /hyperbole/checked.html? obviously neither of those are correct. should be /hyperbole/checked/index.html !

(this link hyperbole/checked is to test something)

im going to try being slightly more robust, and in the lead-up to that i figure may as well add the dreaded /export folder/...

okay we gotta rewrite a whole bunch of stuff