16
16
*/
17
17
package org .graylog2 .plugin ;
18
18
19
- import org .graylog2 .shared .ServerVersion ;
20
-
21
19
public enum DocsHelper {
22
20
PAGE_SENDING_JSONPATH ("getting_in_log_data/json_path_from_http_api_input.html" ),
23
21
PAGE_SENDING_IPFIXPATH ("getting_in_log_data/ipfix_input.html" ),
24
- PAGE_ES_CONFIGURATION ("https://go2docs.graylog.org/current/ setting_up_graylog/server.conf.html#OpenSearch " ),
25
- PAGE_ES_VERSIONS ("downloading_and_installing_graylog/installing_graylog.html#CompatibilityMatrix " ),
22
+ PAGE_ES_CONFIGURATION ("setting_up_graylog/server_configuration_settings_reference.htm#SearchBackendConfigurationProperties " ),
23
+ PAGE_ES_VERSIONS ("downloading_and_installing_graylog/compatibility_matrix.htm " ),
26
24
REPORTING_HELP ("interacting_with_your_log_data/reporting.html" );
27
25
28
- private static final String SERVER = "https://go2docs.graylog.org" ;
26
+ private static final String SERVER = "https://go2docs.graylog.org/current " ;
29
27
30
28
private final String path ;
31
29
@@ -35,19 +33,6 @@ public enum DocsHelper {
35
33
36
34
@ Override
37
35
public String toString () {
38
- return SERVER + "/" + version () + "/" + path ;
39
- }
40
-
41
- private String version () {
42
- final var version = ServerVersion .VERSION .getVersion ();
43
- if (version .toString ().contains ("SNAPSHOT" )) {
44
- return "current" ;
45
- } else {
46
- return version .getMajorVersion () + "-" + version .getMinorVersion ();
47
- }
48
- }
49
-
50
- public String toLink (String title ) {
51
- return "<a href=\" " + this + "\" target=\" _blank\" >" + title + "</a>" ;
36
+ return SERVER + "/" + path ;
52
37
}
53
38
}
0 commit comments