From c9839de1c087c2928f85fbf9f208a6c36dd95f50 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Fri, 20 Dec 2024 20:17:54 +0100 Subject: [PATCH] Add live templates configuration file documentation --- .../generate_descriptor_pages.main.kts | 6 +- ijs.tree | 4 +- topics/tutorials/live_templates.md | 5 +- .../live_templates_configuration_file.md | 243 ++++++++++++++++++ .../providing_live_templates.md | 4 + 5 files changed, 256 insertions(+), 6 deletions(-) create mode 100644 topics/tutorials/live_templates/live_templates_configuration_file.md diff --git a/.github/scripts/generate_descriptor_pages.main.kts b/.github/scripts/generate_descriptor_pages.main.kts index 6545df9d7..002363687 100755 --- a/.github/scripts/generate_descriptor_pages.main.kts +++ b/.github/scripts/generate_descriptor_pages.main.kts @@ -3,8 +3,7 @@ // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. /** - * Generates the elements content for the plugin_configuration_file.md page. - * It fetches the elements data from . + * Generates the elements content for pages defined in [descriptors]. */ @file:DependsOn("org.yaml:snakeyaml:2.3") @@ -44,7 +43,8 @@ val renderedPageNameToTopicNames = mutableMapOf().apply { val renderedElementPaths = mutableListOf() val descriptors = listOf( - DescriptorInfo("https://jb.gg/sdk-docs/plugin-descriptor.yaml", "topics/basics/plugin_structure/plugin_configuration_file.md") + DescriptorInfo("https://jb.gg/sdk-docs/plugin-descriptor.yaml", "topics/basics/plugin_structure/plugin_configuration_file.md"), + DescriptorInfo("https://jb.gg/sdk-docs/templates-descriptor.yaml", "topics/tutorials/live_templates/live_templates_configuration_file.md") ) descriptors.forEach { descriptor -> diff --git a/ijs.tree b/ijs.tree index 16c95baa1..7b6f6e20c 100644 --- a/ijs.tree +++ b/ijs.tree @@ -195,7 +195,9 @@ - + + + diff --git a/topics/tutorials/live_templates.md b/topics/tutorials/live_templates.md index 2cd10d104..12a07301a 100644 --- a/topics/tutorials/live_templates.md +++ b/topics/tutorials/live_templates.md @@ -54,5 +54,6 @@ public void testMethod() { For more information about creating Custom Live Templates, refer to the [corresponding documentation](https://www.jetbrains.com/idea/help/creating-and-editing-live-templates.html). These sections describe how to add Live Templates, and their associated building blocks, to plugins. - * [Providing Live Templates](providing_live_templates.md) - * [Creating New Functions for Live Templates](creating_live_template_functions.md) + * [](providing_live_templates.md) + * [](live_templates_configuration_file.md) + * [](creating_live_template_functions.md) diff --git a/topics/tutorials/live_templates/live_templates_configuration_file.md b/topics/tutorials/live_templates/live_templates_configuration_file.md new file mode 100644 index 000000000..d013579d2 --- /dev/null +++ b/topics/tutorials/live_templates/live_templates_configuration_file.md @@ -0,0 +1,243 @@ + + +# Live Templates Configuration File + + + +Live templates configuration file contains all the information about templates provided by the plugin. + +This page lists and describes all the elements and attributes used in live templates configuration files. + +## Configuration Structure Overview + +[//]: # (GENERATED CONTENT START) + +[//]: # (This content is generated by generate_descriptor_pages.main.kts script.) +[//]: # (DO NOT EDIT IT MANUALLY) + +- [``](#templateSet) + - [`