Fanfic site generator pre-alpha release
Jul. 5th, 2024 02:53 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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
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!
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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!
no subject
Date: 2024-07-05 03:06 pm (UTC)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 😂
no subject
Date: 2024-07-06 04:09 am (UTC)Good luck!
no subject
Date: 2024-07-08 02:01 am (UTC)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.
no subject
Date: 2024-07-08 02:36 am (UTC)Yay, it mostly worked! I will take a look at your issues when I can. Making it support the Squidgeworld fandom field will definitely require a code change. With regard to adding podfic, I think you can add it to the list in params.json - can’t check right now (no laptop) but there’s a list with fanfic, fanart, etc. podfic should definitely be one of the defaults though so I will add it!
no subject
Date: 2024-07-08 01:13 pm (UTC)Podfic issue was probably caused by media tags being case-sensitive. I've fixed that now, along with the same issue for filtered tags. I've left merged tags alone until I can test it some more.
I've added a flag so you can replace spaces in filenames with a different character. Disabled by default, but if this is always going to be a problem with Neocities maybe it should be enabled by default? Although it seems like AO3 now provides files with underscores in the filenames anyway.
I'm also on the missing end notes issue but it's proving more complicated than it seemed at first glance. A tomorrow (or Wednesday) problem, I'm afraid. As for removing the copyright symbol, currently that would require making a new theme but I'll investigate making that text configurable like the menus (complicating factor is that IIRC it updates automatically for every year).
I forgot to say earlier, thank you very much for trying it out! No alpha release survives first contact with someone else without coughing up some bugs, haha.
Oh and as for questions, if it's something you think will be helpful to other people then feel free to raise a github issue, but I'm also happy to answer questions here.
no subject
Date: 2024-07-09 01:57 pm (UTC)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.)
no subject
Date: 2024-07-13 05:25 am (UTC)Your method of updating is probably better than the one in the readme - for one thing it will capture any updated param.json entries - so if you're comfortable with that, stick to it!
no subject
Date: 2024-07-18 01:56 am (UTC)no subject
Date: 2024-07-09 09:58 am (UTC)OK, today's changes:
"display_copyright": false
to the display_options section in your params.json to remove the copyright line from the footer.no subject
Date: 2024-07-05 03:38 pm (UTC)no subject
Date: 2024-07-05 10:05 pm (UTC)no subject
Date: 2024-07-06 05:47 pm (UTC)no subject
Date: 2024-07-06 10:48 pm (UTC)