flamebyrd: (Default)
[personal profile] flamebyrd
I need to admit at this point, over a year later, that I have mentally checked out of this project and thus I am now releasing it into the wild, in its mostly-complete state.

This does not mean I don't plan to fix bugs or answer questions, or even provide configuration instructions that I can later turn into wiki entries, if anybody wants to actually use it! It's just that I want to work on other things more right now in my limited free time (I have more than I used to, but it's still limited).

In short, this is a Python script that will take a folder of AO3 HTML files and format them into a consistent style/template, and generate an index listing all the pages, including work metadata.

Many many thanks go to [personal profile] sqbr for helping document this mess! They are also to thank for most of the excellent fake fandom names in the sample content.

You can download the script here:
https://github.com/flamebyrd/makesite

If you'd like some handholding on setting this up, please feel free to drop me a comment or ping me on Discord, and I can make time to go through it with you. Definitely let me know if you use it so I can keep you informed of any changes!

I'm sure as soon as I put this out there I'll discover a ton of bugs or suddenly be inspired to make changes, so keep an eye on this post for updates!

Date: 2024-07-05 03:06 pm (UTC)
bluedreaming: digital art of a person overlaid with blue, with ace-aro-agender buttons (Default)
From: [personal profile] bluedreaming
This is so exciting!
I haven’t had a chance to look at the docs in depth, but I’m guessing, based on the “other files” section, that html of one’s fics posted on other otwarchive sites should work similarly (compared to html files formatted differently)?

I’m excited to try this and (I assume) completely fail on the first several attempts 😂

Date: 2024-07-08 02:01 am (UTC)
bluedreaming: digital art of a person overlaid with blue, with ace-aro-agender buttons (Default)
From: [personal profile] bluedreaming
Tried it out! mini-test
Re non-ao3 otwarchive htmls, the only issue I seem to have so far is that squidgeworld uses "Fandoms" instead of "Fandom" so it doesn't pick up the fandom metadata, and I don't know where to look and see how to change that. (Like, of course I could manually edit the source html document, but that would be more difficult with a lot of files.)

I have a couple of other small questions; I'm not sure if I should ask those here or as github issues?

I have to say though (fingers crossed and knock wood that I'm not jinxing myself), while there are some things I'd like to tweak (don't we all, always), it completely worked on the first try to make a totally usable and uniform little archive! Very very cool.

Date: 2024-07-09 01:57 pm (UTC)
bluedreaming: digital art of a person overlaid with blue, with ace-aro-agender buttons (Default)
From: [personal profile] bluedreaming
Downloaded the new code last evening an did a bit of poking! Switching to the new version worked well - I don’t know if I did it correctly as I think it was a tiny bit different from the instructions - I copied out my content folder and Params file, then got rid of the whole makesite folder, unzipped the new zip, ran the cmd for the first time, copied in my content and copied over my modified params (I checked it by line so as not to overwrite anything). Anyway, it worked great!
Oh, I’ve also been adding the notes to the top of the home page by including my stuff in the _index.md file.

The podfic tag thing could also have been because I was using a subset of the podfic tag “read by the author” - I’m using the function to merge tags, but I think media tag is detected before that happens. I wasn’t sure - is it possible to somehow specify that a media tag designation should check more than one specified tag? I fixed it with mine by manually replacing the tag with “Podfic” and then it was detected. If it’s not possible, it’s just a small fix for me (or I could go in and double-tag my live ao3 posts).

I also noticed that the media tag designations are also fanfiction (lowercase) but Podfic (uppercase) - I’m assuming this is due to the capitalization of the tag I used? I ran out of time to test if capitalizing Fanfiction in the defaults would have the page match. omit this section - I see it’s part of updates after I ran this!

That’s confusing about the tag label categorization; good luck!

Since these are alpha testing things, I’ll maybe stay here for right now if that’s okay - it might end up being more confusing if these things get tweaked anyway.

I’m super happy to be an alpha user; it’s really fun (and hopefully not bothersome to you - never any expectations of course) and also (cough) is way more fun than doing the testing I’m doing right now for work 😂😬

(I see the other comments - will check in about those later as I’m heading in to work right now.)
Edited (Updated based on later comment ) Date: 2024-07-09 06:04 pm (UTC)

Date: 2024-07-18 01:56 am (UTC)
bluedreaming: digital art of a person overlaid with blue, with ace-aro-agender buttons (Default)
From: [personal profile] bluedreaming
And now I got slammed with a stretch of busy weeks (sadness) but I'll definitely still come back to this! Looking forward to testing this out again; it will definitely make actually creating an archive and updating it so much easier, and the way it's set up will make poking at this and updating the site lots of fun!

Date: 2024-07-05 03:38 pm (UTC)
melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)
From: [personal profile] melannen
Ooh that looks really useful!

Date: 2024-07-05 10:05 pm (UTC)
delphi: An illustrated crow kicks a little ball of snow with a contemplative expression. (Default)
From: [personal profile] delphi
Oh wow, that's fantastic - thank you!

Date: 2024-07-06 05:47 pm (UTC)
linky: Close up of Hotaro smiling. (Default)
From: [personal profile] linky
This is awesome! Thank you so much for this.

Date: 2024-07-06 10:48 pm (UTC)
amalthia: (Default)
From: [personal profile] amalthia
Thanks for sharing!

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 17th, 2025 07:21 pm
Powered by Dreamwidth Studios