Migrate wordpress web content to docusaurus markdown
· One min read
- Export your wordpress content to xml
- Login to Wordpress
- Tools
- Export all content to a xml file
- Install yarn to your PC(Ubuntu as example)
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
yarn --version
- Clone https://github.com/stnor/wordpress-to-docusarus-markdown
- Modify convert.js of "wordpress-to-docusarus-markdown", change line #27, point to your exported xml file
- Execute yarn to install reqiure package, and then execute convert
yarn
yarn convert
