January 22, 2025
Table of Contents
1. New Site
This is the first post for my latest Web site. I've had a fair amount of thoughts simmering recently, which will be covered over time. One of the most immediate notes is that the format of the site has changed to reflect a daily(ish) journal which will be used to track work as it happens (as time allows).
My current plan is to work on this site a bit early in the morning, and occasionally in the evening - where some notes will be captured over the course of the day elsewhere and distilled here.
Each page (like this one) will record some work that has been done along with upcoming plans.
1.1. Contents
The site contents will be driven by projects and thoughts, and will vary from the mundane to what may be potentially of interest to anyone other than myself. This will evolve towards a graph of information over time as the supporting tooling is refined.
2. Content Production
The content is authored in org-mode, and is currently exported using
the org-export-dispatch
command to product HTML. This is being done
manually to start. At present this
results in the html file being produced alongside the org - that
should be split out to a distinct destination directory.
Similarly the home page will be manually updated and exported.
3. Content Publishing
The site will be published to SourceHut pages. In the current
iteration the generated HTML pages will be moved from their initial
location alongisde source. To encode the instructions from
srht.site
and move the files, I'll create the site.mk file.
I had to spend a fairly typical amuont of time working through minor makefile issues, which made some of the exporting steps notably onerous - I'll look at getting those automated fairly soon.
3.1. Link Management
The pages are currently left in this directory, the ability to adjust links on export will need to be explored at some point to enable more flexible structure.
4. Literate Programming
This project will make use of literate programming within org; this will be expanded upon quite a bit later.
5. Hut Installation
Per the instructions on the site, I clones the hut repository, built, and installed it.
6. Site is live
The initial site (of pretty much just this page) is live at: https://mwhipple.srht.site/.
7. Build Manifest
Per the sourcehut docs, the publishing can be automated using a conventionally named repository and a build manifest. This copies the example replacing the relevant variables and invoking make to handle the build.
image: alpine/edge oauth: pages.sr.ht/PAGES:RW packages: - hut environment: site: mwhipple.srht.site tasks: - publish: make --directory=$site publish
This requires the exported contents to be present in the repository for the time being.
8. Next Steps
8.1. TODO Add exporting to makefile
8.2. TODO Automate the publishing with the job configuration.
8.3. TODO Configure custom domain
8.4. TODO Pull in tangle recipe
8.5. TODO Pinewood Derby Prep
8.6. TODO set EDITOR
The latter two can be driven off of the sourcehut docs.