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:
@@ -1,10 +1,12 @@
|
|||||||
PY?=python3
|
PY?=python3
|
||||||
PELICAN?=pelican
|
PELICAN?=pelican
|
||||||
|
PELICANTHEME?=pelican-themes
|
||||||
PELICANOPTS=
|
PELICANOPTS=
|
||||||
|
|
||||||
BASEDIR=$(CURDIR)
|
BASEDIR=$(CURDIR)
|
||||||
INPUTDIR=$(BASEDIR)/content
|
INPUTDIR=$(BASEDIR)/content
|
||||||
OUTPUTDIR=$(BASEDIR)/output
|
OUTPUTDIR=$(BASEDIR)/output
|
||||||
|
THEMEDIR=$(BASEDIR)/themes/alchemy
|
||||||
CONFFILE=$(BASEDIR)/pelicanconf.py
|
CONFFILE=$(BASEDIR)/pelicanconf.py
|
||||||
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
||||||
|
|
||||||
@@ -37,6 +39,7 @@ help:
|
|||||||
@echo ' make clean remove the generated files '
|
@echo ' make clean remove the generated files '
|
||||||
@echo ' make regenerate regenerate files upon modification '
|
@echo ' make regenerate regenerate files upon modification '
|
||||||
@echo ' make publish generate using production settings '
|
@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 [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 serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 '
|
||||||
@echo ' make devserver [PORT=8000] serve and regenerate together '
|
@echo ' make devserver [PORT=8000] serve and regenerate together '
|
||||||
@@ -72,6 +75,9 @@ devserver-global:
|
|||||||
publish:
|
publish:
|
||||||
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)
|
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)
|
||||||
|
|
||||||
|
theme:
|
||||||
|
"$(PELICANTHEME)" --install "$(THEMEDIR)" --verbose
|
||||||
|
|
||||||
github: publish
|
github: publish
|
||||||
ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)"
|
ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)"
|
||||||
git push origin $(GITHUB_PAGES_BRANCH)
|
git push origin $(GITHUB_PAGES_BRANCH)
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ echo "git config added"
|
|||||||
sudo pip3 install -r requirements.txt
|
sudo pip3 install -r requirements.txt
|
||||||
|
|
||||||
# pelican commands
|
# pelican commands
|
||||||
sudo pelican-themes --install /themes/alchemy --verbose
|
sudo make theme
|
||||||
|
|
||||||
# publish to github pages
|
# publish to github pages
|
||||||
sudo make github
|
sudo make github
|
||||||
Reference in New Issue
Block a user