Skip to content

Commit 000d65d

Browse files
committed
Updated readme and description
1 parent 7628ac6 commit 000d65d

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ typings/
100100
# End of https://www.gitignore.io/api/node,macos,visualstudiocode
101101

102102
# Default input/output files
103-
squarespace.xml
103+
input.xml
104104
blog/

README.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
# Blog Migrator from Squarespace XML export to Gatsby
1+
# Blog Migrator from Wordpress Export to Gatsby
2+
Migrate your Wordpress blog to Gatsby. This tool takes a Wordpress export, and produces a local folder structure with the content and images.
23

3-
* Takes two arguments:
4-
1. Squarespace XML export file
5-
2. Directory to export to
64
* Creates folders and files match post structure
7-
* Exports contents to Markdown for Gatsby
8-
* Downloads and exports images locally
5+
* Converts contents to Markdown and stores in a local folder structure
6+
* Fetches and saves images locally, updating image links in the content
7+
* Supports link posts with a `passthrough_url`
98

10-
## To run
9+
## How to use
1110

12-
Run `npm start INPUTFILE OUTPUTDIR`.
11+
Run `npm start INPUT_FILE OUTPUT_DIRECTORY`.
1312

14-
Example `npm start squarespace.xml blog`
13+
Example `npm start input.xml blog`

importer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const importPosts = async (file) => {
4545
})
4646
mappedItem.images = images
4747

48-
// Strip out content tags
48+
// Strip out Squarespace content tags
4949
mappedItem.content = removeSquarespaceCaptions(mappedItem.content)
5050

5151
// Add Markdown conversion

package.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
2-
"name": "squarespace-gatsby-migrate",
2+
"name": "wordpress-gatsby-migrate",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "Migrate your WordPress blog to Gatsby. This tool takes a Wordpress export, and produces a local folder structure with the content and images.",
55
"main": "index.js",
66
"scripts": {
77
"start": "node index.js",
8-
"debug": "node --nolazy --inspect-brk=9229 index.js squarespace.xml blog",
9-
"test": "echo \"Error: no test specified\" && exit 1"
8+
"debug": "node --nolazy --inspect-brk=9229 index.js input.xml blog"
109
},
11-
"author": "",
12-
"license": "ISC",
10+
"author": "Weiran Zhang",
11+
"bugs": {
12+
"url": "https://github.com/weiran/wordpress-gatsby-migrate/issues"
13+
},
14+
"homepage": "https://github.com/weiran/wordpress-gatsby-migrate",
15+
"license": "MIT",
1316
"dependencies": {
1417
"cheerio": "^1.0.0-rc.2",
1518
"davefeedread": "^0.4.14",

0 commit comments

Comments
 (0)