docs: improve links to cloud providers

This commit is contained in:
Nick Craig-Wood
2017-09-25 17:55:19 +01:00
parent 3fc69f4140
commit 3e9861eecf
6 changed files with 36 additions and 22 deletions

View File

@ -90,6 +90,9 @@ def read_doc(doc):
contents = re.sub(r'<i class="fa.*?</i>\s*', "", contents)
# Make [...](/links/) absolute
contents = re.sub(r'\((\/.*?\/)\)', r"(https://rclone.org\1)", contents)
# Interpret provider shortcode
# {{< provider name="Amazon S3" home="https://aws.amazon.com/s3/" config="/s3/" >}}
contents = re.sub(r'\{\{<\s+provider.*?name="(.*?)".*?>\}\}', r"\1", contents)
return contents
def check_docs(docpath):