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