From ce5223fe5999946bd7d517ef4b72ceaf7372b5c4 Mon Sep 17 00:00:00 2001 From: Diego Montes Date: Wed, 3 Nov 2021 16:15:40 -0400 Subject: [PATCH 1/2] change path in docs Makefile to use APP variable --- {{cookiecutter.project_slug}}/docs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/docs/Makefile b/{{cookiecutter.project_slug}}/docs/Makefile index 0b56e1f8..ddecc2ee 100644 --- a/{{cookiecutter.project_slug}}/docs/Makefile +++ b/{{cookiecutter.project_slug}}/docs/Makefile @@ -29,9 +29,9 @@ livehtml: # Outputs rst files from django application code apidocs: {%- if cookiecutter.use_docker == 'y' %} - sphinx-apidoc -o $(SOURCEDIR)/api /app + sphinx-apidoc -o $(SOURCEDIR)/api $(APP) {%- else %} - sphinx-apidoc -o $(SOURCEDIR)/api ../{{cookiecutter.project_slug}} + sphinx-apidoc -o $(SOURCEDIR)/api $(APP) {%- endif %} # Catch-all target: route all unknown targets to Sphinx using the new From 51c149f137d974982596fdbb1a6724d8029ff8db Mon Sep 17 00:00:00 2001 From: Diego Montes <54745152+d57montes@users.noreply.github.com> Date: Thu, 4 Nov 2021 08:39:00 -0400 Subject: [PATCH 2/2] remove if else block in docs makefile --- {{cookiecutter.project_slug}}/docs/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/{{cookiecutter.project_slug}}/docs/Makefile b/{{cookiecutter.project_slug}}/docs/Makefile index ddecc2ee..0e6d62e4 100644 --- a/{{cookiecutter.project_slug}}/docs/Makefile +++ b/{{cookiecutter.project_slug}}/docs/Makefile @@ -28,11 +28,7 @@ livehtml: # Outputs rst files from django application code apidocs: - {%- if cookiecutter.use_docker == 'y' %} sphinx-apidoc -o $(SOURCEDIR)/api $(APP) - {%- else %} - sphinx-apidoc -o $(SOURCEDIR)/api $(APP) - {%- endif %} # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).