Fix figure img attributes

Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
gtema 2022-09-06 10:32:54 +00:00 committed by zuul
parent 4dc3172804
commit 5fbc732517
2 changed files with 18 additions and 18 deletions

View File

@ -425,20 +425,20 @@ categories:
type: umn
pdf_name: eip-umn
repository: docs/elastic-ip
- service_title: Elastic Load Balancing
service_type: elb
docs:
- html_location: docs/elb/api-ref
rst_location: api-ref/source
title: API Reference
type: api-ref
pdf_name: elb-api-ref
- html_location: docs/elb/umn
rst_location: umn/source
title: User Guide
type: umn
pdf_name: elb-umn
repository: docs/elastic-load-balancing
# - service_title: Elastic Load Balancing
# service_type: elb
# docs:
# - html_location: docs/elb/api-ref
# rst_location: api-ref/source
# title: API Reference
# type: api-ref
# pdf_name: elb-api-ref
# - html_location: docs/elb/umn
# rst_location: umn/source
# title: User Guide
# type: umn
# pdf_name: elb-umn
# repository: docs/elastic-load-balancing
- service_title: NAT Gateway
service_type: natgw
docs:

View File

@ -142,10 +142,10 @@ class OTCDocConvertor:
# Store all referred images for copying
self.doc_images.add(img['src'])
img['src'] = '/_static/images/' + img['src']
if "width" in img:
del img["width"]
if "height" in img:
del img["height"]
del img["width"]
del img["height"]
del img["class"]
del img["title"]
figure.append(img)
i.replace_with(figure)
elif "section" in i.get('class', []):