How to use Grav-API or migrate site

Hi!

Do you know how I can create many pages easily with grav-api or any idea to migrate a large site quickly?

Regards

I saw this: https://learn.getgrav.org/migration/wordpress

But need migrate an old homebrew site

How is the content in the homebrew site structured?

I have a rare mysql database and a very old and poor java program that generates many html files.

Using the same system, could you generate folders and Markdown-files? Basically a thorough folder-structure replicating the paths of each page, and just output the HTML to Markdown-files in their respective folders.

If the content in the database uses a better format than HTML (ie., anything), you could convert that to Markdown.