Fix entrypoint/.envs variables, theme rtd for docs

This commit is contained in:
Alejandro Franco 2022-06-22 14:41:15 -05:00
parent c722c8ea75
commit 9e913b2542
2 changed files with 7 additions and 3 deletions

View File

@ -7,14 +7,16 @@ set -o nounset
{% if cookiecutter.use_celery == 'y' %}
# N.B. If only .env files supported variable expansion...
export CELERY_BROKER_URL="${REDIS_URL}"
# export CELERY_BROKER_URL="${REDIS_URL}"
# Updated in .envs
{% endif %}
if [ -z "${POSTGRES_USER}" ]; then
base_postgres_image_default_user='postgres'
export POSTGRES_USER="${base_postgres_image_default_user}"
fi
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
#export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
# Updated in .envs
postgres_ready() {
python << END

View File

@ -46,6 +46,8 @@ author = "{{ cookiecutter.author_name }}"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx_rtd_theme",
'sphinx.ext.todo',
]
# Add any paths that contain templates here, relative to this directory.
@ -61,7 +63,7 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme = "sphinx_rtd_theme"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,