Skip to content

Commit d1a7ba6

Browse files
authored
fix(mkdocs): use superfences to correctly indent code-blocks (#411)
1 parent 178c1ea commit d1a7ba6

File tree

3 files changed

+66
-67
lines changed

3 files changed

+66
-67
lines changed

docs/contributing.md

Lines changed: 62 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -56,91 +56,88 @@ Follow these steps to install a minimal working configuration of Burrito on a Ki
5656
- A datastore running with mock storage (in-memory)
5757
- A `TerraformRepository` and an associated `TerraformLayer` resource in the `burrito-project` namespace, pointing to the [padok-team/burrito-examples](https://github.com/padok-team/burrito-examples) repository
5858

59-
** Before starting, check that your local Kind cluster is running and that your context is set to target this cluster**
59+
*Before starting, check that your local Kind cluster is running and that your context is set to target this cluster*
6060

6161
1. **Install cert-manager on your cluster:**
62-
63-
```bash
64-
helm repo add bitnami https://charts.bitnami.com/bitnami
65-
helm upgrade --install -n cert-manager --create-namespace cert-manager bitnami/cert-manager --set installCRDs=true
66-
```
67-
62+
```bash
63+
helm repo add bitnami https://charts.bitnami.com/bitnami
64+
helm upgrade --install -n cert-manager --create-namespace cert-manager bitnami/cert-manager --set installCRDs=true
65+
```
6866
2. **Fork and clone this repository.**
6967

7068
3. **Run the following command to build a local image of Burrito, load it into your Kind cluster, and install Burrito with development Helm values:**
71-
72-
```bash
73-
make upgrade-dev-kind
74-
```
69+
70+
```bash
71+
make upgrade-dev-kind
72+
```
7573

7674
4. **Check that Burrito is running in the `burrito-system` namespace:**
75+
```bash
76+
kubectl get pods -n burrito-system
77+
```
7778

78-
```bash
79-
kubectl get pods -n burrito-system
80-
```
81-
82-
The output should be similar to:
79+
The output should be similar to:
8380

84-
```
85-
NAME READY STATUS RESTARTS AGE
86-
burrito-controllers-7657b7455-2ldtd 1/1 Running 0 5m32s
87-
burrito-datastore-5967f46497-tfzgg 1/1 Running 0 5m32s
88-
burrito-server-5b6fb78949-ngcnt 1/1 Running 0 5m32s
89-
```
81+
```bash
82+
NAME READY STATUS RESTARTS AGE
83+
burrito-controllers-7657b7455-2ldtd 1/1 Running 0 5m32s
84+
burrito-datastore-5967f46497-tfzgg 1/1 Running 0 5m32s
85+
burrito-server-5b6fb78949-ngcnt 1/1 Running 0 5m32s
86+
```
9087

9188
5. **Create layers and repository resources:**
9289

93-
Create a `dev` directory in `deploy/charts/burrito/templates/` and add a `dev.yaml` manifest with development resources:
94-
95-
```yaml
96-
apiVersion: config.terraform.padok.cloud/v1alpha1
97-
kind: TerraformLayer
98-
metadata:
99-
name: my-layer
100-
namespace: burrito-project
101-
spec:
102-
branch: main
103-
path: terraform/
104-
repository:
105-
name: my-repository
106-
namespace: burrito-project
107-
---
108-
apiVersion: config.terraform.padok.cloud/v1alpha1
109-
kind: TerraformRepository
110-
metadata:
111-
name: my-repository
112-
namespace: burrito-project
113-
spec:
114-
repository:
115-
url: https://github.com/padok-team/burrito-examples
116-
remediationStrategy:
117-
autoApply: true
118-
terraform:
119-
enabled: true
120-
opentofu:
121-
enabled: false
122-
terragrunt:
123-
enabled: false
124-
```
90+
Create a `dev` directory in `deploy/charts/burrito/templates/` and add a `dev.yaml` manifest with development resources:
91+
92+
```yaml
93+
apiVersion: config.terraform.padok.cloud/v1alpha1
94+
kind: TerraformLayer
95+
metadata:
96+
name: my-layer
97+
namespace: burrito-project
98+
spec:
99+
branch: main
100+
path: terraform/
101+
repository:
102+
name: my-repository
103+
namespace: burrito-project
104+
---
105+
apiVersion: config.terraform.padok.cloud/v1alpha1
106+
kind: TerraformRepository
107+
metadata:
108+
name: my-repository
109+
namespace: burrito-project
110+
spec:
111+
repository:
112+
url: https://github.com/padok-team/burrito-examples
113+
remediationStrategy:
114+
autoApply: true
115+
terraform:
116+
enabled: true
117+
opentofu:
118+
enabled: false
119+
terragrunt:
120+
enabled: false
121+
```
125122

126123
6. **Refresh your Helm configuration:**
127124

128-
```bash
129-
make upgrade-dev-helm
130-
```
125+
```bash
126+
make upgrade-dev-helm
127+
```
131128

132129
7. **Check that a runner pod is created for the newly created layer:**
133130

134-
```bash
135-
kubectl get pods -n burrito-project
136-
```
131+
```bash
132+
kubectl get pods -n burrito-project
133+
```
137134

138-
The output should be similar to:
135+
The output should be similar to:
139136

140-
```
141-
NAME READY STATUS RESTARTS AGE
142-
my-layer-apply-gxjhd 0/1 Completed 0 2m36s
143-
```
137+
```
138+
NAME READY STATUS RESTARTS AGE
139+
my-layer-apply-gxjhd 0/1 Completed 0 2m36s
140+
```
144141

145142
### Refresh Commands
146143

docs/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This is the home of the Burrito documentation. Here you will find all the inform
77
- [Guides](./guides/index.md) provides detailed tutorials to help you understand how to use Burrito.
88
- [Operator Manual](./operator-manual/) is a detailed guide to help you understand how to install and configure Burrito.
99
- [User Guide](./user-guide/) is a detailed guide to help you understand how to setup and use Burrito resources.
10+
- [Contributing](./contributing.md) provides information on how to contribute to the Burrito project.
1011
<!-- - [Reference](./reference/) provides detailed information about the Burrito CRDs and their specifications.
11-
- [FAQ](./faq.md) answers some of the most frequently asked questions about Burrito.
12-
- [Contributing](./contributing.md) provides information on how to contribute to the Burrito project. -->
12+
- [FAQ](./faq.md) answers some of the most frequently asked questions about Burrito. -->
13+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ theme:
99
markdown_extensions:
1010
- codehilite
1111
- admonition
12+
- pymdownx.superfences
1213
- toc:
1314
permalink: true
1415
nav:

0 commit comments

Comments
 (0)