@tryghost/mg-jekyll-export 0.2.11 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -25,10 +25,10 @@ or
|
|
|
25
25
|
To run a Jekyll migration, the required command is:
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
migrate jekyll
|
|
28
|
+
migrate jekyll --pathToZip /path/to/site.zip
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
The
|
|
31
|
+
The zip should have a structure like:
|
|
32
32
|
|
|
33
33
|
```
|
|
34
34
|
_posts/
|
|
@@ -40,6 +40,9 @@ _drafts/
|
|
|
40
40
|
```
|
|
41
41
|
It's possible to pass more options, in order to achieve a better migration file for Ghost:
|
|
42
42
|
|
|
43
|
+
- **`--pathToZip`** (required)
|
|
44
|
+
- Path to a jekyll export zip
|
|
45
|
+
- string - default: `null`
|
|
43
46
|
- **`-V` `--verbose`**
|
|
44
47
|
- bool - default: `false`
|
|
45
48
|
- Show verbose output
|
|
@@ -68,7 +71,7 @@ It's possible to pass more options, in order to achieve a better migration file
|
|
|
68
71
|
- string - default: `none`
|
|
69
72
|
- Choices: `none`, `'/yyyy/mm/'`, `'/yyyy/mm/dd/'`
|
|
70
73
|
- **`--fallBackHTMLCard`**
|
|
71
|
-
- bool - default: `
|
|
74
|
+
- bool - default: `true`
|
|
72
75
|
- Fall back to convert to HTMLCard, if standard Mobiledoc convert fails
|
|
73
76
|
- **`--cache`**
|
|
74
77
|
- Persist local cache after migration is complete (Only if `--zip` is `true`)
|
|
@@ -77,7 +80,7 @@ It's possible to pass more options, in order to achieve a better migration file
|
|
|
77
80
|
A more complex migration command could look like this:
|
|
78
81
|
|
|
79
82
|
```sh
|
|
80
|
-
migrate jekyll
|
|
83
|
+
migrate jekyll --pathToZip /path/to/site.zip --email example.com
|
|
81
84
|
```
|
|
82
85
|
|
|
83
86
|
This will process all posts from the zip file, and all authors will have an email address ending in 'example.com'
|
|
@@ -97,7 +100,7 @@ Follow the instructions for the top-level repo.
|
|
|
97
100
|
To run a local development copy, `cd` into this directory, and use `yarn dev` instead of `migrate` like so:
|
|
98
101
|
|
|
99
102
|
```sh
|
|
100
|
-
yarn dev jekyll
|
|
103
|
+
yarn dev jekyll --pathToZip /path/to/site.zip
|
|
101
104
|
```
|
|
102
105
|
|
|
103
106
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-jekyll-export",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "tbc",
|
|
5
5
|
"repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-jekyll-export",
|
|
6
6
|
"author": "Ghost Foundation",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"eslint": "8.
|
|
25
|
-
"jest": "29.3
|
|
26
|
-
"jest-extended": "3.2.
|
|
24
|
+
"eslint": "8.34.0",
|
|
25
|
+
"jest": "29.4.3",
|
|
26
|
+
"jest-extended": "3.2.3"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@tryghost/errors": "^1.2.14",
|
|
30
|
-
"@tryghost/mg-fs-utils": "^0.
|
|
30
|
+
"@tryghost/mg-fs-utils": "^0.12.0",
|
|
31
31
|
"@tryghost/string": "^0.2.0",
|
|
32
32
|
"cheerio": "0.22.0",
|
|
33
33
|
"front-matter": "4.0.2",
|
|
34
34
|
"markdown-it": "13.0.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c4270f6229caa350155a03a0646b3c0c21eaff5e"
|
|
37
37
|
}
|