forked from docs/doc-exports
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:
parent
4dc3172804
commit
5fbc732517
@ -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:
|
||||
|
@ -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', []):
|
||||
|
Loading…
x
Reference in New Issue
Block a user