Skip to content

Commit b7506b9

Browse files
add local instructions
1 parent 25fb174 commit b7506b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
Exploring the migration of the OBF WP site to a static site generator
44

55

6+
## Running locally
7+
8+
1. [Install hugo](https://gohugo.io/installation/)
9+
2. Run `hugo server` from the root folder of the project to get a local server that automatically rebuilds
10+
611
## Steps taken
712

813
1. Create XML export of existing WP site with all pages & posts
914
2. Run the conversion script [wp2hugo](https://github.com/ashishb/wp2hugo) in the following way `/wp2hugo -source obf.WordPress.2025-01-30.xml -output obf-test-hugo -download-media -continue-on-media-download-error`
1015
3. update the `hugo.yaml` to use the correct base page (as currently not deployed on open-bio.org)
11-
4. remove any leading `/` in media `/wp` paths, as test site isn't deployed to open-bio.org yet: `find . -type f -name '*.md' -exec sed -i "s/image: \/wp/image: \/obf-hugo-test\/wp/g" {} +` & `find . -type f -name '*.md' -exec sed -i "s/](\//](\/obf-hugo-test\//g" {} +`

0 commit comments

Comments
 (0)