environment-variables
These are the environment variables used to build this docs:
>>> import os
>>> import pprint
>>> pprint.pprint(dict(os.environ))
{'BUILD_CODEWORDS': '6-ajkdsbnvkecm-fuudjnlwaqkdgh',
'DEBIAN_FRONTEND': 'noninteractive',
'DOCUTILSCONFIG': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/checkouts/environment-variables/docs/docutils.conf',
'EMBEDED_VARIABLE': "'$READTHEDOCS_VERSION'",
'GITHUB_TOKEN': 'this-is-secret',
'HOME': '/home/docs',
'HOSTNAME': 'build-19932490-project-256207-test-builds',
'LANG': 'C.UTF-8',
'NEWVALUE': "'This is my value'",
'NO_COLOR': '1',
'PATH': '/home/docs/.asdf/plugins/python/shims:/home/docs/.asdf/installs/python/3.11.0/bin:$READTHEDOCS_VIRTUALENV_PATH/bin:/home/docs/.asdf/shims:/home/docs/.asdf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PUBLIC': '\'I\'"\'"\'m a public variable\'',
'PUBLIC_VARIABLE': "'public value'",
'PWD': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/checkouts/environment-variables/docs',
'READTHEDOCS': 'True',
'READTHEDOCS_CANONICAL_URL': 'https://test-builds.readthedocs.io/en/environment-variables/',
'READTHEDOCS_GIT_CLONE_URL': 'https://github.com/readthedocs/test-builds.git',
'READTHEDOCS_GIT_COMMIT_HASH': '1f94e04b7f596c309b7efab4e7630ed78e85a1f1',
'READTHEDOCS_GIT_IDENTIFIER': 'environment-variables',
'READTHEDOCS_LANGUAGE': 'en',
'READTHEDOCS_OUTPUT': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/checkouts/environment-variables/_readthedocs/',
'READTHEDOCS_PROJECT': 'test-builds',
'READTHEDOCS_VERSION': 'environment-variables',
'READTHEDOCS_VERSION_NAME': 'environment-variables',
'READTHEDOCS_VERSION_TYPE': 'branch',
'READTHEDOCS_VIRTUALENV_PATH': '/home/docs/checkouts/readthedocs.org/user_builds/test-builds/envs/environment-variables',
'SECRET_VALUE_ESCAPED': '{1}\\|\\1+-(8)$',
'SHLVL': '0',
'SHOW_ON_DOCS': "'This was added from Admin > Environment Variables'",
'STATICRYPT_PASSWORD': 'humitos',
'USER_DEFINED_VARIABLE': 'Variable added from "django-admin shell"'}
There is a variable called SECRET_VALUE_ESCAPED
with this content
{1}\|\1+-(8)$
that should be shown correctly.
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2023, 3, 28, 15, 44, 13, 499472)