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 type: umn
pdf_name: eip-umn pdf_name: eip-umn
repository: docs/elastic-ip repository: docs/elastic-ip
- service_title: Elastic Load Balancing # - service_title: Elastic Load Balancing
service_type: elb # service_type: elb
docs: # docs:
- html_location: docs/elb/api-ref # - html_location: docs/elb/api-ref
rst_location: api-ref/source # rst_location: api-ref/source
title: API Reference # title: API Reference
type: api-ref # type: api-ref
pdf_name: elb-api-ref # pdf_name: elb-api-ref
- html_location: docs/elb/umn # - html_location: docs/elb/umn
rst_location: umn/source # rst_location: umn/source
title: User Guide # title: User Guide
type: umn # type: umn
pdf_name: elb-umn # pdf_name: elb-umn
repository: docs/elastic-load-balancing # repository: docs/elastic-load-balancing
- service_title: NAT Gateway - service_title: NAT Gateway
service_type: natgw service_type: natgw
docs: docs:

View File

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