Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: bin/
Date: Thu, 26 Dec 2019 01:56:59
Message-Id: 1577320581.10272a92abe137f187074613960ba0b84c5844a3.gokturk@gentoo
1 commit: 10272a92abe137f187074613960ba0b84c5844a3
2 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 26 00:36:21 2019 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 26 00:36:21 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=10272a92
7
8 bin/build_search_documents.py: create documents from tables
9
10 Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>
11
12 bin/build_search_documents.py | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/bin/build_search_documents.py b/bin/build_search_documents.py
16 index d6b75ff..1aac495 100755
17 --- a/bin/build_search_documents.py
18 +++ b/bin/build_search_documents.py
19 @@ -77,10 +77,10 @@ def process_node(documents: list, node: ET.Element, name: str, url: str) -> None
20
21 for child in node:
22 process_node(documents, child, name, url)
23 - elif node.tag in ['body', 'guide', 'li', 'ul']:
24 + elif node.tag in ['body', 'guide', 'li', 'ul', 'table', 'tr']:
25 for child in node:
26 process_node(documents, child, name, url)
27 - elif node.tag in ['p', 'important', 'note', 'warning']:
28 + elif node.tag in ['p', 'important', 'note', 'warning', 'th', 'ti']:
29 text = stringify_node(node)
30
31 documents.append({'id': len(documents),