diff --git a/.github/scripts/generate_descriptor_pages.main.kts b/.github/scripts/generate_descriptor_pages.main.kts index dcb625c3c..243b4c989 100755 --- a/.github/scripts/generate_descriptor_pages.main.kts +++ b/.github/scripts/generate_descriptor_pages.main.kts @@ -391,6 +391,7 @@ fun file(path: String): File { fun String.cleanup(): String { return this .cleanupElementLinks() + .fixWildcardLinks() .removeAttributeLinks() .removeDocProviderSpecificAttributes() .internalizeLinks() @@ -401,6 +402,12 @@ fun String.cleanupElementLinks(): String { return replace("](#element:", "](#") } +fun String.fixWildcardLinks(): String { + // reason: Writerside can't handle links with * and the error page is displayed + // [wildcard](path__to__*) -> [wildcard](#path__to__-) + return replace("__*", "__-") +} + fun String.removeAttributeLinks(): String { val attributeLinkRegex = Regex("\\[([^\\[\\]]*?)]\\(#attribute:.*?\\)") return attributeLinkRegex.replace(this) { matchResult -> diff --git a/topics/basics/plugin_structure/plugin_configuration_file.md b/topics/basics/plugin_structure/plugin_configuration_file.md index d092c330b..ac198c2ce 100644 --- a/topics/basics/plugin_structure/plugin_configuration_file.md +++ b/topics/basics/plugin_structure/plugin_configuration_file.md @@ -52,7 +52,7 @@ Deprecated elements are omitted in the list below. - [``](#idea-plugin__depends) - [``](#idea-plugin__incompatible-with) - [``](#idea-plugin__extensions) - - [An Extension](#idea-plugin__extensions__*) + - [An Extension](#idea-plugin__extensions__-) - [``](#idea-plugin__extensionPoints) - [``](#idea-plugin__extensionPoints__extensionPoint) - [``](#idea-plugin__extensionPoints__extensionPoint__with) @@ -568,7 +568,7 @@ Examples ``` #### An Extension -{#idea-plugin__extensions__*} +{#idea-plugin__extensions__-} An extension instance registered under [``](#idea-plugin__extensions). diff --git a/topics/basics/plugin_structure/plugin_extensions.md b/topics/basics/plugin_structure/plugin_extensions.md index 1aa9c3032..e019e4f9f 100644 --- a/topics/basics/plugin_structure/plugin_extensions.md +++ b/topics/basics/plugin_structure/plugin_extensions.md @@ -41,7 +41,7 @@ See [](explore_api.md) for more information and strategies. * If the extension point was declared using the `beanClass` attribute, set all properties annotated with the [`@Attribute`](%gh-ic%/platform/util/src/com/intellij/util/xmlb/annotations/Attribute.java) and [`Tag`](%gh-ic%/platform/util/src/com/intellij/util/xmlb/annotations/Tag.java) annotations in the specified bean class. See the [](plugin_extension_points.md#declaring-extension-points) section for details. -4. In addition to attributes defined by the extension point, the extension element can specify basic attributes (see the attributes list in [](plugin_configuration_file.md#idea-plugin__extensions__*) section). +4. In addition to attributes defined by the extension point, the extension element can specify basic attributes (see the attributes list in [](plugin_configuration_file.md#idea-plugin__extensions__-) section). 5. Implement the extension API as required (see [](#implementing-extension)).