Aaron Lauterer 777690a121 docs/scanrefs: fix handling if ref is same as headline
If the ref is named the same as the headline (once normalized), sphinx
will return a 'idX' value in node['ids'][1] which we use for the label
ID. The headline is always present at index 0.

Checking for that and using index 0 in case we do get a 'idX' helps us
to avoid using the 'idX' as keys in our OnlineHelpInfo.js and actually
use the intended key.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2021-02-06 07:49:21 +01:00
..
2021-02-03 10:36:18 +01:00
2020-12-19 17:39:48 +01:00
2021-02-05 12:42:20 +01:00
2021-01-27 18:13:58 +01:00
2020-07-21 13:01:21 +02:00
2021-02-06 07:47:56 +01:00
2020-10-07 14:09:41 +02:00
2021-02-03 12:04:27 +01:00
2020-10-07 14:09:41 +02:00
2019-11-11 19:45:44 +01:00
2021-02-06 07:47:56 +01:00
2021-02-04 16:06:38 +01:00
2020-10-07 14:09:41 +02:00
2021-02-05 12:42:20 +01:00
2019-11-15 13:24:45 +01:00
2020-07-08 18:14:17 +02:00
2021-02-03 10:36:18 +01:00