I already did this for this page and my company, but I'm moving our family archive too.
Step One Set Up the Python environment
First, set up your environment, I'm using pipenv install , you may be doing something else.
Step two, Install Pelican and plugins
Then install pelican and the plugins that you are planning to be using. See what I'm using here.
You will also need BeautifulSoup4 and lxml to import from a Wordpress site. You can do that with -> pip install BeautifulSoup4 lxml
Step three, quickstart pelican
Within the same python environment that you installed pelican and within the folder that you want to have the site type pelican-quickstart.
For now I want the makefile built, but I don't put all the important stuff in it yet.
Step four, get ready to import the old wordpress site
Now I just need to make a export file of the existing wordpress site and import it into this pelican site.
Place that file in your project directory (it just makes it easier)
Then you just put this -> pelican-import --wpfile -o output familyarchive.WordPress.2021-12-20.xml into the command line.
If you make sure that you NEVER delete your output folder AND you have the same URL as before you can be done and start building your site the way that you want.
For me, I will copy those files to the content folder and reconfigure them such that they are integrated directly into the process. For this archive site and my homepage this isn't a huge task. For my company site it has been a huge undertaking, but it has given me a chance to edit my posts and determine the ones that I want to keep and the ones that should sit as draft and get some major editing.
This post is part 1 of the "How I Pelican" series: