burrow icon indicating copy to clipboard operation
burrow copied to clipboard

add ability to regenerate gophermaps

Open benharri opened this issue 7 years ago • 2 comments

I ran into this after creating a phlog post, realizing the path was wrong, updating the configs and still seeing the wrong link.

benharri avatar Jul 12 '18 01:07 benharri

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?

jamestomasino avatar Jul 12 '18 02:07 jamestomasino

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.

benharri avatar Jul 12 '18 05:07 benharri