forked from github/pelican
add argparse argument for relative urls
This commit is contained in:
parent
3c514266dd
commit
a62f9ab23c
2 changed files with 12 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ ifeq ($(DEBUG), 1)
|
|||
PELICANOPTS += -D
|
||||
endif
|
||||
|
||||
RELATIVE ?= 0
|
||||
ifeq ($(RELATIVE), 1)
|
||||
PELICANOPTS += --relative-urls
|
||||
endif
|
||||
|
||||
help:
|
||||
@echo 'Makefile for a pelican Web site '
|
||||
@echo ' '
|
||||
|
|
@ -52,6 +57,7 @@ help:
|
|||
@echo ' make github upload the web site via gh-pages '
|
||||
@echo ' '
|
||||
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
|
||||
@echo 'Set the RELATIVE variable to 1 to enable relative urls '
|
||||
@echo ' '
|
||||
|
||||
html:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue