diff options
author | Göktürk Yüksek <gokturk@gentoo.org> | 2019-12-25 19:36:21 -0500 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2019-12-25 19:36:21 -0500 |
commit | 10272a92abe137f187074613960ba0b84c5844a3 (patch) | |
tree | 3ddcf2e3770c4fe2b64b9c2f62ba76d15e3a5c9c /bin | |
parent | bin/build_search_documents.py: recurse down <ul/> and <li/> (diff) | |
download | devmanual-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-x | bin/build_search_documents.py | 4 |
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), |