mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 11:04:04 +03:00
Change docs port to 9000 from 7000 (#3590)
Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
This commit is contained in:
parent
1d46454ee0
commit
85ee3c921a
|
@ -13,7 +13,7 @@ If you set up your project to `develop locally with docker`_, run the following
|
||||||
|
|
||||||
$ docker-compose -f local.yml up docs
|
$ docker-compose -f local.yml up docs
|
||||||
|
|
||||||
Navigate to port 7000 on your host to see the documentation. This will be opened automatically at `localhost`_ for local, non-docker development.
|
Navigate to port 9000 on your host to see the documentation. This will be opened automatically at `localhost`_ for local, non-docker development.
|
||||||
|
|
||||||
Note: using Docker for documentation sets up a temporary SQLite file by setting the environment variable ``DATABASE_URL=sqlite:///readthedocs.db`` in ``docs/conf.py`` to avoid a dependency on PostgreSQL.
|
Note: using Docker for documentation sets up a temporary SQLite file by setting the environment variable ``DATABASE_URL=sqlite:///readthedocs.db`` in ``docs/conf.py`` to avoid a dependency on PostgreSQL.
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ To setup your documentation on `ReadTheDocs`_, you must
|
||||||
|
|
||||||
Additionally, you can auto-build Pull Request previews, but `you must enable it`_.
|
Additionally, you can auto-build Pull Request previews, but `you must enable it`_.
|
||||||
|
|
||||||
.. _localhost: http://localhost:7000/
|
.. _localhost: http://localhost:9000/
|
||||||
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
|
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
|
||||||
.. _develop locally: ./developing-locally.html
|
.. _develop locally: ./developing-locally.html
|
||||||
.. _develop locally with docker: ./developing-locally-docker.html
|
.. _develop locally with docker: ./developing-locally-docker.html
|
||||||
|
|
|
@ -24,7 +24,7 @@ livehtml:
|
||||||
sphinx-autobuild -b html
|
sphinx-autobuild -b html
|
||||||
{%- if cookiecutter.use_docker == 'y' %} --host 0.0.0.0
|
{%- if cookiecutter.use_docker == 'y' %} --host 0.0.0.0
|
||||||
{%- else %} --open-browser
|
{%- else %} --open-browser
|
||||||
{%- endif %} --port 7000 --watch $(APP) -c . $(SOURCEDIR) $(BUILDDIR)/html
|
{%- endif %} --port 9000 --watch $(APP) -c . $(SOURCEDIR) $(BUILDDIR)/html
|
||||||
|
|
||||||
# Outputs rst files from django application code
|
# Outputs rst files from django application code
|
||||||
apidocs:
|
apidocs:
|
||||||
|
|
|
@ -32,7 +32,7 @@ if errorlevel 9009 (
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:livehtml
|
:livehtml
|
||||||
sphinx-autobuild -b html --open-browser -p 7000 --watch %APP% -c . %SOURCEDIR% %BUILDDIR%/html
|
sphinx-autobuild -b html --open-browser -p 9000 --watch %APP% -c . %SOURCEDIR% %BUILDDIR%/html
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
|
||||||
:apidocs
|
:apidocs
|
||||||
|
|
|
@ -55,7 +55,7 @@ services:
|
||||||
- ./config:/app/config:z
|
- ./config:/app/config:z
|
||||||
- ./{{ cookiecutter.project_slug }}:/app/{{ cookiecutter.project_slug }}:z
|
- ./{{ cookiecutter.project_slug }}:/app/{{ cookiecutter.project_slug }}:z
|
||||||
ports:
|
ports:
|
||||||
- "7000:7000"
|
- "9000:9000"
|
||||||
command: /start-docs
|
command: /start-docs
|
||||||
{%- if cookiecutter.use_mailhog == 'y' %}
|
{%- if cookiecutter.use_mailhog == 'y' %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user