From 3c7303b67ecd800b22f430547145aa1d12042b11 Mon Sep 17 00:00:00 2001 From: Josh De Winne Date: Mon, 18 Dec 2023 16:49:15 -0800 Subject: [PATCH] WIP: multiline description --- create-cluster/README.md | 9 +-------- docs/generate-readme/action-to-mermaid.py | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/create-cluster/README.md b/create-cluster/README.md index c266b05..398b23b 100644 --- a/create-cluster/README.md +++ b/create-cluster/README.md @@ -47,14 +47,7 @@ create_cluster ---> cluster_kubeconfig | nodes | | False | Number of nodes to provision | | instance-type | | False | Instance type to provision | | timeout-minutes | 20 | False | Time to wait for the cluster to have a status of `running` | -| tags | | False | Tags to assign to the cluster. -Example: -``` -tags: | - - key: "department" - value: "engineering" -``` - | +| tags | | False | Tags to assign to the cluster.
Example:
```
tags: |
- key: "department"
value: "engineering"
```
| | kubeconfig-path | | False | If specified, the kubeconfig will be written to this path | | export-kubeconfig | false | False | Export the KUBECONFIG variable (true/false) | diff --git a/docs/generate-readme/action-to-mermaid.py b/docs/generate-readme/action-to-mermaid.py index c111158..e15beef 100644 --- a/docs/generate-readme/action-to-mermaid.py +++ b/docs/generate-readme/action-to-mermaid.py @@ -54,7 +54,7 @@ def generate_inputs(action_yaml_file): defaultVal = data['inputs'][input_name]['default'] if 'default' in data['inputs'][input_name] else "" requiredVal = data['inputs'][input_name]['required'] if 'required' in data['inputs'][input_name] else True descriptionVal = data['inputs'][input_name]['description'] if 'description' in data['inputs'][input_name] else "" - inputs += "| " + input_name + " | " + defaultVal + " | " + str(requiredVal) + " | " + descriptionVal + " |\n" + inputs += "| " + input_name + " | " + defaultVal + " | " + str(requiredVal) + " | " + descriptionVal.replace('\n','
') + " |\n" return inputs