Back in college I uploaded a large batch of OJ problem solutions to CSDN (though many of them were trivial problems). Several previous migrations skipped these problems entirely, because the volume was too large and the payoff too low.
In early April, inspiration struck out of nowhere: I wanted to migrate all these articles to Hugo, where managing them as markdown would be more flexible. Thinking back to when I wrote them, what I actually wanted was a backup of the md files, but it never happened because it was too much hassle. Taking this opportunity, I’ve finally sorted these articles out again.
Along the way, I built a lot of scaffolding just to support this one thing—things like various shortcodes for displaying problems, a crawler site for backing up static problem statements, and a brand-new DidaOJ system rebuilt from scratch.
In short, although the process was fairly manual labor, the result is quite satisfying.
I’ve also left some TODOs behind. Some are because the original site was temporarily or permanently unreachable, making many records hard to recover; others are loose ends I left back then and never tied up after all these years.
I’ll gradually improve them when I get the chance later (hopefully this isn’t just another flag for a new pit).
Going forward, similar solution posts will preferentially be submitted under the category: OnlineJudge.