Compare commits
No commits in common. "8302f8e495c6c3ad2842bfa0b09bf433572423cd" and "5c8f53a39e1768a03a8a1188a846af20c0118c75" have entirely different histories.
8302f8e495
...
5c8f53a39e
|
@ -23,10 +23,9 @@ steps:
|
||||||
- drone
|
- drone
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
# install deps
|
# install stuff
|
||||||
- pacman -Sy --noconfirm > /dev/null
|
- pacman -Sy --noconfirm > /dev/null
|
||||||
- pacman -S --noconfirm python python-pip > /dev/null
|
- pacman -S --noconfirm python make git openssh rsync > /dev/null
|
||||||
- pacman -S --noconfirm make git openssh rsync > /dev/null
|
|
||||||
|
|
||||||
# configure ssh
|
# configure ssh
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
|
|
12
Pipfile
12
Pipfile
|
@ -1,12 +0,0 @@
|
||||||
[[source]]
|
|
||||||
url = "https://pypi.org/simple"
|
|
||||||
verify_ssl = true
|
|
||||||
name = "pypi"
|
|
||||||
|
|
||||||
[packages]
|
|
||||||
markdown = "*"
|
|
||||||
|
|
||||||
[dev-packages]
|
|
||||||
|
|
||||||
[requires]
|
|
||||||
python_version = "3.10"
|
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
"_meta": {
|
|
||||||
"hash": {
|
|
||||||
"sha256": "4f4f4fc0dc77addc9a4bf6c737f31df9507ee22a83548fcff1891a4e7bc27bed"
|
|
||||||
},
|
|
||||||
"pipfile-spec": 6,
|
|
||||||
"requires": {
|
|
||||||
"python_version": "3.10"
|
|
||||||
},
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"name": "pypi",
|
|
||||||
"url": "https://pypi.org/simple",
|
|
||||||
"verify_ssl": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"default": {
|
|
||||||
"markdown": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:08fb8465cffd03d10b9dd34a5c3fea908e20391a2a90b88d66362cb05beed186",
|
|
||||||
"sha256:3b809086bb6efad416156e00a0da66fe47618a5d6918dd688f53f40c8e4cfeff"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==3.4.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"develop": {}
|
|
||||||
}
|
|
5
makefile
5
makefile
|
@ -32,7 +32,6 @@ HTML_TARGETS = $(PAGES:$(ROOT_DIR)/%.html=$(OUT_DIR)/%.html)
|
||||||
CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css)
|
CSS_TARGETS = $(STYLES:$(ROOT_DIR)/%.css=$(OUT_DIR)/%.css)
|
||||||
PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png
|
PNG_TARGETS = $(IMG_DIR)/%.png=$(OUT_DIR)/%.png
|
||||||
|
|
||||||
|
|
||||||
all: $(HTML_TARGETS) $(CSS_TARGETS) blog | $(OUT_DIR)
|
all: $(HTML_TARGETS) $(CSS_TARGETS) blog | $(OUT_DIR)
|
||||||
cp $(IMG_DIR)/*.png $(OUT_DIR)/
|
cp $(IMG_DIR)/*.png $(OUT_DIR)/
|
||||||
cp $(IMG_DIR)/*.jpg $(OUT_DIR)/
|
cp $(IMG_DIR)/*.jpg $(OUT_DIR)/
|
||||||
|
@ -55,10 +54,10 @@ $(OUT_DIR):
|
||||||
blog: $(BLOG_TARGETS) $(BLOG_RSS) | $(BLOG_TMP_DIR)
|
blog: $(BLOG_TARGETS) $(BLOG_RSS) | $(BLOG_TMP_DIR)
|
||||||
|
|
||||||
$(BLOG_RSS): $(BLOG_PAGES)
|
$(BLOG_RSS): $(BLOG_PAGES)
|
||||||
pipenv run python scripts/mkblogrss.py $(BLOG_PAGES) > $@
|
python scripts/mkblogrss.py $(BLOG_PAGES) > $@
|
||||||
|
|
||||||
$(BLOG_INDEX_LINKS): $(BLOG_TARGETS) | $(BLOG_TMP_DIR)
|
$(BLOG_INDEX_LINKS): $(BLOG_TARGETS) | $(BLOG_TMP_DIR)
|
||||||
pipenv run python scripts/mkblogindex.py $(BLOG_TARGETS) > $@
|
python scripts/mkblogindex.py $(BLOG_TARGETS) > $@
|
||||||
|
|
||||||
$(BLOG_OUT_DIR)/%.html: $(BLOG_OUT_DIR)/%.html.tmp $(HTML_INCLUDES) $(CSS_TARGETS)
|
$(BLOG_OUT_DIR)/%.html: $(BLOG_OUT_DIR)/%.html.tmp $(HTML_INCLUDES) $(CSS_TARGETS)
|
||||||
python ppp/ppp.py $< $(HTML_INCLUDES) > $@
|
python ppp/ppp.py $< $(HTML_INCLUDES) > $@
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
site="ktyl.dev"
|
||||||
|
srcdir="./$site"
|
||||||
|
webroot="/var/www"
|
||||||
|
sitedir="$webroot/$site"
|
||||||
|
|
||||||
|
|
||||||
|
[ -d $sitedir ] && rm -r $sitedir
|
||||||
|
sudo -n mv $srcdir $webroot
|
Loading…
Reference in New Issue