Fix template names
This commit is contained in:
parent
8b9b836c46
commit
a8341df13e
17
sphinx.mk
17
sphinx.mk
@ -9,31 +9,28 @@ SPHINXPRJ = $(shell basename `dirname \`pwd\``)
|
||||
SOURCEDIR = .
|
||||
BUILDDIR = _build
|
||||
|
||||
test:
|
||||
echo $(SPHINXPRJ)
|
||||
|
||||
localhelp:
|
||||
echo -e "Possible documentation options are:"
|
||||
echo -e "\033[1;33m - html - Create a local documentation files\e[0m"
|
||||
echo -e "\033[1;33m - view - Create a local documentation files and view them\e[0m"
|
||||
echo -e "\033[1;33m - release - Create a local documentation files and movem them to the module\e[0m $(SPHINXPRJ)/_docs_"
|
||||
|
||||
conf.py: pydocs/templates/conf.py
|
||||
cp pydocs/templates/conf.py .
|
||||
conf.py: pydocs/templates/conf.py.tpl
|
||||
cp pydocs/templates/conf.py.tpl conf.py
|
||||
pydocs/replace.sh conf.py "<module_name>" "$(SPHINXPRJ)"
|
||||
pydocs/replace.sh conf.py "<year>" "$$(date +%Y)"
|
||||
pydocs/replace.sh conf.py "<author>" "Dirk Alders"
|
||||
|
||||
index.rst: pydocs/templates/index.rst
|
||||
cp pydocs/templates/index.rst .
|
||||
index.rst: pydocs/templates/index.rst.tpl
|
||||
cp pydocs/templates/index.rst.tpl index.rst
|
||||
pydocs/replace.sh index.rst "<module_name>" "$(SPHINXPRJ)"
|
||||
|
||||
html: $(SPHINXPRJ) conf.py index.rst
|
||||
html: examples conf.py index.rst
|
||||
echo -e "\e[1m * Generated html files...\e[0m"
|
||||
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
||||
$(SPHINXPRJ):
|
||||
make --no-print-directory -C $@/_examples_ all
|
||||
examples:
|
||||
make -C $(SPHINXPRJ)/_examples_ all
|
||||
|
||||
localclean:
|
||||
echo -e "\033[1;33mCleanung up docs...\033[00m"
|
||||
|
Loading…
x
Reference in New Issue
Block a user