diff --git a/README.md b/README.md index 0ead275..fdbae64 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Hero](/hero.png) +![Hero](_header_/hero.png) # Repository containing various Terraform code @@ -1239,7 +1239,7 @@ Hosting static website using S3 is a very cost effective approach. Since, S3 web ## Architecture -![Architecture](images/s3-static-website.png) +![Architecture](aws/static_website_ssl_cloudfront_private_s3/images/s3-static-website.png) diff --git a/repotools/generate_readme.js b/repotools/generate_readme.js index 547d41d..840a62b 100644 --- a/repotools/generate_readme.js +++ b/repotools/generate_readme.js @@ -68,22 +68,21 @@ class AddSection extends Transform { } } -// BUGGY // Convert -// ![test1](./myImage1.png) +// ![test1](/.png) in // to -// ![image](/download/attachments/37064693/myImage1.png) +// ![image](//.png) class RebaseImages extends Transform { constructor(options) { super(options); + this.directory = options.directory; } _transform(data, encoding, callback) { - const pattern = /!\[.+\]\(\.(\/.+\.png)\)/g; - const replace = "![image](/download/attachments/37064693$1)"; + const pattern = /!\[(?