README.md in wordpress-exporter-0.0.1 vs README.md in wordpress-exporter-0.0.2
- old
+ new
@@ -44,10 +44,11 @@
## Step by step
1. [Export](http://en.support.wordpress.com/export/) the content of the blog from WordPress and save it as XML file.
2. Create YAML file with settings (eg. settings.yml) and fill in the required parameters.
The generated `content types`, `entries` and `assets` will be saved to the `data_dir`.
+ We recommend you to use `wordpress_settings/wordpress_settings.yml` file in this repository
3. Extract the content from the XML file and generate the content model and JSON files for the import:
```bash
wordpress-exporter --config-file settings.yml --extract-to-json
@@ -66,6 +67,34 @@
```bash
wordpress-exporter --config-file settings.yml --convert-markup
```
This will only touch the content body of a blog post, other attributes will not be changed.
-5. Use the [contentful-importer](https://github.com/contentful/generic-importer.rb) to import the content to [contentful.com](https://www.contentful.com)
+5. Create your content model from JSON:
+
+ ```bash
+ wordpress-exporter --config-file settings.yml --create-contentful-model-from-json
+
+ ```
+
+6. Use the [contentful-importer](https://github.com/contentful/generic-importer.rb) to import the content to [contentful.com](https://www.contentful.com)
+
+7. Add you organization id and the access token to your `settings.yml`
+
+8. Next we import the content model (the collection of content types), make sure you add the new created space id to your `settings.yml` file.
+
+ ```bash
+ contentful-importer --config-file settings.yml --import-content-types --space_name my-blog
+ ```
+
+9. We use the following command to import our entries and assets:
+
+ ```bash
+ contentful-importer --config-file settings.yml --import
+ ```
+
+10. And finally publish the entries and assets:
+
+ ```bash
+ contentful-importer --config-file settings.yml --publish-entries
+ contentful-importer --config-file settings.yml --publish-assets
+ ```