forked from docs/doc-exports
fix css conversions in css
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
dc74b9cf93
commit
a8257d7952
@ -167,6 +167,10 @@ class OTCDocConvertor:
|
||||
if img['src'] and not img['src'].startswith('/_static/images'):
|
||||
self.doc_images.add(img['src'])
|
||||
img['src'] = '/_static/images/' + img['src']
|
||||
del img["width"]
|
||||
del img["height"]
|
||||
del img["class"]
|
||||
del img["title"]
|
||||
|
||||
# Drop strong in table headers "/"
|
||||
for th in soup.body.find_all('th'):
|
||||
@ -240,7 +244,9 @@ class OTCDocConvertor:
|
||||
# "\*\*\*\*\*\*",
|
||||
# r"([\\\/\:\*\?\"\~|<>]{4,})"
|
||||
# ModelArts UMN contain this "unallowed" sequence
|
||||
r"(\\/:\*\?\"<>\|)"
|
||||
r"(\\/:\*\?\"<>\|)",
|
||||
# CSS UMN contain "SELECT exclude('*name') FROM my-index"
|
||||
r"(\*name)"
|
||||
]
|
||||
for to_rawize in rawize_strings:
|
||||
for p in soup.body.find_all(string=re.compile(to_rawize)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user