1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

it should work

This commit is contained in:
avinal
2020-09-28 17:56:11 +05:30
parent f6f463aa0f
commit 4d95702bb5
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1,10 +1,12 @@
PY?=python3
PELICAN?=pelican
PELICANTHEME?=pelican-themes
PELICANOPTS=
BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/output
THEMEDIR=$(BASEDIR)/themes/alchemy
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py
@@ -37,6 +39,7 @@ help:
@echo ' make clean remove the generated files '
@echo ' make regenerate regenerate files upon modification '
@echo ' make publish generate using production settings '
@echo ' make theme add theme '
@echo ' make serve [PORT=8000] serve site at http://localhost:8000'
@echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 '
@echo ' make devserver [PORT=8000] serve and regenerate together '
@@ -72,6 +75,9 @@ devserver-global:
publish:
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)
theme:
"$(PELICANTHEME)" --install "$(THEMEDIR)" --verbose
github: publish
ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)"
git push origin $(GITHUB_PAGES_BRANCH)