Skip to content

Commit d9d24fd

Browse files
authored
Merge pull request #323 from stateful/T-iteration-v2
docs: adding disclaimers
2 parents 2c6bea4 + 49f9a56 commit d9d24fd

File tree

98 files changed

+1082
-500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+1082
-500
lines changed
Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,25 @@
22
runme:
33
id: 01HG11HG1XY3V7DCQVQ32Q71ZZ
44
version: v2.0
5-
sidebar_position: 4
6-
title: Reference
5+
sidebar_position: 1
6+
title: Options for Document and Cell
77
---
88

9-
# Reference
10-
11-
Everything in one place.
9+
Executing code and commands in Runme can be done either at the [Document level](../configuration/document-level) or the [Cell level](../configuration/cell-level). This page is a reference for both features.
1210

1311
### **Document Options**
1412

15-
Frontmatter in yaml, json, or toml on top of markdown document.
13+
Frontmatter in yaml, json, or toml on top of Markdown document.
1614

1715
| Configuration | Description | Default value |
1816
| ------------- | ----------------------------------------- | ------------------------- |
19-
| cwd | Overwrites the default working directory | [markdown file's basedir] |
17+
| cwd | Overwrites the default working directory | [Markdown file's basedir] |
2018
| shell | Overwrites shell with custom preference | [system/user default] |
2119
| skipPrompts | Bypasses interactive prompts | [system/user default] |
2220

2321
### **Cell Options**
2422

25-
Metadata inside markdown's fenced code blocks.
23+
Metadata inside Markdown's fenced code blocks.
2624

2725
| Configuration | Description | Default value |
2826
| ---------------------- | --------------------------------------------------------------- | ------------------------ |
@@ -45,24 +43,4 @@ This feature can be used to prevent [prompting](../configuration/document-level)
4543

4644
</Infobox>
4745

48-
### **Supported MIME types**
49-
50-
Runme supports the standard VS Code MIME types alongside custom Runme MIME types.
51-
52-
**Standard VS Code MIME types**
53-
54-
- text/plain
55-
- application/javascript
56-
- text/html
57-
- image/svg+xml
58-
- text/markdown
59-
- image/png
60-
- image/jpeg
61-
62-
**MIME types for rendering code**
6346

64-
- text/x-json
65-
- text/x-javascript
66-
- text/x-html
67-
- text/x-rust
68-
- text/x-LANGUAGE_ID for any other built-in or installed languages.

docs/Reference/flag.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
sidebar_position: 2
3+
title: Commands and Flags
4+
---
5+
6+
7+
8+
Runme executes commands inside your runbooks, documentation, and READMEs. It parses commands directly from Markdown files to make them executable.
9+
10+
### **NAME**
11+
12+
Runme [command]: Specific commands or actions in Runme to perform different tasks.
13+
14+
Runme [flags]: Optional configurations to modify the behavior of our Runme runbook.
15+
16+
### **Runme Commands**:
17+
18+
Below are some available commands within Runme
19+
20+
| Commands | Description |
21+
| ---------------------- | --------------------------------------------------------------- |
22+
| branch | Suggest a branch name (aka branchGPT) |
23+
| completion | Generate the autocompletion script for the specified shell |
24+
| extension | Check your Stateful VS Code extension status |
25+
| fmt | Format a Markdown file into canonical format |
26+
| help | Help about any command |
27+
| list | List available commands |
28+
| login | Log in to Runme (optional) |
29+
| logout | Log out from Runme |
30+
| open | Launch Runme in a headless web client |
31+
| print | Print a selected snippet |
32+
| run | Run a selected command |
33+
| suggest | Use our suggestion engine to give contextual advice |
34+
| tui | Run the interactive TUI |
35+
36+
### **Runme Flags**
37+
38+
Runme supported configuration flags.
39+
40+
41+
| Flags | Description |
42+
| ---------------------- | --------------------------------------------------------------- |
43+
| --allow-unknown | Display snippets without known executor (default true) |
44+
| --allow-unnamed | Allow scripts without explicit names |
45+
| --background | Enable running background blocks as background processes |
46+
| --chdir string | Switch to a different working directory before executing the command (default "~/oss/docs.runme.dev") |
47+
| --entries int | Number of entries to show in TUI (default 5) |
48+
| --env-order stringArray | List of environment files to load in order. (default [.env.local,.env]) |
49+
| --exit | Exit TUI after running a command |
50+
| --filename string | Name of the README file (default "[README.md](http://readme.md/)") |
51+
| --filter string | Regular expression to filter results, by filename and task name |
52+
| --git-ignore | Whether to respect .gitignore file(s) in project (default true) |
53+
| -h, --help | Help for Runme |
54+
| --ignore-pattern stringArray | Patterns to ignore in project mode (default [node_modules]) |
55+
| --insecure | Run command in insecure-mode |
56+
| --load-env | Load env files from a local project. Control which files to load with --env-order (default true) |
57+
| --project string | Root project to find runnable tasks |
58+
| -s, --server string | Server address to connect runner to |
59+
| --tls string | Directory for TLS authentication (default "~/Library/Application Support/runme/tls") |
60+
| -v, --version | -v, --version |
61+

docs/Reference/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
sidebar_position: 7
3+
title: Reference
4+
---
5+
6+
7+
In this reference section, we will cover a range of terms, commands, and flags used on Runme and a brief description of these terminologies to enable you to understand each term and how they are used.
8+
9+
In addition to common terms and commands in Runme, we have added configuration shortcuts designed to help you customize your runbook to suit your desired output.

docs/Reference/mime.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
sidebar_position: 4
3+
title: Supported MIME types
4+
---
5+
6+
7+
Runme supports the standard VS Code MIME types alongside custom Runme MIME types.
8+
9+
**Standard VS Code MIME types**
10+
11+
- text/plain
12+
- application/javascript
13+
- text/html
14+
- image/svg+xml
15+
- text/markdown
16+
- image/png
17+
- image/jpeg
18+
19+
**MIME types for rendering code**
20+
21+
- text/x-json
22+
- text/x-javascript
23+
- text/x-html
24+
- text/x-rust
25+
- text/x-LANGUAGE_ID for any other built-in or installed languages.

docs/architecture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ title: Kernel Architecture
55

66
Under the hood, much like other Notebook technologies such as Jupyter, Runme breaks down into the following parts:
77

8-
- A serializer that transforms markdown into executable cells with input and output
8+
- A serializer that transforms Markdown into executable cells with input and output
99
- A portable runner interface that supports multimodal clients
1010
- A kernel that retains state across execution in sessions akin to a terminal
11-
- A raw-markdown editor (inside VS Code) client for the runner
11+
- A raw-Markdown editor (inside VS Code) client for the runner
1212
- A CLI client for the runner
1313
- A notebook client (inside VS Code) for the runner
14-
- A visual markdown viewer and editor (inside VS Code)
14+
- A visual Markdown viewer and editor (inside VS Code)
1515

1616
The kernel architecture allows Runme to be seamlessly embedded into various User Interface technologies (notebook, editor, webapp, CLI) as well as headless excution as part of CI/CD pipelines.
1717

docs/configuration/archiving.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_position: 3
66
title: Archiving Feature
77
---
88

9-
The Runme archiving feature is a tidy-up tool for users. It allows you to hide outputs generated from markdown cells to reduce clutter and preserve output for future reference. The archived files are securely stored in [Runme cloud](https://app.runme.dev/welcome) which can be accessible at any time.
9+
The Runme archiving feature is a tidy-up tool for users. It allows you to hide outputs generated from Markdown cells to reduce clutter and preserve output for future reference. The archived files are securely stored in [Runme cloud](https://app.runme.dev/welcome) which can be accessible at any time.
1010

1111
On the Runme cloud, your data is encrypted both at rest and in transit, ensuring end-to-end security
1212

docs/configuration/auto-save.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@ sidebar_position: 3
66
title: Auto-Save Feature
77
---
88

9-
Runme provides an easy and effective way to manage your records and outputs throughout your deployment. With the frequent changes, that occur in a cloud infrastructure deployment process, it is easy to lose track over time and we understand this.
10-
The Runme autosave feature automatically records and tracks every change and activity in your deployment process without any manual intervention to keep you updated and enhance team collaboration.
9+
Runme auto-save feature makes saving your outputs and progress easier. It is an effective way to manage your records and outputs throughout your deployment.
1110

12-
## **Getting Started with Autosave**
11+
The Runme autosave feature automatically records and tracks every change and activity in your deployment process without manual intervention, so you can focus on your task and team collaboration without worrying about losing your outputs.
1312

14-
Runme autosave feature goes beyond saving commands and running shell scripts. It is super helpful when automating tasks with changing or inconsistent instructions. Think of handling tasks that change each time or require information gathering at each step. Runme notebooks step in to manage these tasks, providing a consistent and standard way to run automated processes, and keeping you informed at every step.
13+
## **How Runme Auto-Save Feature Works**
14+
15+
Runme auto-save feature goes beyond saving commands and running shell scripts. It uses the'session output’ feature to provide advanced auto-save functionality.
1516

1617
### Session Outputs
1718

18-
When auto-save is enabled,that is turned on, Runme captures a complete copy of the original Markdown document along with all cell outputs generated during the notebook's execution using the “**Runme Session Outputs**”.
19+
When auto-save is enabled, Runme captures a complete copy of the original Markdown document along with all cell outputs generated during the notebooks execution using the **Runme Session Outputs**”.
1920

2021
![autosave-output-session](../../static/img/Autosave-output.png)
2122

2223
The information includes when each cell was ran, the time it took, and exit codes. Additional contextual metadata like hostname and username are also saved to the Session Outputs file. Runme also captures non-text mime types like images (base64 encoded) outside of textual output produced by terminals.
2324

24-
see an example below:
25+
See an example below:
2526

2627
```sh {"id":"01HPGQH3SV6HM949W7RHC4P563"}
2728
$ terraform workspace select staging
@@ -38,20 +39,19 @@ If there are more forms you like to be added, kindly [let us know](https://githu
3839
3940
### Why Separate Session Outputs?
4041
41-
You might wonder why we have chosen to create a separate Session Outputs file instead of embedding outputs directly into the markdown document. Well, here are our reasons:
42+
You might wonder why we have chosen to create a separate Session Outputs file instead of embedding outputs directly into the Markdown document. Well, here are our reasons:
4243
4344
1. **Promote Generality for Collaboration**: We believe that cells, including their code and commands (inputs), should remain generic to facilitate collaboration and sharing of notebooks with others. This approach is particularly important for version control-tracked files.
4445
2. **Avoid Version Control Errors**: Separating files prevents accidental inclusion of outputs into version control, reducing the risk of overwriting historical artifacts from previous sessions if they were stored in the same file.
45-
3. **Enhance User Experience (UX)**: Session files with outputs are not directly opened in the notebook UX. After writing the output, Runme may struggle to distinguish between input and output parts of a cell. Instead, the UX will prompt you to open the original document (which requires colocation in the same folder) as a notebook or launch the markdown previewer to display the Session Outputs.
46+
3. **Enhance User Experience (UX)**: Session files with outputs are not directly opened in the notebook UX. After writing the output, Runme may struggle to distinguish between input and output parts of a cell. Instead, the UX will prompt you to open the original document (which requires colocation in the same folder) as a notebook or launch the Markdown previewer to display the Session Outputs.
4647
47-
While we are contemplating the possibility of transparently opening Session Outputs files in the future, this may inevitably involve reformatting the original source file as part of the de-/serialization process.
48+
While we are contemplating the possibility of transparently opening Session Outputs files in the future, this may inevitably involve reformatting the original source file as part of the deserialization process.
4849
4950
<br />
5051
<Infobox type="sidenote" title="Session Outputs">
5152
It is strongly recommended that you do not deploy the session output files to your version control. you can `.gitignore` the files to ensure that it doesn't get deployed.
5253
</Infobox>
5354
54-
5555
## **How to Enable Auto-Save**
5656
5757
- Toggle Auto-Save On/Off: On your `.md` file, you have the flexibility to easily turn the Auto-Save feature on or off. This can be done directly from the top of your Markdown (`.md`) file. A simple toggle switch allows for easy control, ensuring that you can activate or deactivate Auto-Save as per your workflow requirements.

0 commit comments

Comments
 (0)