Merge pull request #3379 from d57montes/small-fix-docs-makefile

This commit is contained in:
Bruno Alla 2021-11-04 14:44:21 +00:00 committed by GitHub
commit 489bdafee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,11 +28,7 @@ livehtml:
# Outputs rst files from django application code # Outputs rst files from django application code
apidocs: 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}}
{%- endif %}
# Catch-all target: route all unknown targets to Sphinx using the new # Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).