aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--README7
2 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1dc239b..50a4a23 100644
--- a/Makefile
+++ b/Makefile
@@ -19,14 +19,14 @@ BLOG_URL ?= https://blog.replicant.us/page
GUILE_PATCH = v1-0001-SRFI-19-Add-support-for-ISO-8601-zones-with-a-col.patch
GUIX_COMMIT ?= b25b94335a3ee8d68d2145da8e5ea0325ecea451
GUIX_SHELL ?= guix time-machine --commit=$(GUIX_COMMIT) -- shell -C
-GUIX_CONVERT_PACKAGES ?= python python-beautifulsoup4 python-html2text python-sh
+GUIX_PYTHON_PACKAGES ?= python python-beautifulsoup4 python-html2text python-sh
-CONVERT ?= $(GUIX_SHELL) $(GUIX_CONVERT_PACKAGES) -- python3 convert.py
+CONVERT ?= $(GUIX_SHELL) $(GUIX_PYTHON_PACKAGES) -- python3 convert.py
HAUNT ?= $(GUIX_SHELL) --with-patch=guile=patches/$(GUILE_PATCH) haunt -- haunt
SENTINEL =
-.PHONY: all build help serve
+.PHONY: all build generate-wordpress-articles help serve
PAGES = \
wordpress/pages/replicant_blog_page_8.html \
@@ -51,6 +51,12 @@ wordpress/pages:
wordpress/pages/replicant_blog_page_%.html: wordpress/pages
$(CURL) $(BLOG_URL)/$(subst replicant_blog_page_,,$*)/ -o $@
+generate-wordpress-articles: build
+ $(GUIX_SHELL) $(GUIX_PYTHON_PACKAGES) \
+ -- \
+ python3 haunthtml2wordpress.py \
+ ./site/replicant-status-and-report-of-the-37c3-and-fosdem-2024-conferences.html
+
links.txt: $(PAGES)
@echo -n '' > $@
@for f in $(PAGES) ; do \
diff --git a/README b/README
index d30bc8c..09cd252 100644
--- a/README
+++ b/README
@@ -32,10 +32,9 @@ Reimporting articles in WordPress
=================================
If for some reasons you then need to import back some of the markdown
-articles in WordPress, you can generate the HTML pages with 'make
-build' like explained above, and then use haunthtml2wordpress.py on
-the generated page. It will print out the article title and the HTML
-code that you will need to copy-paste into WordPress.
+articles in WordPress, you use the 'make generate-wordpress-articles'
+command, it will print out the article title and the HTML code that
+you will need to copy-paste into WordPress.
By default, when creating an article in WordPress, you are presented
with a visual editor that is intended for people to create articles