forked from docs/doc-exports
Compare commits
11 Commits
new_rds_co
...
colon_aste
| Author | SHA1 | Date | |
|---|---|---|---|
| aa60e5f7fd | |||
| ee63b08e02 | |||
| e34e25d21e | |||
| cb9ea08a73 | |||
| 66d55a5e4d | |||
| a138aa18eb | |||
| 410ad07a68 | |||
| fc5fc91867 | |||
| eaf0b36801 | |||
| 4986a3cb57 | |||
| b1b5c1f18e |
@ -20,23 +20,6 @@ categories:
|
||||
- name: docs-security-services-rw
|
||||
permission: write
|
||||
repository: docs/anti-ddos
|
||||
- service_title: Database Security Service
|
||||
service_type: dbss
|
||||
docs:
|
||||
- html_location: docs/dbss/api-ref
|
||||
rst_location: api-ref/source
|
||||
title: API Reference
|
||||
type: api-ref
|
||||
pdf_name: dbss-api-ref
|
||||
- html_location: docs/dbss/umn
|
||||
rst_location: umn/source
|
||||
title: User Guide
|
||||
type: umn
|
||||
pdf_name: dbss-umn
|
||||
teams:
|
||||
- name: docs-security-services-rw
|
||||
permission: write
|
||||
repository: docs/database-security-service
|
||||
- service_title: Identity and Access Management
|
||||
service_type: iam
|
||||
docs:
|
||||
@ -868,23 +851,6 @@ categories:
|
||||
- name: docs-network-rw
|
||||
permission: write
|
||||
repository: docs/elastic-load-balancing
|
||||
- service_title: Enterprise Router
|
||||
service_type: er
|
||||
docs:
|
||||
- html_location: docs/er/api-ref
|
||||
rst_location: api-ref/source
|
||||
title: API Reference
|
||||
type: api-ref
|
||||
pdf_name: er-api-ref
|
||||
- html_location: docs/er/umn
|
||||
rst_location: umn/source
|
||||
title: User Guide
|
||||
type: umn
|
||||
pdf_name: er-umn
|
||||
teams:
|
||||
- name: docs-network-rw
|
||||
permission: write
|
||||
repository: docs/enterprise-router
|
||||
- service_title: NAT Gateway
|
||||
service_type: natgw
|
||||
docs:
|
||||
|
||||
@ -403,8 +403,7 @@ class OTCDocConvertor:
|
||||
# MRS UMN contain: /:*?"<>|\\;&,'`!{}[]$%+
|
||||
r"\s([^a-zA-Z0-9\s]{8,})",
|
||||
# MRS operation guide contain: /*+ MAPJOIN(join_table) \*/
|
||||
# RDS UMN contain: /*FORCE_MASTER*/
|
||||
r"(/\*.{5,}\*/)",
|
||||
r"\s(/\*.*\*/)",
|
||||
# BMS API contain sequence in a dedicated paragraph
|
||||
r"^([^a-zA-Z0-9\s]{10,})$",
|
||||
# OBS special chars - "\$" "\\" etc
|
||||
|
||||
@ -191,31 +191,3 @@ class TestConvertor(TestCase):
|
||||
str(res.find('p')),
|
||||
expected.strip(),
|
||||
)
|
||||
|
||||
def test_streamline_html_escape_14(self):
|
||||
test_data= """
|
||||
<li id="mrs_01_0979__en-us_topic_0000001173470738_en-us_topic_0116526932_li53294272">Use /*+ MAPJOIN(join_table) */.</li>
|
||||
""" # noqa
|
||||
expected = """
|
||||
<li>Use <code>/*+ MAPJOIN(join_table) */</code>.</li>
|
||||
""" # noqa
|
||||
soup = bs4.BeautifulSoup(test_data, 'lxml')
|
||||
res = self.convertor.streamline_html(soup, "dummy")
|
||||
self.assertEqual(
|
||||
str(res.find('li')),
|
||||
expected.strip(),
|
||||
)
|
||||
|
||||
def test_streamline_html_escape_15(self):
|
||||
test_data= """
|
||||
<p id="rds_11_0020__en-us_topic_0200110324_p133410225015">/*FORCE_MASTER*/: A SQL statement is routed to the primary DB instance.</p>
|
||||
""" # noqa
|
||||
expected = """
|
||||
<p id="rds_11_0020__en-us_topic_0200110324_p133410225015"><code>/*FORCE_MASTER*/</code>: A SQL statement is routed to the primary DB instance.</p>
|
||||
""" # noqa
|
||||
soup = bs4.BeautifulSoup(test_data, 'lxml')
|
||||
res = self.convertor.streamline_html(soup, "dummy")
|
||||
self.assertEqual(
|
||||
str(res.find('p')),
|
||||
expected.strip(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user