[gi-docgen: 1/2] generate: Use const.*.html instead of constant.*.html for search index links
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen: 1/2] generate: Use const.*.html instead of constant.*.html for search index links
- Date: Mon, 21 Feb 2022 19:27:04 +0000 (UTC)
commit 6c4fa357828622b71958a3d07afc19577ee726d9
Author: vanadiae <vanadiae35 gmail com>
Date: Mon Feb 21 19:00:28 2022 +0100
generate: Use const.*.html instead of constant.*.html for search index links
HTML files for constants are generated like const.*.html, but the keywords index
links constants keywords with a constant.*.html file, although the documentation
outline itself uses the correct const.*.html file. This leads to constants being
properly accessible while browsing through the outline tree, but not accessible
when using the search result coming from the index, which leads to a No such file
or directory error.
So this commit fixes it by changing constant.*.html to the correct const.*.html
for the keywords index.
gidocgen/gdgenerate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/gdgenerate.py b/gidocgen/gdgenerate.py
index d90be33..3bab8dd 100644
--- a/gidocgen/gdgenerate.py
+++ b/gidocgen/gdgenerate.py
@@ -2793,7 +2793,7 @@ def gen_devhelp(config, repository, namespace, symbols, content_files):
keyword = etree.SubElement(functions, "keyword")
keyword.set("type", "constant")
keyword.set("name", t.identifier)
- keyword.set("link", f"constant.{t.name}.html")
+ keyword.set("link", f"const.{t.name}.html")
if t.available_since is not None:
keyword.set("since", t.available_since)
if t.deprecated_since is not None and t.deprecated_since["version"] is not None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]