burrow
burrow copied to clipboard
add ability to regenerate gophermaps
I ran into this after creating a phlog post, realizing the path was wrong, updating the configs and still seeing the wrong link.
For regenerating a gophermap, do you think that should regenerate your entire gophermap from scratch or just have the edit feature (burrow phlog the same title to edit) also regenerate the gophermap for that one entry?
If I try to regenerate the entire gophermap I could easily have it just scrub through and change the server & port info, but the type, description, and path would be tricky. Well, the description would be tricky. It's lowercased and simplified in the filename, and I don't necessarily know whether someone may have modified their headers so I can't pull it back out of there.
What if instead of a regenerate gophermaps it's more specifically a 'fix gophermaps server info' type command?
I'm thinking that it could be a "regenerate" type command that would re-read the configs and then read the titles from phlog gophermaps before pulling that into the map for listing the phlogs. I'm not sure about that yet though either.