mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
docs: improve links to cloud providers
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user