From aa1921f0e01f74fa59496797f4d73d74f7e4c599 Mon Sep 17 00:00:00 2001 From: "Bari, Haider" Date: Tue, 12 Nov 2024 20:52:43 +0000 Subject: [PATCH] fixed format issues Signed-off-by: Bari, Haider --- .../writing-custom-actions.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/features/software-templates/writing-custom-actions.md b/docs/features/software-templates/writing-custom-actions.md index c42dbd7e7f..51e9968435 100644 --- a/docs/features/software-templates/writing-custom-actions.md +++ b/docs/features/software-templates/writing-custom-actions.md @@ -141,10 +141,9 @@ Prefer to use `camelCase` over `snake_case` or `kebab-case` for these actions if > We're aware that there are some exceptions to this, but try to follow as close as possible. We'll be working on migrating these in the repository over time too. - ### Adding a TemplateExample -A TemplateExample is a predefined structure that can be used to create custom actions in your software templates. It serves as a blueprint for users to understand how to use a specific action and its fields as well as to ensure consistency and standardization across different custom actions. +A TemplateExample is a predefined structure that can be used to create custom actions in your software templates. It serves as a blueprint for users to understand how to use a specific action and its fields as well as to ensure consistency and standardization across different custom actions. #### How to Use a TemplateExample @@ -163,20 +162,20 @@ A TemplateExample is a predefined structure that can be used to create custom ac #### Define a TemplateExample and add to your Custom Action ```ts title="With JSON Schema" -import { TemplateExample } from "@backstage/plugin-scaffolder-node"; -import yaml from "yaml"; +import { TemplateExample } from '@backstage/plugin-scaffolder-node'; +import yaml from 'yaml'; export const examples: TemplateExample[] = [ { - description: "Template Example for Creating an Acme file", + description: 'Template Example for Creating an Acme file', example: yaml.stringify({ steps: [ { - action: "acme:file:create", - name: "Create an Acme file.", + action: 'acme:file:create', + name: 'Create an Acme file.', input: { - contents: "file contents...", - filename: "ACME.properties" + contents: 'file contents...', + filename: 'ACME.properties', }, }, ],