Skip to content

Commit

Permalink
chore: don't use Prettier for mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Aug 29, 2024
1 parent 4c9711f commit 3024c77
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 35 deletions.
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Prettier, the most popular formatter, supports only the legacy MDX v1.
# If you get an unintentional formatting result, you may want to add {/* prettier-ignore */} before the problematic area,
# or add *.mdx to your .prettierignore, until Prettier has proper support for MDX v3
*.mdx
21 changes: 12 additions & 9 deletions docs/apm-hub/tutorials/install.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
## CLI Installation

=== "Linux (amd64)"
`sh

```sh
wget https://github.com/flanksource/apm-hub/releases/latest/download/apm-hub_linux_amd64 \
-O /usr/bin/apm-hub && \
chmod +x /usr/bin/apm-hub
`
```

=== "MacOS (amd64)"
`sh

```sh
wget https://github.com/flanksource/apm-hub/releases/latest/download/apm-hub_darwin_amd64 \
-O /usr/local/bin/apm-hub && \
chmod +x /usr/local/bin/apm-hub
`
```

=== "Windows"

````sh
```sh
wget -nv -nc -O https://github.com/flanksource/apm-hub/releases/latest/download/apm-hub.exe

// Move the downloaded exe file to a directory in your PATH
```
```

=== "Build locally"
`sh

```sh
git clone https://github.com/flanksource/apm-hub
cd apm-hub
make build
make install
`
```

## Verify installation

Expand All @@ -47,4 +50,4 @@ https://echo.labstack.com
____________________________________O/_______
O\
⇨ http server started on [::]:8080
````
```
6 changes: 3 additions & 3 deletions mission-control/docs/playbooks/concepts/runners.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ metadata:
name: delete-namespace
spec:
configs:
types:
- Kubernetes::Pod
types:
- Kubernetes::Pod
runsOn:
- "{{- if .agent }}{{.agent.id}}{{ else }}local{{ end }}"
- '{{- if .agent }}{{.agent.id}}{{ else }}local{{ end }}'
```
## Templates On
Expand Down
45 changes: 22 additions & 23 deletions mission-control/docs/playbooks/webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,26 @@ rows={[
{
field: 'url',
description: `Endpoint of the webhook. Example \`/playbook/webhook/my-webhook\``,
scheme: 'string'
},
{
field: 'headers',
description: `Headers sent on the webhook request`,
scheme: '`map[string]string`'
},
{
field: 'params',
description: `Query parameters sent on the webhook request`,
scheme: '`map[string]string`'
},
{
field: 'content',
description: `Content sent on the webhook request`,
scheme: 'string'
},
{
field: 'json',
description: `JSON content if the webhook content is JSON`,
scheme: '`map[string]any`',
scheme: 'string'
},
{
field: 'headers',
description: `Headers sent on the webhook request`,
scheme: '`map[string]string`'
},
{
field: 'params',
description: `Query parameters sent on the webhook request`,
scheme: '`map[string]string`'
},
{
field: 'content',
description: `Content sent on the webhook request`,
scheme: 'string'
},
{
field: 'json',
description: `JSON content if the webhook content is JSON`,
scheme: '`map[string]any`',
}
]}
/>
]} />

0 comments on commit 3024c77

Please sign in to comment.