mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
6 lines
226 B
Ruby
6 lines
226 B
Ruby
def get_docs_url
|
|
# DEPLOY_URL is from Netlify for preview
|
|
# https://docs.netlify.com/configure-builds/environment-variables/#deploy-urls-and-metadata
|
|
ENV['DEPLOY_URL'] || ENV['DOCS_URL'] || 'https://docs.docker.com'
|
|
end
|