Skip to main content

Migrate wordpress web content to docusaurus markdown

· One min read
  1. Export your wordpress content to xml
  2. Login to Wordpress
  3. Tools
  4. Export all content to a xml file
  1. 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
  1. Clone https://github.com/stnor/wordpress-to-docusarus-markdown
  2. Modify convert.js of "wordpress-to-docusarus-markdown", change line #27, point to your exported xml file
  3. Execute yarn to install reqiure package, and then execute convert
yarn
yarn convert
ClustrMaps