aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2019-12-25 19:36:21 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2019-12-25 19:36:21 -0500
commit10272a92abe137f187074613960ba0b84c5844a3 (patch)
tree3ddcf2e3770c4fe2b64b9c2f62ba76d15e3a5c9c /bin
parentbin/build_search_documents.py: recurse down <ul/> and <li/> (diff)
downloaddevmanual-10272a92abe137f187074613960ba0b84c5844a3.tar.gz
devmanual-10272a92abe137f187074613960ba0b84c5844a3.tar.bz2
devmanual-10272a92abe137f187074613960ba0b84c5844a3.zip
bin/build_search_documents.py: create documents from tables
Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build_search_documents.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build_search_documents.py b/bin/build_search_documents.py
index d6b75ff..1aac495 100755
--- a/bin/build_search_documents.py
+++ b/bin/build_search_documents.py
@@ -77,10 +77,10 @@ def process_node(documents: list, node: ET.Element, name: str, url: str) -> None
for child in node:
process_node(documents, child, name, url)
- elif node.tag in ['body', 'guide', 'li', 'ul']:
+ elif node.tag in ['body', 'guide', 'li', 'ul', 'table', 'tr']:
for child in node:
process_node(documents, child, name, url)
- elif node.tag in ['p', 'important', 'note', 'warning']:
+ elif node.tag in ['p', 'important', 'note', 'warning', 'th', 'ti']:
text = stringify_node(node)
documents.append({'id': len(documents),