Compare commits

..

4 Commits

Author SHA1 Message Date
ktyl 9c030e83e9 chore(garden): generate rss
continuous-integration/drone/push Build is passing Details
2023-10-04 01:04:45 +01:00
ktyl 4a3c3c63b6 docs(garden): update RSS 2023-10-04 01:04:41 +01:00
ktyl 23134ef83c build: add make targets 2023-10-04 00:54:39 +01:00
ktyl 0cacdd0b10 wip: generate garden rss 2023-10-04 00:54:39 +01:00
3 changed files with 3 additions and 24 deletions

View File

@ -15,9 +15,6 @@ BLOG_BUILD_DIR = $(BLOG_BASE_DIR)out/html/
BLOG_OUT_DIR = $(OUT_DIR)/blog
BLOG_INDEX = $(BLOG_BUILD_DIR)/index.html
GARDEN_BASE_DIR = $(SRC_DIR)/garden/
GARDEN_BUILD_DIR = $(GARDEN_BASE_DIR)html
PAGES = $(shell find $(ROOT_DIR) -wholename "$(ROOT_DIR)*.html")
STYLES = $(shell find $(ROOT_DIR) -wholename "$(ROOT_DIR)*.css")
IMAGES = $(shell find $(IMG_DIR) -wholename "$(IMG_DIR)/*.png")
@ -29,8 +26,7 @@ HTML_TARGETS = $(PAGES:$(ROOT_DIR)/%.html=$(OUT_DIR)/%.html)
CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css)
PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png
all: html blog garden | $(OUT_DIR)
cp -r src/garden/html $(OUT_DIR)/garden
all: html blog | $(OUT_DIR)
html: $(HTML_TARGETS) $(CSS_TARGETS) | $(OUT_DIR)
cp $(IMG_DIR)/*.png $(OUT_DIR)/
@ -66,12 +62,8 @@ blog: $(HTML_INCLUDES) $(CSS_TARGETS)
cp $(CSS_TARGETS) `dirname $$page` ; \
done
garden:
make --directory $(GARDEN_BASE_DIR) html
clean:
make --directory $(GARDEN_BASE_DIR) clean
make --directory $(BLOG_BASE_DIR) clean
rm -rf $(OUT_DIR)
.PHONY: blog garden
.PHONY: blog

View File

@ -1,18 +1,6 @@
html: feed.py Makefile
mkdir html
cp feed.py Makefile html
cp *.md html
clean-html:
[[ -d html ]] && rm -r html
.PHONY: clean-html
feed:
python feed.py `pwd`
rss: feed
clean: clean-html
.PHONY: feed clean
.PHONY: feed

View File

@ -2,5 +2,4 @@
<li><a href="/about.html">about</a></li>
<li><a href="/blog.html">blog</a></li>
<li><a href="/gallery.html">gallery</a></li>
<li><a href="/garden/index.html">garden</a></li>
</ul>