Skip to content

Commit ce4a19b

Browse files
committed
fix link to bot documentation page
readthedocs -> docs.intelmq.org and don't replace ._ with -, the anchors all are equal to the module name
1 parent 1b41716 commit ce4a19b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ CHANGELOG
1515

1616
### Configuration
1717
- Sort bots alphabetically in side menu (PR#298 by Psych0meter).
18+
- Fix link to the bot documentation page (PR#310 by Sebastian Wagner, fixes #307).
1819

1920
3.3.0 (2024-03-01)
2021
------------------

intelmq_manager/static/js/configs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function load_bots(config) {
9393
sortedGroupKeys.forEach(key => {
9494
sortedGroup[key] = group[key];
9595
});
96-
96+
9797
for (let bot_name in sortedGroup) {
9898
let bot = group[bot_name];
9999
let $bot = $bot_group.find("ul > li:first").clone().appendTo($("ul", $bot_group))
@@ -356,8 +356,7 @@ function fill_bot(id, group, name) {
356356
insertKeyValue(key, value, BORDER_TYPES.RUNTIME, true);
357357
}
358358

359-
const modulename = bot.module.replace(/\./g, "-").replace(/_/g, "-");
360-
documentation.href = `https://intelmq.readthedocs.org/en/maintenance/user/bots.html#${modulename}`;
359+
documentation.href = `https://docs.intelmq.org/latest/user/bots/#${bot.module}`;
361360
popup.setAttribute('class', "with-bot");
362361
}
363362

0 commit comments

Comments
 (0)