blob: 344c4b86781c3509807b5323858ba916609f5304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
Introduction
============
This is a set of scripts that can be used to do a semi-automatic
migration from WordPress to haunt, a static website generator.
The code is a bit fragile and parses untrusted data so a human is
required to review if there are any suspicious data at several steps
in the migration process.
Usage
=====
First run 'make links.txt' manually to produce the links.txt file.
Then you need to manually inspect it to see if it contains dangerous
or problematic characters / text.
Then you need to run run 'make markdown' to download all the blog
posts in wordpress/articles and convert them to markdown (and store
them in markdown/).
At this point the dates inside the file need to be fixed because at
the time of writing haunt doesn't support the same date format than
WordPress yet.
Since the dates are again untrusted data, a human needs to review them
with the './fix-dates.sh preview markdown/*' command.
If no strange data was found they then need to be converted with
'./fix-dates.sh fix markdown/*'.
At this stage the website is then ready to used with haunt. You can
then build it with 'make build' or 'make serve'.
License
=======
This project is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.
This project is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
|