add some prefix for doc urls to make BOT recognize the preview doc url
@@ -80,10 +80,13 @@ def main():
deploy(version, tarball_path, docs_path, docs_server)
print("Docs URLs:")
+ doc_deploy_type = os.getenv('TYPE')
for vurl in version_urls:
+ language, _, target = vurl.split('/')
+ tag = '{}_{}'.format(language, target)
url = "{}/{}/index.html".format(url_base, vurl) # (index.html needed for the preview server)
url = re.sub(r"([^:])//", r"\1/", url) # get rid of any // that isn't in the https:// part
- print(url)
+ print('[document {}][{}] {}'.format(doc_deploy_type, tag, url))
# note: it would be neater to use symlinks for stable, but because of the directory order
# (language first) it's kind of a pain to do on a remote server, so we just repeat the
@@ -95,7 +98,6 @@ def main():
def deploy(version, tarball_path, docs_path, docs_server):
-
def run_ssh(commands):
""" Log into docs_server and run a sequence of commands using ssh """
print("Running ssh: {}".format(commands))
