commit: 10272a92abe137f187074613960ba0b84c5844a3
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 26 00:36:21 2019 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Thu Dec 26 00:36:21 2019 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=10272a92
bin/build_search_documents.py: create documents from tables
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>
bin/build_search_documents.py | 4 ++--
1 file 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),