- Your situation
-
You currently have a website in Wordpress that consists of "just" blog posts and content pages, and you’re longing for better version control, reuse of content, and just plain text markup to write content.
A static site generator would be a good alternative. Writing in Markdown would be an obvious choices, but maybe too limited for what you want.
Antora is a static site generator for documentation sites. It works with Asciidoc files and git repositories as content sources.
Caution
|
|
-
Clone this repository.
-
Install dependencies:
$ npm i
-
Run the conversion of the demo content:
$ npm run convert
-
Generate the Antora site:
$ npm run build
-
Start a local server to see the website:
$ npm run serve
The repository contains an export of a small Wordpress-Antora demo site.
Export all content from your own Wordpress site (WP admin menu Tools > Export) and save the unzipped XML file in the main directory.
-
You can specify which Wordpress export file to convert:
$ WORDPRESS_EXPORT=my-export.xml npm run convert
-
You can copy and adapt the playbook file and use that:
$ PLAYBOOK=my-antora-playbook.yml npm run build
-
The convertor adds and overwrites files in the
export/
directory.
Tip
|
Copy everything under You can continue using Wordpress while setting up your new website. Do another export from Wordpress and conversion to Antora, and use version control to merge the changes. |