From a8341df13ed60a0fd9db25a4ed511cbc54b44d91 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Thu, 14 Aug 2025 13:42:24 +0200 Subject: [PATCH] Fix template names --- sphinx.mk | 17 +++++++---------- templates/{conf.py => conf.py.tpl} | 0 templates/{index.rst => index.rst.tpl} | 0 3 files changed, 7 insertions(+), 10 deletions(-) rename templates/{conf.py => conf.py.tpl} (100%) rename templates/{index.rst => index.rst.tpl} (100%) diff --git a/sphinx.mk b/sphinx.mk index b8be30f..2696e22 100644 --- a/sphinx.mk +++ b/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 "" "$(SPHINXPRJ)" pydocs/replace.sh conf.py "" "$$(date +%Y)" pydocs/replace.sh conf.py "" "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 "" "$(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" diff --git a/templates/conf.py b/templates/conf.py.tpl similarity index 100% rename from templates/conf.py rename to templates/conf.py.tpl diff --git a/templates/index.rst b/templates/index.rst.tpl similarity index 100% rename from templates/index.rst rename to templates/index.rst.tpl