Generate the Static Site assets from Wordpress and Simply Static.
- Setup local Wordpress environment. Use LocalWP, Docker or any other method.
- Install Simply Static plugin
- Setup Replacing URLs path in the Simply Static settings
- Create the remote repository in github or any other provider
- Setup deployment method to local directory and set the destination to the git repository folder
- Generate new static site files with the Simply Static
- Remove all static sites except .git, .gitignore, static-site and README.md
find . -mindepth 1 -maxdepth 1 \( ! -name .git -a ! -name .gitignore -a ! -name static-site -a ! -name README.md \) -exec rm -r {} \;\n
- Move generated files to root
cp -r static-site/* .
- Git commit and push