From 4d95702bb5164766e818e426d229b88af4effd21 Mon Sep 17 00:00:00 2001 From: avinal <185067@nith.ac.in> Date: Mon, 28 Sep 2020 17:56:11 +0530 Subject: [PATCH] it should work --- Makefile | 6 ++++++ pages-publish.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 795f17f..8e46c05 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/pages-publish.sh b/pages-publish.sh index 31dbead..70a9030 100644 --- a/pages-publish.sh +++ b/pages-publish.sh @@ -12,7 +12,7 @@ echo "git config added" sudo pip3 install -r requirements.txt # pelican commands -sudo pelican-themes --install /themes/alchemy --verbose +sudo make theme # publish to github pages sudo make github \ No newline at end of file