mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Add @UpdateForV9
for ReferenceDocs
(#123928)
The docs system is very different in v9 so we must update `ReferenceDocs` to generate links that are not broken.
This commit is contained in:
parent
4f2f1bc2a7
commit
4e00998cf2
2 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,7 @@ public @interface UpdateForV9 {
|
|||
CORE_INFRA,
|
||||
DATA_MANAGEMENT,
|
||||
DISTRIBUTED_INDEXING,
|
||||
DOCS,
|
||||
ENTERPRISE_SEARCH,
|
||||
MACHINE_LEARNING,
|
||||
PROFILING,
|
||||
|
|
|
@ -11,6 +11,7 @@ package org.elasticsearch.common;
|
|||
|
||||
import org.elasticsearch.Build;
|
||||
import org.elasticsearch.core.SuppressForbidden;
|
||||
import org.elasticsearch.core.UpdateForV9;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileNotFoundException;
|
||||
|
@ -27,6 +28,7 @@ import java.util.regex.Pattern;
|
|||
* {@link #toString()} yields (a string representation of) a URL for the relevant docs. Links are defined in the resource file
|
||||
* {@code reference-docs-links.txt} which must include definitions for exactly the set of values of this enum.
|
||||
*/
|
||||
@UpdateForV9(owner = UpdateForV9.Owner.DOCS) // the docs are completely different in v9 so these links all need fixing
|
||||
public enum ReferenceDocs {
|
||||
/*
|
||||
* Note that the docs subsystem parses {@code reference-docs-links.txt} differently. See {@code sub check_elasticsearch_links} in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue