Compare commits

...

2 Commits

Author SHA1 Message Date
a5914b8f65 adding cci metadata to doc-exports 2023-02-21 08:49:36 +00:00
2cf321eb3d fixing the convertor script
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-17 15:55:45 +00:00
2 changed files with 20 additions and 5 deletions

View File

@ -474,6 +474,23 @@ categories:
- name: docs-container-rw
permission: write
repository: docs/cloud-container-engine
- service_title: Cloud Container Instance
service_type: cci
docs:
- html_location: docs/cci/api-ref
rst_location: api-ref/source
title: API Reference
type: api-ref
pdf_name: cci-api-ref
- html_location: docs/cci/umn
rst_location: umn/source
title: User Guide
type: umn
pdf_name: cci-umn
teams:
- name: docs-container-rw
permission: write
repository: docs/cloud-container-instance
- service_title: Software Repository for Containers
service_type: swr
docs:
@ -933,13 +950,11 @@ categories:
title: API Reference
type: api-ref
pdf_name: ddm-api-ref
hc_location: api/ddm
- html_location: docs/ddm/umn
rst_location: umn/source
title: User Guide
type: umn
pdf_name: ddm-umn
hc_location: usermanual/ddm
teams:
- name: docs-database-rw
permission: write

View File

@ -346,7 +346,7 @@ class OTCDocConvertor:
# Another hack: sometimes bold elements ends with space. This is not
# valid from rst pov and we need to fix that by dropping this space and
# inject a space after strong block
for el in soup.body.find_all("strong"):
for el in soup.body.find_all(["strong", "b"]):
if (
el.string
and el.string[-1] == " "
@ -355,8 +355,8 @@ class OTCDocConvertor:
el.string.replace_with(curr[:-1])
el.insert_after(" ")
elif (
el.string
and el.span and el.span.string == " "
el.span
and el.span.string and el.span.string == " "
):
el.span.decompose()