You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/authoring/blocks/Admonition.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
title: <Admonition>
3
3
---
4
4
5
-
# `<Admonition>` Block
6
-
7
5
The `<Admonition>` block creates callout boxes to highlight important information, warnings, notes, or tips. It helps draw the user's attention to critical information in your runbook.
The `<BoilerplateInputs>` block creates dynamic web forms based on [Boilerplate](https://github.com/gruntwork-io/boilerplate) variable definitions. It's used to collect user input that can then be used in Commands, Checks, or to generate files from templates.
8
8
@@ -139,6 +139,10 @@ variables:
139
139
140
140
### Structured Map (with Schema)
141
141
142
+
<Aside type="note">
143
+
This schema declaration is not supported by Boilerplate itself, but is supported by Runbooks.
144
+
</Aside>
145
+
142
146
Map with predefined fields:
143
147
144
148
```yaml
@@ -164,6 +168,10 @@ variables:
164
168
165
169
## Validations
166
170
171
+
<Aside type="note">
172
+
Some Boilerplate validation types are not supported by Runbooks.
Copy file name to clipboardExpand all lines: docs/src/content/docs/authoring/blocks/BoilerplateTemplate.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,16 @@
2
2
title: <BoilerplateTemplate>
3
3
---
4
4
5
-
# `<BoilerplateTemplate>` Block
6
-
7
-
The `<BoilerplateTemplate>` block is an advanced component that renders Boilerplate templates inline without writing files to disk. This is useful for previewing generated content or debugging templates.
5
+
The `<BoilerplateTemplate>` block renders Boilerplate templates inline or allows you to specify templates inline in your runbook. Like `<BoilerplateInputs>`, it uses the Boilerplate engine to generate files, but displays the rendered file directly in the markdown.
8
6
9
7
## Overview
10
8
11
-
While `<BoilerplateInputs>` generates files and saves them to disk, `<BoilerplateTemplate>` renders templates in-memory and displays them in the UI. This is particularly useful when you want to:
9
+
Both `<BoilerplateInputs>` and `<BoilerplateTemplate>` use the Boilerplate engine to generate files. The key differences are:
10
+
11
+
-**`<BoilerplateInputs>`**: Generates files and saves them to your workspace (persisted), can reference template directories
Copy file name to clipboardExpand all lines: docs/src/content/docs/authoring/blocks/Check.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
title: <Check>
3
3
---
4
4
5
-
# `<Check>` Block
6
-
7
5
The `<Check>` block validates prerequisites and system state by running shell commands or scripts. It's essential for ensuring users have the right tools installed and their environment is properly configured before proceeding.
Copy file name to clipboardExpand all lines: docs/src/content/docs/authoring/blocks/Command.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
title: <Command>
3
3
---
4
4
5
-
# `<Command>` Block
6
-
7
5
The `<Command>` block executes shell commands or scripts with variable substitution. It's used for performing operations like deployments, resource creation, and system configuration.
Opens a runbook in your default browser with the interactive web interface.
8
+
9
+
## Usage
10
+
11
+
```bash
12
+
runbooks open <path-to-runbook>
13
+
```
14
+
15
+
## Arguments
16
+
17
+
-`<path-to-runbook>` - Path to the `runbook.mdx` file.
18
+
19
+
## What It Does
20
+
21
+
When you run `runbooks open`:
22
+
23
+
1.**Starts the Backend Server** - Launches a Go-based HTTP server on port 7825
24
+
2.**Launches the Browser** - Opens your default web browser to `http://localhost:7825`
25
+
3.**Serves the Frontend** - The web UI connects to the backend API to process the runbook
26
+
4.**Keeps Running** - The server continues running until you close the browser or press Ctrl+C
27
+
28
+
## Troubleshooting
29
+
30
+
**Port already in use:**
31
+
If port 7825 is already in use, you'll see an error. Stop any other process using that port or modify the code to use a different port.
32
+
33
+
**Browser doesn't open:**
34
+
If the browser doesn't open automatically, you can manually navigate to `http://localhost:7825` after running the command.
35
+
36
+
**Browser window with the runbook doesn't open:**
37
+
Sometimes, your browser seems to launch, but you don't see the Runbook. The most likely issue here is that your browser launched with multiple tabs and windows and your Runbooks tab is not visible. Either look through all your browser windows, or go directly to http://localhost:7825.
38
+
39
+
**Runbook not found:**
40
+
Make sure the path points to a valid `runbook.mdx` file.
0 commit comments